feat(frontend): update sonner dark theme

This commit is contained in:
Faton Ramadani
2024-05-13 14:15:09 +02:00
parent ff8577b432
commit 7288374a92
3 changed files with 15 additions and 2 deletions
+2 -1
View File
@@ -18,7 +18,8 @@
<div class="w-full flex flex-col gap-2">
<div>
<p class="text-xs font-semibold text-secondary break-words">{message}</p>
<p class="text-xs font-semibold text-primary dark:text-primary-inverse break-words">{message}</p
>
{#if errorMessage}
<p
class=" w-full text-secondary border border-red-200 rounded-md text-xs bg-red-100 p-2 overflow-auto mt-2"
+3 -1
View File
@@ -22,7 +22,9 @@ export function sendUserToast(
actions,
errorMessage,
duration,
onClose
onClose,
unstyled: true,
classes: error ? 'bg-red-50' : 'bg-green-500'
}
}
+10
View File
@@ -36,4 +36,14 @@
.wrap :global(strong) {
font-weight: 600;
}
:global([data-sonner-toaster][data-theme='dark']) {
--info-bg: #eaeef4 !important;
--info-border: #3b82f6 !important;
--info-text: #3b82f6 !important;
--error-bg: #fef2f2 !important;
--error-border: #ef4444 !important;
--error-text: #ef4444 !important;
}
</style>