Repository navigation
Description
What
Redesign Phase 1 — pure token/global-CSS value changes (no component restructure). Highest leverage, lowest effort: fixes figure/ground, input visibility, competing primaries, the monotone type band, and light-theme AA.
Why
The single high/high audit finding — surface and border tokens clustered in too narrow a dark band, killing figure/ground — plus the two-primaries and contrast issues all live in tokens.css. These are value edits with no structural risk.
Where
fiberpath_gui/src/styles/tokens.css (+ point the viewport background at the new canvas token).
Changes
Surfaces / elevation (widen the ramp, add a canvas surface):
--color-bg: #0a0a0c; /* was #09090b — rails/recessed ground */
--color-bg-panel: #18181b; /* was #141416 — panel plane */
--color-bg-panel-alt: #232327; /* was #1d1d20 — input wells/chrome bars */
--color-bg-hover: #2b2b30; /* was #222226 */
--color-bg-active: #34343a; /* was #2a2a2e */
--color-bg-canvas: #1c1c20; /* NEW — viewport reads as the lit work surface */Point the viewport at var(--color-bg-canvas) (rails stay on --color-bg). Reserve --shadow-md/lg for true popovers, not panels.
Borders (WCAG 1.4.11 ~3:1):
--color-border: #3a3a40; /* was #242428 (~1.2:1, invisible) */
--color-border-soft: rgb(255,255,255,0.09); /* was 0.04 */One canonical primary; collapse status duplicates:
/* --color-primary #12a89a is the ONLY primary action color */
--color-success: #22c55e; /* was #32d2b6 (teal-adjacent) */
--color-error: #ef4444; /* collapse the three reds */
--color-warning: #f97316; /* collapse the three warnings */
/* components reference only --status-* aliases; alias deleted names for one release */Text + type scale:
--color-text-label: #c4c7cf; /* NEW — label tone between text and muted */
--font-size-xs: 0.6875rem; --font-size-sm: 0.75rem; --font-size-base: 0.875rem;
--font-size-lg: 1rem; --font-size-xl: 1.25rem; --font-size-2xl: 1.5rem;
/* DROP --font-size-md (15px, used once); map h4-6 onto base */Light theme (fix AA + flat figure/ground):
[data-theme="light"]{
--color-bg:#eef0f4; --color-bg-canvas:#ffffff; --color-border:#c3c9d4;
--color-text-inverse:#08201e; /* CRITICAL: keep dark text on teal — white was 2.9:1 fail */
}Motion: add one global @media (prefers-reduced-motion: reduce) block zeroing decorative durations + swapping the spinner for an opacity pulse; add transition: var(--transition-colors) to the three snapping hover targets (.vp__btn, .toast__close, .log__btn).
Acceptance criteria
- Panels/inputs/viewport visibly separate in both themes; viewport no longer merges with the void.
- Only teal is used for primary actions anywhere at rest.
- Input/panel borders ≥ ~3:1; light-theme primary buttons pass AA.
-
prefers-reduced-motionhonored globally. -
npm run lint:css+lint:css:varsgreen; visual QA screenshots (both themes) attached.
Activity
feat(gui): redesign phase 1 — tokens & global CSS for figure/ground
CameronBrooks11 commentedon Jun 27, 2026
Landed in #239 (commit dd43650): surface ramp + --color-bg-canvas, borders to ~3:1, single teal primary, type scale, light-theme AA, reduced-motion.