- entryList entryCollection, post template hero with the title, legal templates noindex (drop the reference's own workarounds) - brand primary-inverse roles: 74/74 contrast pairs - /design shows Light and Dark panels (tokens switch on any element) Co-Authored-By: Claude Opus 5.5 <[email protected]>
2.4 KiB
DESIGN.md — Example Studio
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.
1. Brand in one sentence
A small architecture and interior studio: calm, precise, natural materials. Audience: families building a house, owners of flats and small businesses. The one memorable element: the serif headings (Fraunces) against quiet sage-green surfaces. Everything else stays quiet.
2. Colour
Role (--ipal-*) |
Light | Dark | Used for |
|---|---|---|---|
| primary | oklch(0.47 0.09 160) sage green | oklch(0.74 0.09 160) | main buttons, links, key accents |
| primary-text | default | oklch(0.18 0.02 160) | text on primary in dark (light primary) |
| accent | oklch(0.55 0.13 50) terracotta | oklch(0.76 0.12 55) | star ratings, badges, highlights only |
| accent-text | default | oklch(0.18 0.02 55) | text on accent in dark |
| link-inverse | oklch(0.82 0.08 160) | oklch(0.42 0.09 160) | links on inverted sections |
| primary-inverse / -text | oklch(0.74 0.09 160) / dark text | oklch(0.47 0.09 160) / white | buttons on inverted sections |
| bg | oklch(0.985 0.006 85) warm paper | oklch(0.2 0.01 160) | page |
| surface-muted | oklch(0.955 0.012 85) | oklch(0.25 0.012 160) | alternate sections, footer |
| secondary, surface, borders, text | default | default | — |
Contrast (pnpm exec ipal-tokens --report): 74 of 74 pairs pass, light and dark, the inverse scope included.
3. Type
Body: Inter 400/500 (--font-family-body). Headings: Fraunces 600 (--font-family-heading).
subsets: ['latin', 'latin-ext']. Scale: default fluid scale. Heading style: sentence case, default tracking.
4. Shape and depth
Radius: control 0.25rem, card 0.25rem (sharp, architectural), media default. Depth: borders on cards, shadow-sm.
5. Layout
Scale: fluid-wide (default). Container default, narrow for legal and articles, measure 68ch. Section rhythm: py-section; compact bands py-section-sm. Alignment: left; centred only in the logos header.
6. Motion
Nothing animated beyond the token durations (theme switch, hover). Reduced motion: every duration 0 ms.
7. Imagery and icons
Generated placeholder images (abstract arches, stairs, façades in the brand palette) — no stock photos, no real projects. Icons: lucide (theme switch only).
8. Theme
Both, default system (Site settings → Theme), toggle on.
9. Deviations from the standard
- none