forge
Explore
Log in

Don't you dare go Hollow

💄 apply HIG polish to shared UI

Browse files at this commit

20c2a2a698e2897198219a36e78b2094c411767aBurak BoduroğluParent: 4673103
  • style
    • 💄 apply HIG polish to shared UI
Show full message
style: 💄 apply HIG polish to shared UI

- align shared dialogs, inputs, toasts, pagination, and date picker with rounded frosted surfaces and larger touch targets

- soften dashboard into grouped cards, remove decorative jiggle/float motion, and add a live status dot beside the date

- tighten mobile safe-area spacing and sidebar account menu styling

- sync UI token docs with current Apple-style palette, typography, radius, and overlay rules
docs/ui-redesign-tokens.mdmodified+24 -17
@@ -2,8 +2,8 @@
2 2
3 ## Direction3 ## Direction
4 4
5-Dense school admin UI: Fintables-style tables, Cloudflare-style grouped sidebar5+Dense school admin UI with Apple HIG-inspired grouped surfaces: neutral grouped
6-and status boards, neutral surfaces, subtle borders, one blue accent for6+backgrounds, subtle borders, translucent overlays, one blue accent for
7 interactive chrome only. Dashboard and overview surfaces stay grayscale; color7 interactive chrome only. Dashboard and overview surfaces stay grayscale; color
8 is reserved for semantic status (success / warning / danger / info).8 is reserved for semantic status (success / warning / danger / info).
9 9
@@ -11,16 +11,16 @@ is reserved for semantic status (success / warning / danger / info).
11 11
12 Light palette is defined in `src/index.css` as `--ui-*` variables:12 Light palette is defined in `src/index.css` as `--ui-*` variables:
13 13
14-- `--ui-bg`: `#f7f8f8`14+- `--ui-bg`: `240 5% 96%`
15-- `--ui-surface-1`: `#ffffff`15+- `--ui-surface-1`: `0 0% 100%`
16-- `--ui-surface-2`: `#f1f3f3`16+- `--ui-surface-2`: `240 5% 92%`
17-- `--ui-surface-3`: `#e7eaea`17+- `--ui-surface-3`: `240 5% 88%`
18-- `--ui-border-1`: `#d9dddd`18+- `--ui-border-1`: `240 5% 86%`
19-- `--ui-border-2`: `#c7cccc`19+- `--ui-border-2`: `240 4% 78%`
20-- `--ui-text-1`: `#101414`20+- `--ui-text-1`: `240 10% 9%`
21-- `--ui-text-2`: `#4b5555`21+- `--ui-text-2`: `240 5% 35%`
22-- `--ui-text-3`: `#788181`22+- `--ui-text-3`: `240 4% 52%`
23-- `--ui-accent`: ice-blue / teal-blue (`204 86% 48%` in HSL tokens)23+- `--ui-accent`: Apple system blue (`211 100% 50%`)
24 - semantic colors: success, warning, danger, info, each with muted pair24 - semantic colors: success, warning, danger, info, each with muted pair
25 25
26 Dark palette mirrors same token names with dark surfaces and brighter semantic26 Dark palette mirrors same token names with dark surfaces and brighter semantic
@@ -31,11 +31,11 @@ to these `--ui-*` variables so existing components keep working.
31 31
32 ## Typography32 ## Typography
33 33
34-- UI face: `DM Sans`34+- UI face: system Apple stack (`-apple-system`, `BlinkMacSystemFont`, SF Pro,
35+ Helvetica Neue fallback)
35 - Data face: `.mono` / `.num`, using `ui-monospace, SFMono-Regular, Menlo,36 - Data face: `.mono` / `.num`, using `ui-monospace, SFMono-Regular, Menlo,
36 Monaco, Consolas`37 Monaco, Consolas`
37-- Display serif removed from data/admin pages; `.font-display` now maps to UI38+- `.font-display` maps to the same system UI face with tighter letter spacing.
38- face for tighter dashboard hierarchy.
39 39
40 Scale target:40 Scale target:
41 41
@@ -62,7 +62,8 @@ Density defaults:
62 - sidebar group/header row: 32px62 - sidebar group/header row: 32px
63 - table header/cell row: 36px63 - table header/cell row: 36px
64 - card padding: 16px64 - card padding: 16px
65-- radius: 12px base token (`0.75rem`), with token-derived `rounded-md`/`rounded-lg`/`rounded-xl` used by form, feedback, card, and panel surfaces65+- radius: 16px base token (`1rem`), with `rounded-xl`/`rounded-2xl` used by form,
66+ feedback, card, and panel surfaces
66 - table numerals/IDs use tabular mono67 - table numerals/IDs use tabular mono
67 - table action column: narrow, centered, three-dot trigger68 - table action column: narrow, centered, three-dot trigger
68 - table column separators: subtle border between cells, no heavy gridlines69 - table column separators: subtle border between cells, no heavy gridlines
@@ -80,6 +81,8 @@ Implemented:
80 - role pills with semantic tints81 - role pills with semantic tints
81 - mono IDs and tabular metrics82 - mono IDs and tabular metrics
82 - neutral surfaces, subtle borders, no gradients or decorative cards83 - neutral surfaces, subtle borders, no gradients or decorative cards
84+- HIG shared primitives: rounded controls, frosted overlays, tactile press
85+ feedback, and 44px targets where layout allows
83 86
84 ## Dashboard (homepage)87 ## Dashboard (homepage)
85 88
@@ -158,5 +161,9 @@ Directory [ Search... ]
158 161
159 ## Dropdowns & Select Elevation162 ## Dropdowns & Select Elevation
160 163
161-- All dropdown menus (`DropdownMenu`), comboboxes (`Combobox`), popovers (`Popover`), and native selects (`Select`) use Apple HIG squircle containers (`rounded-2xl`), frosted glass backdrop blur (`backdrop-blur-xl`), tactile press feedback, and 44pt touch targets (`min-h-[2.5rem]`).164+- Dropdown menus (`DropdownMenu`), comboboxes (`Combobox`), popovers (`Popover`),
165+ dialogs, side panels, and toasts use squircle containers (`rounded-2xl` /
166+ `rounded-3xl`), frosted glass backdrop blur (`backdrop-blur-xl`), tactile
167+ press feedback, and 44px targets where layout allows. Native selects keep the
168+ same rounded 44px control shape; their option popup remains browser-owned.
162 - Table actions headers use `w-28 min-w-[7rem] text-center whitespace-nowrap` to ensure localized labels (`İŞLEMLER`, `Actions`) render without text truncation or overflow.169 - Table actions headers use `w-28 min-w-[7rem] text-center whitespace-nowrap` to ensure localized labels (`İŞLEMLER`, `Actions`) render without text truncation or overflow.
src/components/layout/app-shell.tsxmodified+1 -1
@@ -160,7 +160,7 @@ export function AppShell(props: ParentProps) {
160 <div160 <div
161 class={cn(161 class={cn(
162 "mx-auto w-full px-4 py-6 sm:px-6 lg:px-8 lg:py-6",162 "mx-auto w-full px-4 py-6 sm:px-6 lg:px-8 lg:py-6",
163- auth.user() && !wide() && "pb-24 lg:pb-6",163+ auth.user() && !wide() && "pb-[calc(5rem+env(safe-area-inset-bottom))] lg:pb-6",
164 wide() ? "max-w-none" : "max-w-[1280px] xl:max-w-[1600px] 2xl:max-w-none",164 wide() ? "max-w-none" : "max-w-[1280px] xl:max-w-[1600px] 2xl:max-w-none",
165 )}165 )}
166 >166 >
src/components/layout/mobile-tab-bar.tsxmodified+1 -1
@@ -39,7 +39,7 @@ export function MobileTabBar(props: { onMenu: () => void }) {
39 39
40 return (40 return (
41 <nav41 <nav
42- class="fixed inset-x-0 bottom-0 z-40 border-t border-black/[0.06] dark:border-white/[0.08] bg-background/85 pb-[env(safe-area-inset-bottom)] backdrop-blur-xl shadow-[0_-4px_24px_rgba(0,0,0,0.04)] lg:hidden"42+ class="fixed inset-x-0 bottom-0 z-40 border-t border-black/[0.06] bg-background/85 pt-1 pb-[calc(env(safe-area-inset-bottom)+0.5rem)] shadow-[0_-4px_24px_rgba(0,0,0,0.04)] backdrop-blur-xl dark:border-white/[0.08] lg:hidden"
43 aria-label={t("nav.menu")}43 aria-label={t("nav.menu")}
44 >44 >
45 <ul class="mx-auto grid h-16 max-w-[1200px] grid-cols-5">45 <ul class="mx-auto grid h-16 max-w-[1200px] grid-cols-5">
src/components/layout/sidebar-account.tsxmodified+9 -9
@@ -46,15 +46,15 @@ export function SidebarAccount(props: { collapsed?: boolean; onLogout: () => voi
46 "flex w-full items-center text-left outline-none transition-colors",46 "flex w-full items-center text-left outline-none transition-colors",
47 "focus-visible:ring-2 focus-visible:ring-ring",47 "focus-visible:ring-2 focus-visible:ring-ring",
48 props.collapsed48 props.collapsed
49- ? "h-9 justify-center rounded-lg px-0 hover:bg-muted/70 data-[expanded]:bg-muted/70"49+ ? "h-11 justify-center rounded-xl px-0 hover:bg-muted/70 data-[expanded]:bg-muted/70"
50- : "h-12 gap-2 rounded-lg border border-border/80 bg-card/70 px-2 shadow-sm hover:bg-muted/50 data-[expanded]:bg-muted/50",50+ : "h-12 gap-2 rounded-xl border border-border/80 bg-card/70 px-2 shadow-sm hover:bg-muted/50 data-[expanded]:bg-muted/50",
51 )}51 )}
52 aria-label={t("nav.account")}52 aria-label={t("nav.account")}
53 >53 >
54 <span54 <span
55 class={cn(55 class={cn(
56 "flex shrink-0 items-center justify-center rounded-full bg-primary text-[11px] font-bold text-primary-foreground shadow-sm ring-1 ring-border/70",56 "flex shrink-0 items-center justify-center rounded-full bg-primary text-[11px] font-bold text-primary-foreground shadow-sm ring-1 ring-border/70",
57- props.collapsed ? "h-8 w-8" : "h-8 w-8",57+ props.collapsed ? "h-9 w-9" : "h-8 w-8",
58 )}58 )}
59 >59 >
60 {initials(name())}60 {initials(name())}
@@ -70,30 +70,30 @@ export function SidebarAccount(props: { collapsed?: boolean; onLogout: () => voi
70 </Show>70 </Show>
71 </DropdownMenuTrigger>71 </DropdownMenuTrigger>
72 72
73- <DropdownMenuContent class="w-52 rounded-lg border-border/80 bg-popover p-1 shadow-soft">73+ <DropdownMenuContent class="w-52 rounded-2xl border-black/[0.08] bg-popover/95 p-1.5 shadow-apple backdrop-blur-xl dark:border-white/[0.12]">
74- <DropdownMenuItem class="rounded-md gap-2" onSelect={() => setProfileOpen(true)}>74+ <DropdownMenuItem class="rounded-xl gap-2" onSelect={() => setProfileOpen(true)}>
75 <IconEdit class="h-4 w-4 shrink-0 text-muted-foreground" />75 <IconEdit class="h-4 w-4 shrink-0 text-muted-foreground" />
76 <span>{t("profile.edit")}</span>76 <span>{t("profile.edit")}</span>
77 </DropdownMenuItem>77 </DropdownMenuItem>
78 <DropdownMenuSeparator />78 <DropdownMenuSeparator />
79- <DropdownMenuItem class="rounded-md gap-2" onSelect={() => prefs.toggleTheme()}>79+ <DropdownMenuItem class="rounded-xl gap-2" onSelect={() => prefs.toggleTheme()}>
80 <Show when={prefs.theme() === "dark"} fallback={<IconSun class="h-4 w-4 shrink-0 text-muted-foreground" />}>80 <Show when={prefs.theme() === "dark"} fallback={<IconSun class="h-4 w-4 shrink-0 text-muted-foreground" />}>
81 <IconMoon class="h-4 w-4 shrink-0 text-muted-foreground" />81 <IconMoon class="h-4 w-4 shrink-0 text-muted-foreground" />
82 </Show>82 </Show>
83 <span class="min-w-0 flex-1">{t("theme.toggle")}</span>83 <span class="min-w-0 flex-1">{t("theme.toggle")}</span>
84 <span class="text-xs text-muted-foreground">{prefs.theme() === "dark" ? t("theme.dark") : t("theme.light")}</span>84 <span class="text-xs text-muted-foreground">{prefs.theme() === "dark" ? t("theme.dark") : t("theme.light")}</span>
85 </DropdownMenuItem>85 </DropdownMenuItem>
86- <DropdownMenuItem class="rounded-md gap-2" onSelect={() => prefs.setLocale(prefs.locale() === "tr" ? "en" : "tr")}>86+ <DropdownMenuItem class="rounded-xl gap-2" onSelect={() => prefs.setLocale(prefs.locale() === "tr" ? "en" : "tr")}>
87 <IconGlobe class="h-4 w-4 shrink-0 text-muted-foreground" />87 <IconGlobe class="h-4 w-4 shrink-0 text-muted-foreground" />
88 <span class="min-w-0 flex-1">{t("lang.label")}</span>88 <span class="min-w-0 flex-1">{t("lang.label")}</span>
89 <span class="text-xs text-muted-foreground">{prefs.locale() === "tr" ? "TR" : "EN"}</span>89 <span class="text-xs text-muted-foreground">{prefs.locale() === "tr" ? "TR" : "EN"}</span>
90 </DropdownMenuItem>90 </DropdownMenuItem>
91- <DropdownMenuItem class="rounded-md gap-2" onSelect={() => void navigate({ to: "/guide" })}>91+ <DropdownMenuItem class="rounded-xl gap-2" onSelect={() => void navigate({ to: "/guide" })}>
92 <IconGuide class="h-4 w-4 shrink-0 text-muted-foreground" />92 <IconGuide class="h-4 w-4 shrink-0 text-muted-foreground" />
93 <span>{t("nav.guide")}</span>93 <span>{t("nav.guide")}</span>
94 </DropdownMenuItem>94 </DropdownMenuItem>
95 <DropdownMenuSeparator />95 <DropdownMenuSeparator />
96- <DropdownMenuItem destructive class="rounded-md gap-2" onSelect={() => void props.onLogout()}>96+ <DropdownMenuItem destructive class="rounded-xl gap-2" onSelect={() => void props.onLogout()}>
97 <IconLogout class="h-4 w-4 shrink-0" />97 <IconLogout class="h-4 w-4 shrink-0" />
98 <span>{t("nav.logout")}</span>98 <span>{t("nav.logout")}</span>
99 </DropdownMenuItem>99 </DropdownMenuItem>
src/components/ui/data-table.tsxmodified+1 -1
@@ -171,7 +171,7 @@ export function DataTable<TData, TValue = unknown>(props: DataTableProps<TData,
171 {t("common.columns")}171 {t("common.columns")}
172 <IconChevronDown class="h-3.5 w-3.5 opacity-60" />172 <IconChevronDown class="h-3.5 w-3.5 opacity-60" />
173 </DropdownMenuTrigger>173 </DropdownMenuTrigger>
174- <DropdownMenuContent class="w-48 rounded-xl border border-black/[0.08] dark:border-white/[0.12] p-1.5 shadow-apple bg-popover/95 backdrop-blur-xl">174+ <DropdownMenuContent class="w-48 rounded-2xl border border-black/[0.08] bg-popover/95 p-1.5 shadow-apple backdrop-blur-xl dark:border-white/[0.12]">
175 <For each={hideableColumns()}>175 <For each={hideableColumns()}>
176 {(column) => (176 {(column) => (
177 <DropdownMenuCheckboxItem177 <DropdownMenuCheckboxItem
src/components/ui/data-toolbar.tsxmodified+1 -1
@@ -20,7 +20,7 @@ export function DataToolbar(props: {
20 <div class="relative w-full sm:max-w-72">20 <div class="relative w-full sm:max-w-72">
21 <IconSearch class="pointer-events-none absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" />21 <IconSearch class="pointer-events-none absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" />
22 <Input22 <Input
23- class="h-9 w-full rounded-md bg-background pl-8 text-[13px]"23+ class="h-11 w-full rounded-xl bg-background pl-8 text-[13px]"
24 value={props.searchValue ?? ""}24 value={props.searchValue ?? ""}
25 placeholder={props.searchPlaceholder}25 placeholder={props.searchPlaceholder}
26 onInput={(e) => props.onSearchInput?.(e.currentTarget.value)}26 onInput={(e) => props.onSearchInput?.(e.currentTarget.value)}
src/components/ui/date-picker.tsxmodified+7 -7
@@ -128,7 +128,7 @@ export function DatePicker(props: {
128 <div class="relative">128 <div class="relative">
129 <Input129 <Input
130 id={props.id}130 id={props.id}
131- class={cn("rounded-sm pr-9 placeholder:text-muted-foreground/45", props.class)}131+ class={cn("pr-9 placeholder:text-muted-foreground/45", props.class)}
132 inputMode="numeric"132 inputMode="numeric"
133 placeholder={props.placeholder}133 placeholder={props.placeholder}
134 pattern="\d{2}/\d{2}/\d{4}"134 pattern="\d{2}/\d{2}/\d{4}"
@@ -148,16 +148,16 @@ export function DatePicker(props: {
148 <div148 <div
149 ref={panel}149 ref={panel}
150 data-kb-top-layer=""150 data-kb-top-layer=""
151- class="pointer-events-auto fixed z-[80] rounded-xl border border-border/80 bg-popover p-2.5 text-popover-foreground shadow-xl"151+ class="pointer-events-auto fixed z-[80] rounded-2xl border border-black/[0.08] bg-popover/95 p-2.5 text-popover-foreground shadow-apple backdrop-blur-xl dark:border-white/[0.12]"
152 style={{ left: `${position().left}px`, top: `${position().top}px`, width: `${position().width}px` }}152 style={{ left: `${position().left}px`, top: `${position().top}px`, width: `${position().width}px` }}
153 on:pointerdown={(e) => e.stopPropagation()}153 on:pointerdown={(e) => e.stopPropagation()}
154 >154 >
155 <div class="mb-3 flex items-center justify-between gap-2">155 <div class="mb-3 flex items-center justify-between gap-2">
156- <button type="button" class="inline-flex h-8 w-8 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground" onClick={() => moveMonth(-1)}>156+ <button type="button" class="inline-flex h-10 w-10 items-center justify-center rounded-xl text-muted-foreground transition-all hover:bg-accent hover:text-accent-foreground active:scale-[0.96] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring" onClick={() => moveMonth(-1)}>
157 <IconChevronLeft class="h-4 w-4" />157 <IconChevronLeft class="h-4 w-4" />
158 </button>158 </button>
159 <p class="min-w-0 truncate px-2 text-sm font-semibold capitalize">{monthLabel()}</p>159 <p class="min-w-0 truncate px-2 text-sm font-semibold capitalize">{monthLabel()}</p>
160- <button type="button" class="inline-flex h-8 w-8 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground" onClick={() => moveMonth(1)}>160+ <button type="button" class="inline-flex h-10 w-10 items-center justify-center rounded-xl text-muted-foreground transition-all hover:bg-accent hover:text-accent-foreground active:scale-[0.96] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring" onClick={() => moveMonth(1)}>
161 <IconChevronRight class="h-4 w-4" />161 <IconChevronRight class="h-4 w-4" />
162 </button>162 </button>
163 </div>163 </div>
@@ -167,12 +167,12 @@ export function DatePicker(props: {
167 <div class="mt-1 grid grid-cols-7 gap-0.5">167 <div class="mt-1 grid grid-cols-7 gap-0.5">
168 <For each={days()}>168 <For each={days()}>
169 {(date) => (169 {(date) => (
170- <Show when={date} fallback={<span class="h-8" />}>170+ <Show when={date} fallback={<span class="h-9" />}>
171 {(day) => (171 {(day) => (
172 <button172 <button
173 type="button"173 type="button"
174 class={cn(174 class={cn(
175- "inline-flex h-8 items-center justify-center rounded-lg border border-transparent p-0 text-xs font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring active:scale-[0.98]",175+ "inline-flex h-9 items-center justify-center rounded-xl border border-transparent p-0 text-xs font-medium transition-all hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring active:scale-[0.98]",
176 isSameDay(today, day()) && "border-primary/50 text-primary",176 isSameDay(today, day()) && "border-primary/50 text-primary",
177 sameDay(selected(), day()) && "border-primary bg-primary text-primary-foreground shadow-sm hover:bg-primary/90 hover:text-primary-foreground",177 sameDay(selected(), day()) && "border-primary bg-primary text-primary-foreground shadow-sm hover:bg-primary/90 hover:text-primary-foreground",
178 )}178 )}
@@ -190,7 +190,7 @@ export function DatePicker(props: {
190 </div>190 </div>
191 <button191 <button
192 type="button"192 type="button"
193- class="mt-2 inline-flex h-8 w-full items-center justify-center rounded-lg border bg-background/80 px-3 text-xs font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground"193+ class="mt-2 inline-flex h-10 w-full items-center justify-center rounded-xl border bg-background/80 px-3 text-xs font-medium text-muted-foreground transition-all hover:bg-accent hover:text-accent-foreground active:scale-[0.98] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
194 onClick={(event) => {194 onClick={(event) => {
195 event.stopPropagation();195 event.stopPropagation();
196 pick(today);196 pick(today);
src/components/ui/dialog.tsxmodified+5 -5
@@ -17,12 +17,12 @@ export function DialogContent<T extends ValidComponent = "div">(
17 ]);17 ]);
18 return (18 return (
19 <DialogPrimitive.Portal>19 <DialogPrimitive.Portal>
20- <DialogPrimitive.Overlay class="fixed inset-0 z-50 bg-black/40 backdrop-blur-[2px] dark:bg-black/60" />20+ <DialogPrimitive.Overlay class="fixed inset-0 z-50 bg-black/40 backdrop-blur-md transition-opacity duration-200 dark:bg-black/60" />
21 {/* flex center — animate-fade-up must not own transform positioning */}21 {/* flex center — animate-fade-up must not own transform positioning */}
22 <div class="pointer-events-none fixed inset-0 z-50 flex items-center justify-center p-3 sm:p-4">22 <div class="pointer-events-none fixed inset-0 z-50 flex items-center justify-center p-3 sm:p-4">
23 <DialogPrimitive.Content23 <DialogPrimitive.Content
24 class={cn(24 class={cn(
25- "pointer-events-auto relative flex max-h-[min(90vh,48rem)] w-full max-w-3xl flex-col overflow-hidden rounded-sm border border-border bg-popover text-popover-foreground shadow-md outline-none animate-fade-up",25+ "pointer-events-auto relative flex max-h-[min(90vh,48rem)] w-full max-w-3xl flex-col overflow-hidden rounded-2xl border border-black/[0.08] bg-popover/95 text-popover-foreground shadow-apple outline-none backdrop-blur-xl animate-fade-up dark:border-white/[0.12] sm:rounded-3xl",
26 local.class,26 local.class,
27 )}27 )}
28 // ponytail: close only via X — outside/ESC races with clickable cards underneath28 // ponytail: close only via X — outside/ESC races with clickable cards underneath
@@ -33,7 +33,7 @@ export function DialogContent<T extends ValidComponent = "div">(
33 >33 >
34 <DialogPrimitive.CloseButton34 <DialogPrimitive.CloseButton
35 type="button"35 type="button"
36- class="absolute right-3 top-3 z-10 inline-flex h-8 w-8 items-center justify-center rounded-md border border-border/80 bg-background text-muted-foreground shadow-sm transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"36+ class="absolute right-3 top-3 z-10 inline-flex h-10 w-10 items-center justify-center rounded-xl border border-black/[0.08] bg-background text-muted-foreground shadow-sm transition-all hover:bg-muted hover:text-foreground active:scale-[0.96] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring dark:border-white/[0.12]"
37 aria-label="Close"37 aria-label="Close"
38 >38 >
39 <IconX class="h-4 w-4" />39 <IconX class="h-4 w-4" />
@@ -46,11 +46,11 @@ export function DialogContent<T extends ValidComponent = "div">(
46 }46 }
47 47
48 export function DialogHeader(props: ParentProps<{ class?: string }>) {48 export function DialogHeader(props: ParentProps<{ class?: string }>) {
49- return <div class={cn("border-b border-border px-5 py-4 pr-14", props.class)}>{props.children}</div>;49+ return <div class={cn("border-b border-black/[0.06] bg-card/80 px-5 py-4 pr-14 backdrop-blur-xl dark:border-white/[0.08] sm:px-6", props.class)}>{props.children}</div>;
50 }50 }
51 51
52 export function DialogBody(props: ParentProps<{ class?: string }>) {52 export function DialogBody(props: ParentProps<{ class?: string }>) {
53- return <div class={cn("overflow-y-auto px-5 py-4", props.class)}>{props.children}</div>;53+ return <div class={cn("overflow-y-auto bg-muted/20 px-5 py-4 sm:px-6", props.class)}>{props.children}</div>;
54 }54 }
55 55
56 export function DialogTitle<T extends ValidComponent = "h2">(56 export function DialogTitle<T extends ValidComponent = "h2">(
src/components/ui/empty-state.tsxmodified+1 -1
@@ -19,7 +19,7 @@ export function EmptyState(props: {
19 props.class,19 props.class,
20 )}20 )}
21 >21 >
22- <div class="relative flex h-16 w-16 items-center justify-center rounded-2xl border border-primary/20 bg-primary/10 text-primary shadow-inner animate-float">22+ <div class="relative flex h-16 w-16 items-center justify-center rounded-2xl border border-primary/20 bg-primary/10 text-primary shadow-inner">
23 <Show when={kind() === "notes"}>23 <Show when={kind() === "notes"}>
24 <svg class="h-8 w-8 text-primary" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">24 <svg class="h-8 w-8 text-primary" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
25 <path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1-2.5-2.5Z" />25 <path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1-2.5-2.5Z" />
src/components/ui/pagination-controls.tsxmodified+2 -2
@@ -14,7 +14,7 @@ export function PaginationControls(props: {
14 type="button"14 type="button"
15 variant="outline"15 variant="outline"
16 size="sm"16 size="sm"
17- class="h-8 gap-1"17+ class="h-11 rounded-xl gap-1 px-4"
18 disabled={props.page <= 0}18 disabled={props.page <= 0}
19 onClick={() => props.onPageChange(Math.max(0, props.page - 1))}19 onClick={() => props.onPageChange(Math.max(0, props.page - 1))}
20 >20 >
@@ -28,7 +28,7 @@ export function PaginationControls(props: {
28 type="button"28 type="button"
29 variant="outline"29 variant="outline"
30 size="sm"30 size="sm"
31- class="h-8 gap-1"31+ class="h-11 rounded-xl gap-1 px-4"
32 disabled={props.page >= props.totalPages - 1}32 disabled={props.page >= props.totalPages - 1}
33 onClick={() => props.onPageChange(Math.min(props.totalPages - 1, props.page + 1))}33 onClick={() => props.onPageChange(Math.min(props.totalPages - 1, props.page + 1))}
34 >34 >
src/components/ui/textarea.tsxmodified+1 -1
@@ -9,7 +9,7 @@ export function Textarea(props: TextareaProps) {
9 return (9 return (
10 <textarea10 <textarea
11 class={cn(11 class={cn(
12- "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm shadow-sm transition-colors placeholder:text-muted-foreground hover:border-border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",12+ "flex min-h-24 w-full rounded-xl border border-border/80 bg-muted/30 px-3.5 py-2.5 text-sm shadow-sm transition-all duration-150 placeholder:text-muted-foreground/70 hover:bg-muted/50 hover:border-border focus:bg-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/60 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
13 local.class,13 local.class,
14 )}14 )}
15 {...rest}15 {...rest}
src/components/ui/toast.tsxmodified+2 -2
@@ -27,14 +27,14 @@ export function Toaster() {
27 <div class="pointer-events-none fixed inset-x-3 top-4 z-[80] flex flex-col items-end gap-2 sm:inset-x-auto sm:right-5 sm:w-96">27 <div class="pointer-events-none fixed inset-x-3 top-4 z-[80] flex flex-col items-end gap-2 sm:inset-x-auto sm:right-5 sm:w-96">
28 <For each={toasts()}>28 <For each={toasts()}>
29 {(toast) => (29 {(toast) => (
30- <div class="pointer-events-auto flex w-full items-start gap-3 rounded-xl border border-border bg-card px-3 py-3 text-card-foreground shadow-soft">30+ <div class="pointer-events-auto flex w-full items-start gap-3 rounded-2xl border border-black/[0.08] bg-card/95 px-3 py-3 text-card-foreground shadow-apple backdrop-blur-xl dark:border-white/[0.12]">
31 <span class="mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-emerald-500/10 text-emerald-700 dark:text-emerald-300">31 <span class="mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-emerald-500/10 text-emerald-700 dark:text-emerald-300">
32 <IconCheck class="h-3.5 w-3.5" />32 <IconCheck class="h-3.5 w-3.5" />
33 </span>33 </span>
34 <p class="min-w-0 flex-1 text-sm font-medium leading-5">{toast.title}</p>34 <p class="min-w-0 flex-1 text-sm font-medium leading-5">{toast.title}</p>
35 <button35 <button
36 type="button"36 type="button"
37- class={cn("rounded-md p-1 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground")}37+ class={cn("inline-flex h-9 w-9 items-center justify-center rounded-xl text-muted-foreground transition-all hover:bg-muted hover:text-foreground active:scale-[0.96] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring")}
38 aria-label="Dismiss"38 aria-label="Dismiss"
39 onClick={() => dismissToast(toast.id)}39 onClick={() => dismissToast(toast.id)}
40 >40 >
src/components/users/user-table.tsxmodified+2 -2
@@ -39,7 +39,7 @@ function UserRoleActions(props: {
39 return (39 return (
40 <>40 <>
41 <Select41 <Select
42- class="h-8 rounded-sm text-xs"42+ class="h-11 rounded-xl text-xs"
43 value={pendingRole()}43 value={pendingRole()}
44 disabled={isSelf()}44 disabled={isSelf()}
45 onChange={(e) => setPendingRole(e.currentTarget.value as Role)}45 onChange={(e) => setPendingRole(e.currentTarget.value as Role)}
@@ -50,7 +50,7 @@ function UserRoleActions(props: {
50 ))}50 ))}
51 </Select>51 </Select>
52 <Show when={!isSelf() && dirty()}>52 <Show when={!isSelf() && dirty()}>
53- <Button type="button" size="sm" class="mt-2 h-7 rounded-sm px-2" onClick={(e) => { e.stopPropagation(); setConfirmOpen(true); }}>53+ <Button type="button" size="sm" class="mt-2 h-10 rounded-xl px-3" onClick={(e) => { e.stopPropagation(); setConfirmOpen(true); }}>
54 <IconCheck />54 <IconCheck />
55 {t("common.update")}55 {t("common.update")}
56 </Button>56 </Button>
src/index.cssmodified+2 -22
@@ -260,7 +260,7 @@
260 }260 }
261 261
262 .card-lift {262 .card-lift {
263- @apply transition-all duration-200 ease-out hover:-translate-y-1 hover:shadow-xl hover:shadow-primary/[0.05];263+ @apply transition-shadow duration-200 ease-out hover:shadow-apple-hover;
264 }264 }
265 265
266 .hig-grouped-card {266 .hig-grouped-card {
@@ -275,37 +275,17 @@
275 @apply backdrop-blur-xl backdrop-saturate-150 bg-popover/95 border border-black/[0.08] dark:border-white/[0.12] rounded-2xl shadow-apple p-1.5;275 @apply backdrop-blur-xl backdrop-saturate-150 bg-popover/95 border border-black/[0.08] dark:border-white/[0.12] rounded-2xl shadow-apple p-1.5;
276 }276 }
277 277
278- @keyframes dashboard-jiggle {
279- 0%, 100% { transform: rotate(-0.4deg) translateY(0); }
280- 50% { transform: rotate(0.4deg) translateY(-1px); }
281- }
282-
283 @keyframes pulse-glow {278 @keyframes pulse-glow {
284 0%, 100% { opacity: 0.9; transform: scale(1); filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.4)); }279 0%, 100% { opacity: 0.9; transform: scale(1); filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.4)); }
285 50% { opacity: 1; transform: scale(1.02); filter: drop-shadow(0 0 24px rgba(59, 130, 246, 0.7)); }280 50% { opacity: 1; transform: scale(1.02); filter: drop-shadow(0 0 24px rgba(59, 130, 246, 0.7)); }
286 }281 }
287 282
288- @keyframes float-gentle {
289- 0%, 100% { transform: translateY(0px); }
290- 50% { transform: translateY(-6px); }
291- }
292-
293- .dashboard-jiggle {
294- animation: dashboard-jiggle 180ms ease-in-out infinite;
295- }
296-
297 .animate-pulse-glow {283 .animate-pulse-glow {
298 animation: pulse-glow 3s ease-in-out infinite;284 animation: pulse-glow 3s ease-in-out infinite;
299 }285 }
300 286
301- .animate-float {
302- animation: float-gentle 4s ease-in-out infinite;
303- }
304-
305 @media (prefers-reduced-motion: reduce) {287 @media (prefers-reduced-motion: reduce) {
306- .dashboard-jiggle,288+ .animate-pulse-glow {
307- .animate-pulse-glow,
308- .animate-float {
309 animation: none;289 animation: none;
310 }290 }
311 }291 }
src/pages/admin-users-page.tsxmodified+2 -2
@@ -60,7 +60,7 @@ function AdminUsersContent() {
60 <Show when={flash()}>60 <Show when={flash()}>
61 <Alert variant="success">{flash()}</Alert>61 <Alert variant="success">{flash()}</Alert>
62 </Show>62 </Show>
63- {error() && <p class="rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive">{error()}</p>}63+ {error() && <Alert variant="destructive">{error()}</Alert>}
64 64
65 <section class="grid gap-3 sm:grid-cols-2 xl:grid-cols-5">65 <section class="grid gap-3 sm:grid-cols-2 xl:grid-cols-5">
66 <For each={ROLES}>{(role) => <Metric label={t(`role.${role}` as MessageKey)} value={roleCount(role)} />}</For>66 <For each={ROLES}>{(role) => <Metric label={t(`role.${role}` as MessageKey)} value={roleCount(role)} />}</For>
@@ -74,7 +74,7 @@ function AdminUsersContent() {
74 {visibleUsers().length}74 {visibleUsers().length}
75 </p>75 </p>
76 </div>76 </div>
77- <Badge variant="outline" class="mono rounded-sm uppercase tracking-[0.08em]">77+ <Badge variant="outline" class="mono rounded-full uppercase tracking-[0.08em]">
78 {t("admin.directory")}78 {t("admin.directory")}
79 </Badge>79 </Badge>
80 </div>80 </div>
src/pages/dashboard-page.tsxmodified+15 -13
@@ -414,8 +414,8 @@ function DashboardContent() {
414 });414 });
415 415
416 return (416 return (
417- <div class="overflow-hidden rounded-2xl border border-border bg-card shadow-[0_18px_55px_rgba(15,23,42,0.07)]">417+ <div class="overflow-hidden rounded-[1.75rem] border border-black/[0.06] bg-background/70 shadow-apple dark:border-white/[0.08]">
418- <header class="flex flex-wrap items-end justify-between gap-3 border-b border-border/80 bg-muted/30 px-4 py-4 sm:px-5">418+ <header class="flex flex-wrap items-end justify-between gap-3 border-b border-black/[0.06] bg-card/85 px-4 py-4 backdrop-blur-xl dark:border-white/[0.08] sm:px-5">
419 <div class="min-w-0 space-y-1">419 <div class="min-w-0 space-y-1">
420 <p class="text-[11px] font-semibold uppercase tracking-[0.16em] text-muted-foreground">{t("dashboard.today")}</p>420 <p class="text-[11px] font-semibold uppercase tracking-[0.16em] text-muted-foreground">{t("dashboard.today")}</p>
421 <h1 class="truncate font-display text-xl font-semibold tracking-tight text-foreground sm:text-2xl">421 <h1 class="truncate font-display text-xl font-semibold tracking-tight text-foreground sm:text-2xl">
@@ -424,10 +424,13 @@ function DashboardContent() {
424 <p class="text-sm text-muted-foreground">{t("dashboard.observationOnly")}</p>424 <p class="text-sm text-muted-foreground">{t("dashboard.observationOnly")}</p>
425 </div>425 </div>
426 <div class="flex flex-wrap items-center gap-2 text-xs text-muted-foreground">426 <div class="flex flex-wrap items-center gap-2 text-xs text-muted-foreground">
427- <span class="rounded-md border border-border bg-background px-2.5 py-1 font-semibold text-foreground shadow-sm">427+ <span class="rounded-full border border-border bg-background px-2.5 py-1 font-semibold text-foreground shadow-sm">
428 {t(ROLE_KEY[role()])}428 {t(ROLE_KEY[role()])}
429 </span>429 </span>
430- <span class="rounded-md border border-border/70 bg-background/70 px-2.5 py-1 mono tabular-nums shadow-sm">{formatDateTime(now(), locale()).split(",")[0]}</span>430+ <span class="inline-flex items-center gap-2 rounded-full border border-border/70 bg-background/70 px-2.5 py-1 mono tabular-nums shadow-sm">
431+ <span class="h-2 w-2 rounded-full bg-emerald-500 shadow-[0_0_0_3px_rgba(16,185,129,0.14)]" aria-hidden="true" />
432+ {formatDateTime(now(), locale()).split(",")[0]}
433+ </span>
431 </div>434 </div>
432 </header>435 </header>
433 436
@@ -436,7 +439,7 @@ function DashboardContent() {
436 </Show>439 </Show>
437 440
438 <Show when={!loading()} fallback={<div class="px-4 py-8"><PageSpinner /></div>}>441 <Show when={!loading()} fallback={<div class="px-4 py-8"><PageSpinner /></div>}>
439- <div class="space-y-5 bg-background/50 px-4 py-4 sm:px-5 sm:py-5">442+ <div class="space-y-5 bg-muted/20 px-4 py-4 sm:px-5 sm:py-5">
440 <section class="space-y-2.5" aria-labelledby="dash-sections">443 <section class="space-y-2.5" aria-labelledby="dash-sections">
441 <div class="flex items-center justify-between gap-3">444 <div class="flex items-center justify-between gap-3">
442 <h2 id="dash-sections" class="text-sm font-semibold tracking-tight text-foreground">445 <h2 id="dash-sections" class="text-sm font-semibold tracking-tight text-foreground">
@@ -444,11 +447,11 @@ function DashboardContent() {
444 </h2>447 </h2>
445 <div class="flex items-center gap-2">448 <div class="flex items-center gap-2">
446 <Show when={editingPortalOrder()}>449 <Show when={editingPortalOrder()}>
447- <Button type="button" variant="ghost" size="sm" class="h-8 rounded-lg text-xs" onClick={resetPortalOrder}>450+ <Button type="button" variant="ghost" size="sm" class="h-10 rounded-xl text-xs" onClick={resetPortalOrder}>
448 {t("common.remove")}451 {t("common.remove")}
449 </Button>452 </Button>
450 </Show>453 </Show>
451- <Button type="button" variant="outline" size="sm" class="h-8 rounded-lg text-xs font-semibold" onClick={() => setEditingPortalOrder((value) => !value)}>454+ <Button type="button" variant="outline" size="sm" class="h-10 rounded-xl text-xs font-semibold" onClick={() => setEditingPortalOrder((value) => !value)}>
452 {editingPortalOrder() ? t("common.done") : t("common.edit")}455 {editingPortalOrder() ? t("common.done") : t("common.edit")}
453 </Button>456 </Button>
454 </div>457 </div>
@@ -580,7 +583,7 @@ function PortalCard(props: {
580 583
581 const cardInner = () => (584 const cardInner = () => (
582 <>585 <>
583- <span class="mt-0.5 flex h-10 w-10 shrink-0 items-center justify-center rounded-xl border border-black/[0.05] dark:border-white/[0.08] bg-muted/30 text-muted-foreground transition-colors group-hover:border-primary/40 group-hover:bg-primary/10 group-hover:text-primary">586+ <span class="mt-0.5 flex h-11 w-11 shrink-0 items-center justify-center rounded-xl border border-black/[0.05] bg-muted/30 text-muted-foreground transition-colors group-hover:border-border group-hover:bg-muted/50 group-hover:text-foreground dark:border-white/[0.08]">
584 <Icon class="h-5 w-5" />587 <Icon class="h-5 w-5" />
585 </span>588 </span>
586 <div class="min-w-0 flex-1 space-y-1">589 <div class="min-w-0 flex-1 space-y-1">
@@ -610,7 +613,7 @@ function PortalCard(props: {
610 type="button"613 type="button"
611 variant="outline"614 variant="outline"
612 size="sm"615 size="sm"
613- class="h-7 w-7 p-0 rounded-lg border-primary/30 text-xs font-bold shadow-none hover:bg-primary/15 disabled:opacity-30"616+ class="h-10 w-10 rounded-xl p-0 text-xs font-bold shadow-none disabled:opacity-30"
614 disabled={props.isFirst}617 disabled={props.isFirst}
615 onClick={(e) => {618 onClick={(e) => {
616 e.preventDefault();619 e.preventDefault();
@@ -625,7 +628,7 @@ function PortalCard(props: {
625 type="button"628 type="button"
626 variant="outline"629 variant="outline"
627 size="sm"630 size="sm"
628- class="h-7 w-7 p-0 rounded-lg border-primary/30 text-xs font-bold shadow-none hover:bg-primary/15 disabled:opacity-30"631+ class="h-10 w-10 rounded-xl p-0 text-xs font-bold shadow-none disabled:opacity-30"
629 disabled={props.isLast}632 disabled={props.isLast}
630 onClick={(e) => {633 onClick={(e) => {
631 e.preventDefault();634 e.preventDefault();
@@ -643,10 +646,9 @@ function PortalCard(props: {
643 646
644 const cardClass = () =>647 const cardClass = () =>
645 cn(648 cn(
646- "group relative flex min-h-[6rem] items-start gap-3.5 overflow-hidden rounded-2xl border border-black/[0.06] dark:border-white/[0.08] bg-card p-4 shadow-apple card-lift hover:shadow-apple-hover hover:border-primary/40 sm:min-h-[6.5rem]",649+ "group relative flex min-h-[6rem] items-start gap-3.5 overflow-hidden rounded-2xl border border-black/[0.06] bg-card p-4 shadow-apple transition-[background-color,border-color,box-shadow] duration-200 hover:bg-card/90 hover:border-border dark:border-white/[0.08] sm:min-h-[6.5rem]",
647 !props.editing && "active:scale-[0.98]",650 !props.editing && "active:scale-[0.98]",
648 props.editing && "cursor-grab select-none border-dashed border-primary/50 bg-primary/[0.03]",651 props.editing && "cursor-grab select-none border-dashed border-primary/50 bg-primary/[0.03]",
649- props.editing && !props.dragging && "dashboard-jiggle",
650 props.preview && "scale-[1.02] border-primary/70 bg-primary/10 opacity-80 shadow-apple-hover",652 props.preview && "scale-[1.02] border-primary/70 bg-primary/10 opacity-80 shadow-apple-hover",
651 props.dragging && "scale-[0.98] border-primary/50 opacity-50",653 props.dragging && "scale-[0.98] border-primary/50 opacity-50",
652 );654 );
@@ -717,7 +719,7 @@ function StatusLabel(props: {
717 return (719 return (
718 <span720 <span
719 class={cn(721 class={cn(
720- "inline-flex rounded-md border px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wide",722+ "inline-flex rounded-full border px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wide",
721 scheduleStatusClass(props.status),723 scheduleStatusClass(props.status),
722 )}724 )}
723 >725 >