misc: tweak toast design
This commit is contained in:
1 parent
daff5f2c09
commit
a463562d0a
2 files changed
+2
-2
No files matched your search
@@ -31,7 +31,7 @@
|
|||||||
>
|
>
|
||||||
<Icon
|
<Icon
|
||||||
size="20"
|
size="20"
|
||||||
solid
|
mini
|
||||||
class="relative m-2 ml-4 flex-shrink-0"
|
class="relative m-2 ml-4 flex-shrink-0"
|
||||||
src={toast.type == 'info'
|
src={toast.type == 'info'
|
||||||
? InformationCircle
|
? InformationCircle
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { writable } from 'svelte/store'
|
|||||||
type ToastType = keyof typeof toastColors
|
type ToastType = keyof typeof toastColors
|
||||||
|
|
||||||
export const toastColors = {
|
export const toastColors = {
|
||||||
error: 'bg-red-500 text-white border border-red-600',
|
error: 'bg-red-600 text-white border border-red-700',
|
||||||
warning: 'bg-yellow-400 text-black border border-yellow-500',
|
warning: 'bg-yellow-400 text-black border border-yellow-500',
|
||||||
success: 'bg-green-400 text-black border border-green-500',
|
success: 'bg-green-400 text-black border border-green-500',
|
||||||
info: 'dark:bg-zinc-900 bg-white border border-slate-200 dark:border-zinc-800 shadow-lg',
|
info: 'dark:bg-zinc-900 bg-white border border-slate-200 dark:border-zinc-800 shadow-lg',
|
||||||
|
|||||||
Reference in new issue
Block a user