Phase 1 Step 4. Move the palette out of globals.css :root into a new
styles/tokens.css: a neutral/professional default on :root (landing +
content) and the ParVagues neon/dark palette scoped to
[data-theme="parvagues"], set on the app/parvagues/layout.tsx wrapper.
The ~90 var(--…) consumers resolve against that ancestor scope, so
theming is one attribute — no per-component edits.
- globals.css: drop the :root palette + hardcoded dark html/body bg;
body now reads var(--surface)/var(--text-primary).
- parvagues.module.css: remove the dead duplicate .colorRoot/.colorContainer.
- main.css: replace the body:not(:has(.parvagues-root)) element-style hack
with a positive .site-shell scope on the content Layout container; links
use the new --link token.
- delete dead styles/dunbar.module.css.
Verified: prod build green (14 routes, ParVagues ISR intact); fresh-dev
smoke all 200; data-theme scoping confirmed (landing neutral, parvagues neon).
Co-Authored-By:
Claude Opus 4.8 (1M context) <noreply@anthropic.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .cursor/rules | Loading commit data... | |
| .yarn | Loading commit data... | |
| app | Loading commit data... | |
| components | Loading commit data... | |
| content | Loading commit data... | |
| docs | Loading commit data... | |
| lib | Loading commit data... | |
| public | Loading commit data... | |
| screenshots | Loading commit data... | |
| scripts | Loading commit data... | |
| styles | Loading commit data... | |
| tests | Loading commit data... | |
| .gitignore | Loading commit data... | |
| .nvmrc | Loading commit data... | |
| .pnp.cjs | Loading commit data... | |
| .pnp.loader.mjs | Loading commit data... | |
| CLAUDE.md | Loading commit data... | |
| DEPENDENCIES_TO_INSTALL.md | Loading commit data... | |
| README.md | Loading commit data... | |
| TODO.md | Loading commit data... | |
| dependencies-to-install.md | Loading commit data... | |
| jest.config.js | Loading commit data... | |
| next-env.d.ts | Loading commit data... | |
| next.config.js | Loading commit data... | |
| package.json | Loading commit data... | |
| playwright.config.ts | Loading commit data... | |
| postcss.config.mjs | Loading commit data... | |
| tsconfig.json | Loading commit data... | |
| yarn.lock | Loading commit data... |