Files
ipal-kit/docs/agent/skills/ipal-setup/resources/DESIGN.md
T
Radosław SmolińskiandClaude Opus 5.5 ca8e93eaf4 Design tokens: ipal-tokens CLI, components on single names, templates, tests
- bin ipal-tokens: src/design/tokens.ts → src/design/tokens.css, --check, WCAG
  contrast report (fails on AA errors; --report, --warn-only)
- CookieBanner / CookieButton read the single --ipal-* roles; the fallback follows
  color-scheme via light-dark() and still honours the legacy -dark variables
- lightbox fade reads --ipal-duration / --ipal-ease-out
- DESIGN.md and tokens.ts templates in ipal-setup/resources

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-29 13:55:59 +01:00

2.0 KiB
Raw Blame History

DESIGN.md —

The human source of the look. Its machine form is src/design/tokens.ts; the two must agree (ipal-doctor compares them). Values go into tokens.ts, never into components. Sections are fixed: fill every one, write "default" where the brand keeps the standard.

1. Brand in one sentence

<what the site is, for whom, the feeling>. Audience: <…>. The one memorable element (where the boldness goes): <…>. Everything else stays quiet.

2. Colour

Role (--ipal-*) Light Dark Used for
primary oklch(…) (carried over) main buttons, key accents
secondary default default second button
accent default (= primary) badges, highlights
bg / surface / surface-muted default default page, cards, alternate sections

Contrast (paste pnpm exec ipal-tokens --report; every ✗ fixed before launch):

<report>

3. Type

Body: (--font-family-body). Headings: (--font-family-heading). Max 2 families × 2–3 weights, subsets: ['latin', 'latin-ext']. Scale overrides (fs): <none | h1 2.25→4rem …>. Heading style: <case, tracking, weight>.

4. Shape and depth

Radius: control <…>, card <…>, media <…>. Depth: <borders | shadow-sm on cards | none>.

5. Layout

Scale: fluid-wide (default) | fluid. Container <80rem>, narrow <48rem> (legal, articles), measure 68ch. Section rhythm: py-section; compact bands py-section-sm. Alignment: <left | centred hero only>.

6. Motion

What moves and why (max one orchestrated moment): <…>. Durations: default (fast 150 / base 250 / slow 400 ms). Reduced motion: every duration token is 0 ms; nothing essential is animated.

7. Imagery and icons

Photo style: <…>. Focal points set in Media. Icons: lucide set, .

8. Theme

<light only | dark only | both>, default <light | dark | system> (Site settings → Theme), toggle <yes | no>.

9. Deviations from the standard

Every override of a default, and every project-only token or breakpoint, with the reason: