mirror of
https://github.com/pheralb/svgl.git
synced 2025-03-12 16:10:34 +08:00
🖌️ Update `svelte-sonner
` styles
This commit is contained in:
parent
407762d3a7
commit
482ef59950
@ -73,12 +73,13 @@
|
|||||||
</Transition>
|
</Transition>
|
||||||
<Toaster
|
<Toaster
|
||||||
position="bottom-right"
|
position="bottom-right"
|
||||||
|
theme={$mode}
|
||||||
|
class="toaster group"
|
||||||
toastOptions={{
|
toastOptions={{
|
||||||
class: 'font-sans',
|
classes: {
|
||||||
descriptionClass: 'font-mono',
|
toast: 'group toast dark:group-[.toaster]:bg-neutral-900 group-[.toaster]:font-sans',
|
||||||
style: `background-color: ${$mode === 'light' ? '#f5f5f5' : '#262626'};
|
description: 'group-[.toast]:text-xs font-mono'
|
||||||
color: ${$mode === 'light' ? '#121212' : '#ffff'};
|
}
|
||||||
border-radius: 0.4rem; border: 1px solid ${$mode === 'light' ? '#d4d4d4' : '#404040'};`
|
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user