Design tokens: docs, agent guide, skills, audit checks

- docs/design-tokens.md (new module page), README index, CHANGELOG
- AGENT.md §0b row 19, §6.11 rewritten for the standard, §6.11a, §7, §10, §12, §14
- ipal-setup stage 5, ipal-block section-code (Section with data-surface, Button,
  card on token utilities), ipal-site phase 8, ipal-reference (+ api.md /tokens
  section), ipal-upgrade 1.15.0 note, ipal-audit SKILL + audit.sh token checks
- theme.md, consent.md, accessibility.md (a11y.css), lightbox.md, PROGRAMISTA §2.5
- /tokens entry lists its exports explicitly; docs coverage test includes it

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-29 14:00:31 +01:00
co-authored by Claude Opus 5.5
parent ca8e93eaf4
commit cf205c59ef
19 changed files with 415 additions and 77 deletions
+5 -1
View File
@@ -81,6 +81,10 @@ type `ThemeOptions` (`ipalKit({ theme })`).
## CSS (Tailwind 4)
With the design-token standard ([design-tokens.md](./design-tokens.md)) this is already in
`@intecion/ipal-kit/tailwind.css`, and the colour roles switch on `data-theme` by themselves (no `dark:` for colours).
Without the preset, add it yourself:
```css
@custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *));
@@ -90,7 +94,7 @@ type `ThemeOptions` (`ipalKit({ theme })`).
}
```
Dark theme tokens (`surface`, `fg`…) stay in the project's `styles.css`.
Dark theme values: `src/design/tokens.ts` → `color.dark` (design-tokens.md); without the standard, in the project's `styles.css`.
## Turnstile