feat(nav): theme-aware palette previews, left-side hamburger, home icon brand

Preview chips now mirror the bar swatch: --preview-*-accent is declared per theme (dark #f87171/#60a5fa, light #b04138/#2563eb, repeated in the prefers-color-scheme bridge) and the two [data-palette=blue] blocks declare nothing, since a chip names its own palette through data-preview. --preview-*-bg is deleted; chips take the shared --border-strong hairline. Dark-mode dots move from 2.53/3.13 to 5.24/6.36 against their panel.

The hamburger leads the bar in a new .nav-brand group (trigger then brand), and the wordmark becomes a 24px stroke home icon in a 44px target with a :focus-visible ring, still a <Link to="/">. .logo-bracket/.logo-text are removed and the <=420px guard drops its brand-gap override: the row measures 252px inside 288px.

Docs: new specs/v3/spec-v3-nav-swatch-and-hamburger.md plus supersession notes in spec-v3-mobile-navigation, spec-v3-theme-palette-switch and spec-v3-ui-enhancements; AGENTS.md, spec-ui-layout and spec-ui-navigation updated. Gates: tsc+vite build exit 0, oxlint 15 findings (11 rules-of-hooks, unchanged baseline), zero hex in App.css, 12/12 SSR bar-order assertions.
This commit is contained in:
dong.nguyen committed 2026-10-17 22:33:42 +07:00
1 parent 4387f889f5
commit c95f7b09d1
10 files changed
+513 -74

No files matched your search

@@ -827,6 +827,8 @@ export function Footer() {
**Effect:** Navigation logo uses `{Name}` format with bracket styling.
> **Superseded 2026-10-17.** The `{Name}` bracket wordmark is gone. `src/components/layout/Navigation.tsx:97-106` renders the brand as a 24px stroke home icon — `fill="none" stroke="currentColor"` with round caps, `aria-hidden="true"` — inside a 44px `.nav-logo` target, still a `<Link to="/">` so the click behaviour is unchanged, with the translated `strings.nav.home` label as `aria-label`. `.logo-bracket` and `.logo-text` are deleted from `src/App.css`; `.nav-logo` becomes a flex-centred 44px box with `:hover { color: var(--accent) }` and its own `:focus-visible` ring, because an icon-only control has no text to underline. Record: `specs/v3/spec-v3-nav-swatch-and-hamburger.md` §11.
**Implementation:**
- Update logo in `Navigation.tsx`:
- `<span className="logo-bracket">{</span>`