Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2.2 KiB
2.2 KiB
Context
The portal is a Next.js app with shadcn-style components. Every colour already comes from CSS custom properties in app/globals.css (enforced by app/design-tokens.test.ts), so the look is mostly token values. The current tokens, fonts (Inter plus DM Sans headings) and 1rem radius came from the babyboo portal. Full design: docs/superpowers/specs/2026-12-01-visual-foundation-design.md.
Goals / Non-Goals
Goals: replace the token values, fonts, radius and shadow; fix the shell and the wordmark; turn every native select into the shared Radix select.
Non-Goals: booth screen, visitor pages, login (follow-up change); per-company accent; new components or dependencies.
Decisions
- Token values, not class rewrites. Change
:rootand.darkvalues inglobals.css: background white, foreground #0F172A, muted foreground #64748B, muted/secondary #F1F5F9, border #E2E8F0, primary and ring #2563EB, destructive red, plus success and warning tokens if missing.--radiusbecomes 0.5rem (cards 8px, controls 6px). - Inter only. Drop the DM Sans font file and variable from
layout.tsx;--font-headingpoints at Inter. The test that expects DM Sans on<html>is re-targeted to "only Inter" (requirement One Type Family). - Wordmark. Remove
.brand-gradient-textand its use; the sidebar shows a blue square mark plus solid "Co-Lite". - Selects. Use the existing
app/components/ui/select.tsx. Radix Select does not accept an empty string as a value, so "All companies" uses a sentinel value mapped back toundefined. Tests that usedselectOptionson native selects open the menu and click the option instead (requirement Styled Dropdown Menus). - Dark theme. Keep the existing
.darkmechanism; re-derive its values from slate-900/800 surfaces and a lighter blue (#3B82F6) accent.
Risks / Trade-offs
- [Re-targeted tests could hide a regression] → each changed test maps to a scenario in the new spec; the reviewer checks no assertion is weakened.
- [Radix Select in jsdom] → the existing
select.test.tsxalready drives it; reuse its helpers. - [Screens look half-done until booth and visitor pages follow] → those pages are public or phone-only and are next in line.