Rules for styling work across the repo. Applies whenever you touch colors, spacing, or component tokens.
graphwise-styleguide: where the --gw-* tokens come from and how they are loaded.graphwise-styleguide.graphwise-styleguideDesign tokens come from Figma Token Studio and are built into theme stylesheets by the external graphwise-styleguide npm package. Verified in this repo:
packages/root-config/package.json declares the graphwise-styleguide dependency.packages/root-config/src/bootstrap/theme/theme-bootstrap.ts dynamically imports graphwise-styleguide/dist/variables-light.css and variables-dark.css.--gw-* prefix.--gw-* CSS variables over hardcoding colors/spacing/token values.graphwise-styleguide package, not here.--gw-* where practical (see packages/root-config/src/vendor/variables.css).--gw-* variables in packages/legacy-workbench.To develop against a locally linked graphwise-styleguide:
npm run dev:styleguide # link + start
npm run link:styleguide # link only
npm run unlink:styleguide # unlink
--p-* trap, checking a token exists, common tokens): styling