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:
co-authored by
Claude Opus 5.5
parent
ca8e93eaf4
commit
cf205c59ef
+7
-4
@@ -159,9 +159,10 @@ load; for running tags rely on Consent Mode.
|
||||
## Look — overriding styles
|
||||
|
||||
The banner and the button have a default, neutral look (light + dark) and work
|
||||
without any configuration. Colours and radii go through CSS custom properties with
|
||||
fallbacks — to restyle for a client, declare the variables in your CSS.
|
||||
No imports, no props, no fighting specificity:
|
||||
without any configuration. Colours and radii are the site's design tokens
|
||||
([design-tokens.md](./design-tokens.md)): with `@intecion/ipal-kit/tokens.css` and the brand's
|
||||
`src/design/tokens.ts` the banner follows the brand in both themes on its own. Without them, declare the
|
||||
variables in your CSS. No imports, no props, no fighting specificity:
|
||||
|
||||
```css
|
||||
/* global.css — everything optional, override only what you want */
|
||||
@@ -172,7 +173,9 @@ No imports, no props, no fighting specificity:
|
||||
}
|
||||
```
|
||||
|
||||
Available tokens (each has a `-dark` counterpart used under `dark:`):
|
||||
Tokens the banner reads (1.15.0: the single names, which switch with the theme in `tokens.css`; without
|
||||
`tokens.css` the fallback below follows the page's `color-scheme` via `light-dark()`, and a `-dark` variable a
|
||||
site still sets — e.g. `--ipal-surface-dark` — is used as the dark fallback):
|
||||
|
||||
| Token | Default | What it colours |
|
||||
|---|---|---|
|
||||
|
||||
Reference in New Issue
Block a user