Skip to content

Commit 286d51f

Browse files
committed
Fix Announcement component not being styled correctly in light mode
1 parent 3840b56 commit 286d51f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/components/Announcement.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
<div
1414
class={cn(
1515
className,
16-
'rounded-full bg-gradient-to-r from-white/10 via-white/25 to-white/10 p-[1px]'
16+
'rounded-full bg-gradient-to-r from-black/10 via-black/25 to-black/10 p-[1px] dark:from-white/10 dark:via-white/25 dark:to-white/10'
1717
)}
1818
>
1919
<a
20-
class="flex items-center space-x-2 rounded-full bg-body px-4 py-2 text-xs text-gray-300 backdrop-blur-sm transition-colors duration-300 hover:bg-black/40"
20+
class="flex items-center space-x-2 rounded-full bg-body px-4 py-2 text-xs text-inverse backdrop-blur-sm transition-colors duration-300 hover:bg-zinc-100 dark:text-gray-300 dark:hover:bg-black/40"
2121
href={value.href}
2222
>
2323
<Rocket class="h-4 w-4" />
@@ -26,7 +26,7 @@
2626
{#if value.highlightedText}
2727
{' '}
2828
<span
29-
class="bg-gradient-to-r from-gray-50 to-gray-200 bg-clip-text font-semibold text-transparent"
29+
class="bg-gradient-to-r from-zinc-800 to-black bg-clip-text font-semibold text-transparent dark:from-gray-50 dark:to-gray-200"
3030
>
3131
{value.highlightedText}
3232
</span>

0 commit comments

Comments
 (0)