From 68f403d74d575d4bfb8ff4e2c1bf323e34b9d621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Boduro=C4=9Flu?= <80620802+burakboduroglu@users.noreply.github.com> Date: Tue, 28 Jul 2026 17:14:21 +0300 Subject: [PATCH] =?UTF-8?q?refactor(ui):=20=F0=9F=8E=A8=20Coolors=20light?= =?UTF-8?q?=20steel=20palette,=20graphite=20accent,=20simplified=20tokens?= =?UTF-8?q?=20-=20switch=20light=20palette=20from=20iOS=20neutrals=20to=20?= =?UTF-8?q?Coolors=20light=20steel=20(#F8F9FA=E2=86=92#212529)=20-=20inver?= =?UTF-8?q?t=20same=20scale=20for=20dark=20mode=20(graphite=20shades,=20no?= =?UTF-8?q?=20separate=20dark=20design)=20-=20replace=20orange=20brand=20a?= =?UTF-8?q?ccent=20with=20graphite=20(#343A40),=20remove=20colored=20tab?= =?UTF-8?q?=20lines=20-=20simplify=20button=20variants:=20filled=20default?= =?UTF-8?q?,=20no=20hover=20translate/scale,=20no=20dark=20overrides=20-?= =?UTF-8?q?=20strip=20dark-specific=20color=20overrides=20from=20component?= =?UTF-8?q?s=20(handled=20by=20CSS=20vars)=20-=20update=20doc=20to=20refle?= =?UTF-8?q?ct=20new=20direction:=20neutral,=20opaque=20surfaces,=20restrai?= =?UTF-8?q?ned=20elevation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/ui/ui-redesign-tokens.md | 46 ++---- src/components/layout/app-shell.tsx | 6 +- src/components/layout/sidebar-account.tsx | 2 +- src/components/ui/button.tsx | 12 +- src/components/ui/data-table.tsx | 6 +- src/components/ui/select.tsx | 2 +- src/components/ui/tabs.tsx | 9 +- src/index.css | 174 +++++++--------------- 8 files changed, 89 insertions(+), 168 deletions(-) diff --git a/docs/ui/ui-redesign-tokens.md b/docs/ui/ui-redesign-tokens.md index a134d8b..b3f3dca 100644 --- a/docs/ui/ui-redesign-tokens.md +++ b/docs/ui/ui-redesign-tokens.md @@ -3,40 +3,24 @@ ## Direction Dense school admin UI with Apple HIG-inspired grouped surfaces: neutral grouped -backgrounds, subtle borders, translucent overlays, one blue accent for -interactive chrome only. Surfaces stay neutral; color is reserved for the blue -accent, dashboard charts (see "Charts" below), and semantic status (success / -warning / danger / info). +backgrounds, subtle borders, restrained elevation, and one graphite accent for +interactive chrome. Translucency stays limited to functional layers such as +headers and popovers; content surfaces remain opaque and easy to scan. ## Color -Light palette is defined in `src/index.css` as `--ui-*` variables: - -- `--ui-bg`: `240 5% 96%` -- `--ui-surface-1`: `0 0% 100%` -- `--ui-surface-2`: `240 5% 92%` -- `--ui-surface-3`: `240 5% 88%` -- `--ui-border-1`: `240 5% 86%` -- `--ui-border-2`: `240 4% 78%` -- `--ui-text-1`: `240 10% 9%` -- `--ui-text-2`: `240 5% 35%` -- `--ui-text-3`: `240 4% 52%` -- `--ui-accent`: Apple system blue (`211 100% 50%`) -- semantic colors: success, warning, danger, info, each with muted pair - -Dark palette follows dark.design aesthetics (deep obsidian canvas, `#121318` card surfaces, crisp hairline borders, electric dark accent): - -- `--ui-bg`: `240 10% 3.9%` (`#09090b` canvas) -- `--ui-surface-1`: `240 6% 7.5%` (`#121318` card surface) -- `--ui-surface-2`: `240 6% 11.5%` (`#1b1c24` muted container / input) -- `--ui-surface-3`: `240 5% 15.5%` (`#242531` elevated popover) -- `--ui-border-1`: `240 5% 15%` (`#24252d` razor-sharp 1px border) -- `--ui-border-2`: `240 4% 22%` (`#343644` active border) -- `--ui-text-1`: `0 0% 98%` (`#fafafa` crisp heading text) -- `--ui-text-2`: `240 5% 68%` (`#a1a1aa` secondary body text) -- `--ui-text-3`: `240 4% 48%` (`#71717a` subtle label text) -- `--ui-accent`: Electric dark blue (`217 91% 60%`) -- semantic colors: luminous emerald, amber, rose, cyan +Core palette: [Coolors light steel](https://coolors.co/palette/f8f9fa-e9ecef-dee2e6-ced4da-adb5bd-6c757d-495057-343a40-212529). + +- Canvas: `#E9ECEF`; cards and popovers: `#F8F9FA` +- Muted layers: `#DEE2E6`, `#CED4DA`; borders: `#CED4DA`, `#ADB5BD` +- Text: `#212529`, secondary `#495057`, tertiary `#6C757D` +- Primary actions: `#343A40` with `#F8F9FA` text +- Dark mode reverses the same scale from `#212529` canvas to `#F8F9FA` text +- Success, warning, danger, and info keep semantic colors because color carries state + +Body text pairs exceed WCAG AA; `#6C757D` is limited to tertiary metadata and +nonessential labels. Shadows use low-opacity `#212529`, two layers at most, and +appear only where elevation communicates hierarchy or interaction. Existing shadcn tokens (`--background`, `--card`, `--primary`, etc.) are mapped to these `--ui-*` variables so existing components keep working seamlessly. diff --git a/src/components/layout/app-shell.tsx b/src/components/layout/app-shell.tsx index ca8201b..6f72b8b 100644 --- a/src/components/layout/app-shell.tsx +++ b/src/components/layout/app-shell.tsx @@ -53,7 +53,7 @@ export function AppShell(props: ParentProps) {