1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-12 01:09:00 +00:00

feat: light/dark/system mode switcher (#1081)

This commit is contained in:
Kyle Mendell
2025-11-09 13:28:58 -06:00
committed by GitHub
parent 9981304b4b
commit d5e0cfd4a6
5 changed files with 46 additions and 3 deletions

View File

@@ -10,7 +10,7 @@
destructive:
'text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current',
warning:
'bg-amber-100 text-amber-900 dark:bg-amber-900 dark:text-amber-100 [&>svg]:text-amber-900 dark:[&>svg]:text-amber-100'
'bg-warning text-warning-foreground border-warning/40 [&>svg]:text-warning-foreground'
}
},
defaultVariants: {
@@ -67,7 +67,7 @@
>
{@render children?.()}
{#if dismissibleId}
<button onclick={dismiss} class="absolute top-0 right-0 m-3 text-black dark:text-white"
<button onclick={dismiss} class="absolute right-0 top-0 m-3 text-black dark:text-white"
><LucideX class="size-4" /></button
>
{/if}