|
37 | 37 | }: Props = $props();
|
38 | 38 |
|
39 | 39 | const modalStyles = tv({
|
40 |
| - base: 'bg-light dark:bg-subtle flex rounded-none border-none sm:rounded-2xl', |
| 40 | + base: 'bg-light dark:bg-subtle border-subtle shadow-primary/20 flex rounded-none border shadow-sm sm:rounded-2xl dark:border-white/10', |
41 | 41 | variants: {
|
42 | 42 | size: {
|
43 | 43 | tiny: 'h-full sm:h-min md:max-w-sm',
|
|
69 | 69 | 'absolute start-0 top-0 flex h-dvh w-screen items-center justify-center overflow-hidden sm:p-4',
|
70 | 70 | )}
|
71 | 71 | >
|
72 |
| - <div class={cleanClass('flex h-full w-full flex-col items-center justify-center ')}> |
| 72 | + <div class={cleanClass('flex h-full w-full flex-col items-center justify-center')}> |
73 | 73 | <Card class={cleanClass(modalStyles({ size }), className)}>
|
74 |
| - <CardHeader class="border-b border-gray-400 py-3 dark:border-gray-500"> |
| 74 | + <CardHeader class="border-b border-gray-200 px-5 py-3 dark:border-white/10"> |
75 | 75 | <div class="flex items-center justify-between gap-2">
|
76 | 76 | {#if typeof icon === 'string'}
|
77 | 77 | <Icon {icon} size="1.5rem" aria-hidden />
|
78 | 78 | {:else if icon}
|
79 | 79 | <Logo variant="icon" size="tiny" />
|
80 | 80 | {/if}
|
81 |
| - <CardTitle tag="p" class="grow">{title}</CardTitle> |
| 81 | + <CardTitle tag="p" class="text-dark/90 grow text-lg font-semibold">{title}</CardTitle> |
82 | 82 | <Dialog.Close>
|
83 | 83 | <CloseButton onclick={() => onChange(false)} class="-me-2" />
|
84 | 84 | </Dialog.Close>
|
85 | 85 | </div>
|
86 | 86 | </CardHeader>
|
87 | 87 |
|
88 |
| - <CardBody class="grow p-5"> |
| 88 | + <CardBody class="grow px-5"> |
89 | 89 | {@render bodyChildren?.snippet()}
|
90 | 90 | </CardBody>
|
91 | 91 |
|
92 | 92 | {#if footerChildren}
|
93 |
| - <CardFooter class="border-t border-gray-400 dark:border-gray-500"> |
| 93 | + <CardFooter class="border-t border-gray-200 dark:border-white/10"> |
94 | 94 | {@render footerChildren.snippet()}
|
95 | 95 | </CardFooter>
|
96 | 96 | {/if}
|
|
0 commit comments