update sonner; toast is still light

This commit is contained in:
padreug 2025-08-01 14:11:17 +02:00
parent d5b762630c
commit 5e6bc32f02
4 changed files with 16 additions and 12 deletions

View file

@ -8,11 +8,15 @@ const props = defineProps<ToasterProps>()
<Sonner
class="toaster group"
v-bind="props"
:style="{
'--normal-bg': 'var(--popover)',
'--normal-text': 'var(--popover-foreground)',
'--normal-border': 'var(--border)',
:toast-options="{
classes: {
toast: 'group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg',
description: 'group-[.toast]:text-muted-foreground',
actionButton:
'group-[.toast]:bg-primary group-[.toast]:text-primary-foreground',
cancelButton:
'group-[.toast]:bg-muted group-[.toast]:text-muted-foreground',
},
}"
/>
</template>