Design System Foundations
Last Verified: 2026-05-20 | Sources:equa-patternlib-nextjs/src/tokens/design-tokens.json,equa-patternlib-nextjs/src/tokens/design-tokens.css,equa-patternlib-nextjs/stories/DesignTokens.mdx
Source Of Truth
The design-token source isequa-patternlib-nextjs/src/tokens/design-tokens.json. The generated CSS and TypeScript exports are consumed by Storybook, equa-web, and gateway-aligned Lit/CSS surfaces.

Token Groups
| Group | Source | Notes |
|---|---|---|
| $schema | design-tokens.json | Token group exported through CSS and TypeScript generation |
| meta | design-tokens.json | Token group exported through CSS and TypeScript generation |
| colors | design-tokens.json | Token group exported through CSS and TypeScript generation |
| spacing | design-tokens.json | Token group exported through CSS and TypeScript generation |
| typography | design-tokens.json | Token group exported through CSS and TypeScript generation |
| radii | design-tokens.json | Token group exported through CSS and TypeScript generation |
| shadows | design-tokens.json | Token group exported through CSS and TypeScript generation |
| breakpoints | design-tokens.json | Token group exported through CSS and TypeScript generation |
| animation | design-tokens.json | Token group exported through CSS and TypeScript generation |
Theme Contract
| Theme | Scope | Notes |
|---|---|---|
| Equa dark | Storybook, equa-web, gateway-aligned components | Default dark teal product theme |
| Light | Storybook, equa-web, gateway-aligned components | Light product theme for screenshots and contrast checks |
| Midnight | Storybook and equa-web | Product-only dark navy theme, not a gateway requirement |
Export Convention
- Keep generated token assets in the owning product repo until copied into this docs repo as visual references.
- Store rendered token visuals under
/images/design-system/foundations/. - Store synced Figma exports under
/images/design-system/figma-exports/.
Update Workflow
- Edit
equa-patternlib-nextjs/src/tokens/design-tokens.json. - Run
npm run tokensandnpm run tokens:checkinequa-patternlib-nextjs. - Refresh this page and any affected component screenshots.
- Run
npm run build:search,npm run validate,npm run broken-links, andnpm run a11yinequa-docs.