@shavin/skills 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +193 -0
- package/CHANGELOG.md +27 -0
- package/LICENSE +21 -0
- package/README.md +48 -2
- package/bin/hex-policy.mjs +157 -0
- package/bin/install.mjs +219 -0
- package/bin/lint-tokens.mjs +178 -0
- package/build.mjs +540 -0
- package/commands/add-composition.md +14 -0
- package/commands/apply-theme.md +59 -0
- package/commands/audit-layout.md +15 -0
- package/commands/audit-ui.md +42 -0
- package/commands/compose-page.md +16 -0
- package/commands/create-block.md +79 -0
- package/commands/create-primitive.md +40 -0
- package/commands/create-screen.md +45 -0
- package/commands/create-theme.md +41 -0
- package/cursor/shavin.mdc +14 -0
- package/package.json +66 -4
- package/posix-path.mjs +7 -0
- package/skills/core-rules.md +294 -0
- package/skills/layout-choreography/SKILL.md +102 -0
- package/skills/layout-choreography/references/fallbacks-and-accessibility.md +76 -0
- package/skills/layout-choreography/references/scenes.md +113 -0
- package/skills/layout-choreography/references/shavin-timelines.md +100 -0
- package/skills/layout-choreography/references/tech-and-performance.md +147 -0
- package/skills/layout-compositions/SKILL.md +149 -0
- package/skills/layout-compositions/references/adapters/shavin-ui.md +122 -0
- package/skills/layout-compositions/references/adapters/tailwind-html.md +100 -0
- package/skills/layout-compositions/references/component-language.md +105 -0
- package/skills/layout-compositions/references/compositions/conversion.md +286 -0
- package/skills/layout-compositions/references/compositions/documentation.md +125 -0
- package/skills/layout-compositions/references/compositions/editorial.md +126 -0
- package/skills/layout-compositions/references/compositions/expressive.md +151 -0
- package/skills/layout-compositions/references/compositions/features.md +262 -0
- package/skills/layout-compositions/references/compositions/gallery.md +172 -0
- package/skills/layout-compositions/references/compositions/hero.md +184 -0
- package/skills/layout-compositions/references/compositions/proof.md +194 -0
- package/skills/layout-compositions/references/compositions/structural.md +173 -0
- package/skills/layout-compositions/references/distinctiveness.md +65 -0
- package/skills/layout-compositions/references/foundations.md +119 -0
- package/skills/layout-compositions/references/metadata-schema.md +64 -0
- package/skills/layout-compositions/references/page-recipes.md +143 -0
- package/skills/layout-compositions/references/selection-guide.md +207 -0
- package/skills/layout-compositions/references/treatments.md +60 -0
- package/skills/layout-compositions/references/unsection-source-examples.md +92 -0
- package/skills/layout-compositions/references/visual-review.md +40 -0
- package/skills/layout-compositions/scripts/render_wireframes.py +138 -0
- package/skills/layout-compositions/scripts/validate_library.py +165 -0
- package/skills/layout-motion/SKILL.md +83 -0
- package/skills/layout-motion/references/composition-motion-map.md +69 -0
- package/skills/layout-motion/references/presets.md +209 -0
- package/skills/layout-motion/references/tokens.md +100 -0
- package/skills/shavin-app/SKILL.md +242 -0
- package/skills/shavin-app/patterns.md +35 -0
- package/skills/shavin-studio/SKILL.md +97 -0
- package/skills/shavin-webpage/SKILL.md +210 -0
- package/skills/shavin-webpage/editorial-craft.md +117 -0
- package/skills/shavin-webpage/page-architecture.md +137 -0
- package/skills/shavin-webpage/style-recipes.md +107 -0
- package/skills/visual-compositor/SKILL.md +200 -0
- package/skills/visual-compositor/anti-patterns.md +109 -0
- package/skills/visual-compositor/audit-checklist.md +162 -0
- package/skills/visual-compositor/cognitive-layer.md +287 -0
- package/skills/visual-compositor/composition-motion-map.md +167 -0
- package/skills/visual-compositor/concentric-laws.md +147 -0
- package/skills/visual-compositor/docs-mode.md +32 -0
- package/skills/visual-compositor/editorial-mode.md +48 -0
- package/skills/visual-compositor/font-pairings.md +224 -0
- package/skills/visual-compositor/graphics-and-assets.md +128 -0
- package/skills/visual-compositor/interface-polish.md +125 -0
- package/skills/visual-compositor/layout-restraint.md +80 -0
- package/skills/visual-compositor/motion-and-physics.md +257 -0
- package/skills/visual-compositor/page-motion-presets.md +246 -0
- package/skills/visual-compositor/references/EDITORIAL_EXPRESSIVE.md +163 -0
- package/skills/visual-compositor/spacing-core.md +386 -0
- package/skills/visual-compositor/spacing-dense.md +63 -0
- package/skills/visual-compositor/spacing-marketing.md +192 -0
- package/skills/visual-compositor/typography-rules.md +114 -0
- package/token-budget.json +86 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
# Hero compositions (H1–H6)
|
|
2
|
+
|
|
3
|
+
The hero is the first thing anyone sees, so it should open with the most characteristic thing in the subject's world (a product, a piece of work, a voice), not a default. Choose by the assets you really have: product UI, photography, mesh, or video backdrop → H1/H2; strong photography or video → H3/H4; only words → H5. Photography (Lummi/Unsplash/user), mesh gradients, and video backdrops behind a scrim (`bgImage` / `bgVideo` + `bgPoster` / `bgOverlays`) are first-class hero media; 3D renders are decoration only.
|
|
4
|
+
|
|
5
|
+
The `overline` slot in these hero compositions is optional: leave it empty unless a label adds information.
|
|
6
|
+
|
|
7
|
+
Contents: H1 Centered Statement · H2 Split · H3 Asymmetric 7/5 · H4 Full-Bleed Media · H5 Type-Led Statement · H6 Floating Elements
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
### H1 · Centered Statement Hero
|
|
12
|
+
```yaml
|
|
13
|
+
id: H1
|
|
14
|
+
name: Centered Statement Hero
|
|
15
|
+
family: hero
|
|
16
|
+
job: attention
|
|
17
|
+
density: low
|
|
18
|
+
styles: [marketing, hybrid]
|
|
19
|
+
treatments: [carded, flat, open, full-bleed]
|
|
20
|
+
media: [photo, mesh, video, product-ui, illustration, none]
|
|
21
|
+
items: n/a
|
|
22
|
+
slots: [overline, headline, sub, cta-primary, cta-secondary, media]
|
|
23
|
+
motion: tier1
|
|
24
|
+
```
|
|
25
|
+
**Best for:** Launches and single-promise pages: one idea, one action, with an authentic artifact below or a photo/mesh/video backdrop behind.
|
|
26
|
+
**Avoid when:** The sub-headline runs past two lines (centred prose reads badly): use H2. You would fake a product visual: use a photo/mesh backdrop or H5.
|
|
27
|
+
**Grid:** `base` and `lg`: one centred stack. Text measure 45–58ch. Media sits below at container width (≤ ~1100px), fixed aspect ratio.
|
|
28
|
+
```
|
|
29
|
+
┌───────────────────────────────────────────────┐
|
|
30
|
+
│ [Overline] │
|
|
31
|
+
│ Big headline │
|
|
32
|
+
│ Sub-headline at reading measure │
|
|
33
|
+
│ [Primary CTA] [Ghost link] │
|
|
34
|
+
├───────────────────────────────────────────────┤
|
|
35
|
+
│ │
|
|
36
|
+
│ Preview artifact │
|
|
37
|
+
│ (product UI / screenshot / short loop) │
|
|
38
|
+
│ │
|
|
39
|
+
└───────────────────────────────────────────────┘
|
|
40
|
+
```
|
|
41
|
+
**Contract:** Headline ≤ 12 words. Sub ≤ 30 words. ≤ 2 CTAs (primary + secondary). Media is curated photography, a mesh gradient, a video backdrop (behind a scrim via `bgImage` / `bgVideo` + `bgPoster` / `bgOverlays`), or a real product artifact with explicit `width`/`height`. Overline only if it carries information (category, version). A product panel is built from real Shavin components (`Card`, `Table`, `StatCard`, `Badge`, `Tabs`) with believable content for this product. Never a hand-drawn mockup or an image of a UI. Let it run past the fold edge so the page invites a scroll. Headline in `Heading size="5xl"` on marketing pages.
|
|
42
|
+
**Watch:** The media is usually the LCP element: load it eagerly with high fetch priority. On phones the primary CTA must stay above the fold, so cap media height or push it below. No autoplay video with sound. Use `text-wrap: balance` on the headline so localized strings wrap evenly.
|
|
43
|
+
|
|
44
|
+
### H2 · Split Hero
|
|
45
|
+
```yaml
|
|
46
|
+
id: H2
|
|
47
|
+
name: Split Hero
|
|
48
|
+
family: hero
|
|
49
|
+
job: understanding
|
|
50
|
+
density: medium
|
|
51
|
+
styles: [marketing, hybrid, documentation]
|
|
52
|
+
treatments: [carded, flat, open]
|
|
53
|
+
media: [photo, mesh, product-ui, code]
|
|
54
|
+
items: n/a
|
|
55
|
+
slots: [overline, headline, sub, cta-primary, cta-secondary, media]
|
|
56
|
+
motion: tier1
|
|
57
|
+
```
|
|
58
|
+
**Best for:** SaaS and developer tools where copy needs room and the visual supports the claim (editorial photo, mesh panel, live snippet, or UI artifact).
|
|
59
|
+
**Avoid when:** Copy is under a sentence and there is no artifact: use H5. The media is decoration only.
|
|
60
|
+
**Grid:** `base`: 1 column, text then media. `lg`: 2 columns, 1:1 (use 5:7 when media is wide UI or code), `gap-12`, vertically centred.
|
|
61
|
+
```
|
|
62
|
+
┌───────────────────────┬───────────────────────┐
|
|
63
|
+
│ [Overline] │ │
|
|
64
|
+
│ Headline │ Visual mockup │
|
|
65
|
+
│ Description │ or code snippet │
|
|
66
|
+
│ [CTA] [CTA] │ │
|
|
67
|
+
└───────────────────────┴───────────────────────┘
|
|
68
|
+
```
|
|
69
|
+
**Contract:** Headline ≤ 10 words. Sub ≤ 35 words. Media (photo, mesh panel, product artifact, or code) has a fixed aspect ratio (4:3 or 16:10). Any live playground has a static screenshot fallback. A product panel is built from real Shavin components (`Card`, `Table`, `StatCard`, `Badge`, `Tabs`) with believable content for this product. Never a hand-drawn mockup or an image of a UI. Let it run past the fold edge so the page invites a scroll.
|
|
70
|
+
**Watch:** Test at 1366×768: media beyond the fold weakens the hero. Code samples ≤ 12 lines and must not force horizontal scroll on mobile. "Interactive" media must be keyboard operable. On mobile, media must not push the CTA off screen.
|
|
71
|
+
|
|
72
|
+
### H3 · Asymmetric Hero (7/5)
|
|
73
|
+
```yaml
|
|
74
|
+
id: H3
|
|
75
|
+
name: Asymmetric Hero
|
|
76
|
+
family: hero
|
|
77
|
+
job: desire
|
|
78
|
+
density: medium
|
|
79
|
+
styles: [editorial, expressive, marketing]
|
|
80
|
+
treatments: [flat, open, full-bleed]
|
|
81
|
+
media: [photo, illustration]
|
|
82
|
+
items: n/a
|
|
83
|
+
slots: [headline, sub, cta, visual]
|
|
84
|
+
motion: choreography-ok
|
|
85
|
+
```
|
|
86
|
+
**Best for:** Editorial brands, portfolios and premium showcases with one strong portrait or object image.
|
|
87
|
+
**Avoid when:** No strong visual asset exists (the 5-column side would be empty): use H5.
|
|
88
|
+
**Grid:** `base`: stack (heading first; visual first only if imagery-led). `lg`: 12-col, text `col-span-7`, visual `col-span-5`. Visual may overlap the next section with a negative bottom margin (−4rem to −6rem).
|
|
89
|
+
```
|
|
90
|
+
┌──────────────────────────┬────────────────────┐
|
|
91
|
+
│ Massive display heading │ Floating │
|
|
92
|
+
│ Description │ visual │
|
|
93
|
+
│ [CTA row] │ (bleeds down) │
|
|
94
|
+
└──────────────────────────┴────────────────────┘
|
|
95
|
+
```
|
|
96
|
+
**Contract:** Display heading ≤ 8 words. Visual is portrait (3:4 or 4:5) with meaningful `alt`. Heading size uses `clamp()` with a floor of ~2.5rem.
|
|
97
|
+
**Watch:** An overlap needs the next section to reserve matching top padding, and should be dropped on mobile. Keep the visual from covering the CTA. Check that display type doesn't overflow at 320px.
|
|
98
|
+
|
|
99
|
+
### H4 · Full-Bleed Media Hero
|
|
100
|
+
```yaml
|
|
101
|
+
id: H4
|
|
102
|
+
name: Full-Bleed Media Hero
|
|
103
|
+
family: hero
|
|
104
|
+
job: attention
|
|
105
|
+
density: low
|
|
106
|
+
styles: [marketing, expressive]
|
|
107
|
+
treatments: [full-bleed]
|
|
108
|
+
media: [video, photo, illustration]
|
|
109
|
+
items: n/a
|
|
110
|
+
slots: [background, scrim, overline, headline, sub, cta, scroll-cue]
|
|
111
|
+
motion: choreography-ok
|
|
112
|
+
```
|
|
113
|
+
**Best for:** Cinematic brand pages and immersive product reveals where mood carries the message.
|
|
114
|
+
**Avoid when:** The value proposition is text-heavy, audiences are on slow connections, or you have no scrim strategy for text legibility.
|
|
115
|
+
**Grid:** Section `min-height: 85svh`. Layers: media/gradient → scrim → content (centred or bottom-left) → scroll cue at bottom.
|
|
116
|
+
```
|
|
117
|
+
┌───────────────────────────────────────────────┐
|
|
118
|
+
│ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ │
|
|
119
|
+
│ ░░░░░░░░░░░░░ [Overline] ░░░░░░░░░░░░░░░░░░░ │
|
|
120
|
+
│ ░░░░░░░░░░░░░ Big headline ░░░░░░░░░░░░░░░░░ │
|
|
121
|
+
│ ░░░░░░░░░░░░░ Sub-headline ░░░░░░░░░░░░░░░░░ │
|
|
122
|
+
│ ░░░░░░░░░░░░░ [CTA] ░░░░░░░░░░░░░░░░░░░░░░░░ │
|
|
123
|
+
│ ░░░░░░░░░░░░░░░░░░░░░ ↓ ░░░░░░░░░░░░░░░░░░░░ │
|
|
124
|
+
└───────────────────────────────────────────────┘
|
|
125
|
+
```
|
|
126
|
+
**Contract:** Text over media passes 4.5:1 via scrim or gradient, tested at the brightest frame. Video has a poster image, is muted, looped, `playsinline`, and light (target ≲ 2–3 MB).
|
|
127
|
+
**Watch:** Heavy blur or mesh filters are expensive to paint on phones: pre-render to an image. Under `prefers-reduced-motion`, show the poster only. Video longer than 5 seconds needs a pause control (WCAG 2.2.2). The scroll cue is decorative (`aria-hidden`) and never the only way forward.
|
|
128
|
+
|
|
129
|
+
### H5 · Type-Led Statement Hero
|
|
130
|
+
```yaml
|
|
131
|
+
id: H5
|
|
132
|
+
name: Type-Led Statement Hero
|
|
133
|
+
family: hero
|
|
134
|
+
job: attention
|
|
135
|
+
density: low
|
|
136
|
+
styles: [editorial, expressive, marketing]
|
|
137
|
+
treatments: [flat, open, full-bleed]
|
|
138
|
+
media: [none]
|
|
139
|
+
items: n/a
|
|
140
|
+
slots: [headline, sub, cta]
|
|
141
|
+
motion: choreography-ok
|
|
142
|
+
```
|
|
143
|
+
**Best for:** Brands whose voice is the asset: manifestos, campaigns, studios, publications with no product visual.
|
|
144
|
+
**Avoid when:** The product must be seen to be understood.
|
|
145
|
+
**Grid:** Single left-aligned column (or a deliberate offset). Headline uses fluid type, e.g. `clamp(3rem, 9vw, 9rem)`. Sub-headline sits in a narrow column (45–58ch), often offset right or below.
|
|
146
|
+
```
|
|
147
|
+
┌───────────────────────────────────────────────┐
|
|
148
|
+
│ BIG STATEMENT SET │
|
|
149
|
+
│ IN FLUID TYPE ACROSS │
|
|
150
|
+
│ THREE OR FOUR LINES │
|
|
151
|
+
│ │
|
|
152
|
+
│ │ Sub-headline, narrow column │
|
|
153
|
+
│ │ [Single CTA] │
|
|
154
|
+
└───────────────┴───────────────────────────────┘
|
|
155
|
+
```
|
|
156
|
+
**Contract:** Real text (an `<h1>`), 3–12 words, with deliberate line breaks. One CTA. Set it in `Heading size="5xl"` (fluid, up to 72px) when the headline is four words or fewer, otherwise `size="4xl"` (up to 60px): a type-only hero needs scale to carry the page, but never more than twice the size of a section title. For larger display type use X2.
|
|
157
|
+
**Watch:** Never render the headline as an image. Handle long words with `overflow-wrap`/`hyphens`. Cap height at 100svh so type doesn't push the CTA away. Check contrast on coloured grounds.
|
|
158
|
+
|
|
159
|
+
### H6 · Floating Elements Hero
|
|
160
|
+
```yaml
|
|
161
|
+
id: H6
|
|
162
|
+
name: Floating Elements Hero
|
|
163
|
+
family: hero
|
|
164
|
+
job: attention
|
|
165
|
+
density: low
|
|
166
|
+
styles: [marketing, expressive]
|
|
167
|
+
treatments: [open, full-bleed]
|
|
168
|
+
media: [product-ui, photo]
|
|
169
|
+
items: 3-5
|
|
170
|
+
slots: [overline, headline, sub, cta-primary, floating-elements]
|
|
171
|
+
motion: tier1
|
|
172
|
+
```
|
|
173
|
+
**Best for:** Consumer and prosumer products with a few small recognisable moments (a note card, a status chip, a person) that can sit around a short centred statement.
|
|
174
|
+
**Avoid when:** The product is dense UI (use H2). You would invent content to fill the elements (use H1 or H5). Most visitors are on phones: the elements are hidden there, so little is left.
|
|
175
|
+
**Grid:** `base`: one centred stack, elements hidden. `lg`: centred text block, 3 to 5 elements positioned in the outer thirds, none behind the text, rotated 3° at most.
|
|
176
|
+
```
|
|
177
|
+
┌───────────────────────────────────────────────┐
|
|
178
|
+
│ Row of text │
|
|
179
|
+
│ [Card] │Overline + Headline + Sub …│ [Badge] │
|
|
180
|
+
│ [Avatar]│ │ [Card] │
|
|
181
|
+
└─────────┴───────────────────────────┴─────────┘
|
|
182
|
+
```
|
|
183
|
+
**Contract:** Headline ≤ 8 words. Each element is a real Shavin component (`Card`, `Badge`, `Avatar`, `StatCard`) with real content from the product, not a drawing of a screen. No element overlaps the headline, sub or CTAs. The elements are decorative: `aria-hidden`, no focus stops, no text the page needs.
|
|
184
|
+
**Watch:** Float motion ≤ 6px on a loop of 6s or more, off under `prefers-reduced-motion`. No glow balls or blurred halos. Check 1366×768 and run `render_check` for overlap.
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
# Proof compositions: stats and social proof (S1–S3, T1–T4)
|
|
2
|
+
|
|
3
|
+
Proof exists to make a claim believable. It only works when the evidence is specific and attributable. Use the user's real numbers, quotes and logos as given. Where none are supplied, write believable fictional ones of your own (invented people, companies, publications and institutions, round figures), never copied from a real site or brand. Do not label them on the page.
|
|
4
|
+
|
|
5
|
+
Contents: S1 Stat Bar · S2 Large Number Grid · S3 Count-Up Row · T1 Single Large Quote · T2 Testimonial Cards · T3 Logo Grid · T4 Marquee Logo Strip
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
### S1 · Horizontal Stat Bar
|
|
10
|
+
```yaml
|
|
11
|
+
id: S1
|
|
12
|
+
name: Horizontal Stat Bar
|
|
13
|
+
family: proof
|
|
14
|
+
job: credibility
|
|
15
|
+
density: low
|
|
16
|
+
styles: [marketing, hybrid]
|
|
17
|
+
treatments: [carded, ruled, flat, open]
|
|
18
|
+
media: [data]
|
|
19
|
+
items: 3-4
|
|
20
|
+
slots: [value, label]
|
|
21
|
+
motion: tier1
|
|
22
|
+
```
|
|
23
|
+
**Best for:** Trust signals and KPI proof points directly under a hero.
|
|
24
|
+
**Avoid when:** The numbers are vanity or unsourced. Fewer than 3 figures. A figure needs explaining (use S2).
|
|
25
|
+
**Grid:** `base`: 2×2. `md`: one row, 3 or 4 columns, separated by vertical hairlines. For 3 items use 3 columns.
|
|
26
|
+
```
|
|
27
|
+
┌───────────┬───────────┬───────────┬───────────┐
|
|
28
|
+
│ 71 │ 54 │ 20 │ 6 │
|
|
29
|
+
│ Primitives│ Blocks │ Tools │ Skills │
|
|
30
|
+
└───────────┴───────────┴───────────┴───────────┘
|
|
31
|
+
```
|
|
32
|
+
**Contract:** Value ≤ 6 characters including unit or suffix; label ≤ 3 words. Figures the user supplied are used as given; otherwise use plausible round placeholder figures. Use `tabular-nums`.
|
|
33
|
+
**Watch:** The v1 pattern `divide-y md:divide-y-0 md:divide-x` gives the wrong dividers in a 2×2 (rows split, columns don't). In 2×2, set borders per cell. Count-up must not change cell width. Check hairline contrast in dark mode.
|
|
34
|
+
|
|
35
|
+
### S2 · Large Number + Description Grid
|
|
36
|
+
```yaml
|
|
37
|
+
id: S2
|
|
38
|
+
name: Large Number + Description Grid
|
|
39
|
+
family: proof
|
|
40
|
+
job: credibility
|
|
41
|
+
density: medium
|
|
42
|
+
styles: [marketing, hybrid, editorial]
|
|
43
|
+
treatments: [carded, ruled, flat, open]
|
|
44
|
+
media: [data]
|
|
45
|
+
items: 2 or 4
|
|
46
|
+
slots: [value, label, description, source]
|
|
47
|
+
motion: tier1
|
|
48
|
+
```
|
|
49
|
+
**Best for:** Impact metrics that need a sentence of context: benchmarks, case-study highlights.
|
|
50
|
+
**Avoid when:** There's no baseline (a bare "10x faster" is a claim, not proof). Three items (orphan in a 2-col grid).
|
|
51
|
+
**Grid:** `base` 1 col · `md` 2 cols (2×2) · `lg` 4 cols only if the text is short.
|
|
52
|
+
```
|
|
53
|
+
┌───────────────────────┬───────────────────────┐
|
|
54
|
+
│ 10x │ 300ms │
|
|
55
|
+
│ faster builds │ edge latency │
|
|
56
|
+
│ vs last release │ p95, 12 regions │
|
|
57
|
+
└───────────────────────┴───────────────────────┘
|
|
58
|
+
```
|
|
59
|
+
**Contract:** Metric + label + ≤ 30-word explanation + baseline or source.
|
|
60
|
+
**Watch:** Emphasis by size, not by colour alone. Keep units next to the number. Don't stack more than one S2 on a page.
|
|
61
|
+
|
|
62
|
+
### S3 · Count-Up Row
|
|
63
|
+
```yaml
|
|
64
|
+
id: S3
|
|
65
|
+
name: Count-Up Row
|
|
66
|
+
family: proof
|
|
67
|
+
job: attention
|
|
68
|
+
density: low
|
|
69
|
+
styles: [marketing, expressive]
|
|
70
|
+
treatments: [flat, open, carded]
|
|
71
|
+
media: [data]
|
|
72
|
+
items: 3-4
|
|
73
|
+
slots: [value, label]
|
|
74
|
+
motion: tier1
|
|
75
|
+
```
|
|
76
|
+
**Best for:** Hero-adjacent stats where a single moment of motion adds emphasis.
|
|
77
|
+
**Avoid when:** The figure is a year, version or rating: counting up to "2019" is silly. The row sits above the fold (no scroll trigger will ever fire).
|
|
78
|
+
**Grid:** As S1: `base` 2×2, `md` a single row (flex, space-between).
|
|
79
|
+
```
|
|
80
|
+
┌───────────┬───────────┬───────────┬───────────┐
|
|
81
|
+
│ 0 → 1.2M │ 0 → 98% │ 0 → 40 │ 0 → 6ms │
|
|
82
|
+
│ Users │ Uptime │ Countries │ Latency │
|
|
83
|
+
└───────────┴───────────┴───────────┴───────────┘
|
|
84
|
+
```
|
|
85
|
+
**Contract:** The final value exists as text in the DOM at first paint. Animate once, on first view, ≤ 1.2s.
|
|
86
|
+
**Watch:** `prefers-reduced-motion` shows the final value immediately. Screen readers read only the final value (`aria-hidden` on the ticking element, real text alongside). Use `tabular-nums` and a min-width so digits don't jiggle the layout.
|
|
87
|
+
|
|
88
|
+
### T1 · Single Large Quote
|
|
89
|
+
```yaml
|
|
90
|
+
id: T1
|
|
91
|
+
name: Single Large Quote
|
|
92
|
+
family: proof
|
|
93
|
+
job: credibility
|
|
94
|
+
density: low
|
|
95
|
+
styles: [marketing, editorial, hybrid, expressive]
|
|
96
|
+
treatments: [open, flat, carded]
|
|
97
|
+
media: [photo, none]
|
|
98
|
+
items: 1
|
|
99
|
+
slots: [quote, avatar, name, role, company]
|
|
100
|
+
motion: tier1
|
|
101
|
+
```
|
|
102
|
+
**Best for:** One high-value endorsement or a case-study pull quote.
|
|
103
|
+
**Avoid when:** The praise is generic or the person can't be named (use T2 for several voices).
|
|
104
|
+
**Grid:** Centred or left-aligned single column. At large sizes measure the quote in `ch` (≈ 28–45ch at 2xl–4xl), not in fixed pixels.
|
|
105
|
+
```
|
|
106
|
+
┌───────────────────────────────────────────────┐
|
|
107
|
+
│ " │
|
|
108
|
+
│ This is the best design system │
|
|
109
|
+
│ I've ever used, and it shipped a week early. │
|
|
110
|
+
├───────────────────────────────────────────────┤
|
|
111
|
+
│ [Avatar] Name · Role, Company │
|
|
112
|
+
└───────────────────────────────────────────────┘
|
|
113
|
+
```
|
|
114
|
+
**Contract:** Quote ≤ 35 words, and a specific outcome beats praise. Name, role and company always shown. Avatar or logo has alt text.
|
|
115
|
+
**Watch:** Mark up as `<figure><blockquote>` with `<figcaption>`. Decorative quote glyphs are `aria-hidden`. Long italic at large sizes hurts legibility. Only use quotes you have permission to publish.
|
|
116
|
+
|
|
117
|
+
### T2 · Testimonial Card Grid
|
|
118
|
+
```yaml
|
|
119
|
+
id: T2
|
|
120
|
+
name: Testimonial Card Grid
|
|
121
|
+
family: proof
|
|
122
|
+
job: credibility
|
|
123
|
+
density: medium
|
|
124
|
+
styles: [marketing, hybrid]
|
|
125
|
+
treatments: [carded, ruled, flat, open]
|
|
126
|
+
media: [photo, none]
|
|
127
|
+
items: 3 or 6
|
|
128
|
+
slots: [quote, avatar, name, role]
|
|
129
|
+
motion: tier1
|
|
130
|
+
```
|
|
131
|
+
**Best for:** Multi-perspective proof (engineers, designers, founders).
|
|
132
|
+
**Avoid when:** Quotes vary wildly in length (ragged cards; use G1-style masonry or trim). Fewer than 3 quotes (use T1).
|
|
133
|
+
**Grid:** `base` 1 col · `md` 2 cols · `lg` 3 cols. (The v1 `md:3` made three cramped columns at 768px.)
|
|
134
|
+
```
|
|
135
|
+
┌───────────────┬───────────────┬───────────────┐
|
|
136
|
+
│ Quote │ Quote │ Quote │
|
|
137
|
+
│ Quote │ Quote │ Quote │
|
|
138
|
+
├───────────────┼───────────────┼───────────────┤
|
|
139
|
+
│ [Av] Name │ [Av] Name │ [Av] Name │
|
|
140
|
+
└───────────────┴───────────────┴───────────────┘
|
|
141
|
+
```
|
|
142
|
+
**Contract:** Quote ≤ 40 words, lengths within roughly ±30%. Author row pinned to the card bottom (`flex flex-col justify-between`). Role and company included.
|
|
143
|
+
**Watch:** Star ratings on every card mean nothing. Vary the perspective, not just the names. Keep sources verifiable.
|
|
144
|
+
|
|
145
|
+
### T3 · Logo Grid
|
|
146
|
+
```yaml
|
|
147
|
+
id: T3
|
|
148
|
+
name: Logo Grid
|
|
149
|
+
family: proof
|
|
150
|
+
job: credibility
|
|
151
|
+
density: low
|
|
152
|
+
styles: [marketing, hybrid]
|
|
153
|
+
treatments: [carded, ruled, flat, open]
|
|
154
|
+
media: [logos]
|
|
155
|
+
items: 6-12
|
|
156
|
+
slots: [logo]
|
|
157
|
+
motion: tier0
|
|
158
|
+
```
|
|
159
|
+
**Best for:** Quiet trust: "used by" with recognisable names.
|
|
160
|
+
**Avoid when:** Fewer than 6 recognisable logos, or the logos are unlicensed or unknown to the audience.
|
|
161
|
+
**Grid:** `base` 2 cols · `sm` 3 · `md` 6 (or 4 for 8 logos), `gap-8`, logos centred at a fixed height (24–32px).
|
|
162
|
+
```
|
|
163
|
+
┌───────┬───────┬───────┬───────┬───────┬───────┐
|
|
164
|
+
│ Logo │ Logo │ Logo │ Logo │ Logo │ Logo │
|
|
165
|
+
│ Logo │ Logo │ Logo │ Logo │ Logo │ Logo │
|
|
166
|
+
└───────┴───────┴───────┴───────┴───────┴───────┘
|
|
167
|
+
```
|
|
168
|
+
**Contract:** Monochrome marks normalised to equal optical size (fixed height plus padding rules). `alt` = company name. Only show logos you have permission to use.
|
|
169
|
+
**Watch:** Low-opacity logos must stay recognisable: don't go below ~60%. Hover-only colour is invisible to touch users, so never rely on it. A "Trusted by" heading is optional.
|
|
170
|
+
|
|
171
|
+
### T4 · Marquee Logo Strip
|
|
172
|
+
```yaml
|
|
173
|
+
id: T4
|
|
174
|
+
name: Marquee Logo Strip
|
|
175
|
+
family: proof
|
|
176
|
+
job: credibility
|
|
177
|
+
density: low
|
|
178
|
+
styles: [marketing, expressive]
|
|
179
|
+
treatments: [flat, open, ruled]
|
|
180
|
+
media: [logos]
|
|
181
|
+
items: 8+
|
|
182
|
+
slots: [logo-track, pause-control]
|
|
183
|
+
motion: tier1
|
|
184
|
+
```
|
|
185
|
+
**Best for:** A compact trust signal between narrative sections.
|
|
186
|
+
**Avoid when:** Fewer than ~8 logos (the loop repeats visibly), or people need to actually read the names (use T3).
|
|
187
|
+
**Grid:** One row, `overflow: hidden`, edge fade via `mask-image`. Content duplicated once for a seamless loop. Loop time ≈ 30–60s.
|
|
188
|
+
```
|
|
189
|
+
┌────────┬────────┬────────┬────────┬───────────┐
|
|
190
|
+
│ ░ Logo │ Logo │ Logo │ Logo │ Logo ░ │
|
|
191
|
+
└────────┴────────┴────────┴────────┴───────────┘
|
|
192
|
+
```
|
|
193
|
+
**Contract:** Same logo rules as T3. Duplicated content is `aria-hidden`. Provide a visible pause control.
|
|
194
|
+
**Watch:** WCAG 2.2.2: auto-moving content over 5 seconds needs a pause/stop/hide mechanism. Hover-pause alone excludes keyboard and touch users, so add pause on `:focus-within` and a button. `prefers-reduced-motion` falls back to a static wrapped grid (T3). Animate `transform`, not `left` or `margin`.
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
# Structural compositions (ST1–ST6)
|
|
2
|
+
|
|
3
|
+
These frame the page rather than carry a message: navigation, footers, and the shells that hold everything else. Every page needs ST5; most need ST1 and ST3 or ST4.
|
|
4
|
+
|
|
5
|
+
Contents: ST1 Navigation Bar · ST2 Announcement Bar · ST3 Sitemap Footer · ST4 Statement Footer · ST5 Page Shell · ST6 App Shell
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
### ST1 · Navigation Bar
|
|
10
|
+
```yaml
|
|
11
|
+
id: ST1
|
|
12
|
+
name: Navigation Bar
|
|
13
|
+
family: structural
|
|
14
|
+
job: orientation
|
|
15
|
+
density: low
|
|
16
|
+
styles: [structural, marketing, editorial, documentation, expressive]
|
|
17
|
+
treatments: [carded, ruled, flat, open]
|
|
18
|
+
media: [none, logos]
|
|
19
|
+
items: 4-7 links
|
|
20
|
+
slots: [brand, links, actions, menu-toggle]
|
|
21
|
+
motion: tier1
|
|
22
|
+
```
|
|
23
|
+
**Best for:** Any multi-page site. It is the persistent way to orient and to convert.
|
|
24
|
+
**Avoid when:** A single-screen campaign page where nav competes with the one CTA. Use brand + one action instead.
|
|
25
|
+
**Grid:** `base`: brand left, menu toggle right (opens a dialog/sheet). `lg`: brand · links · actions in one row, height 56–64px. Links sit centre or left-aligned next to the brand; actions always right.
|
|
26
|
+
```
|
|
27
|
+
┌─────────┬──────────────────────┬──────────────┐
|
|
28
|
+
│ Brand │ Product Pricing Docs │[Get started] │
|
|
29
|
+
└─────────┴──────────────────────┴──────────────┘
|
|
30
|
+
```
|
|
31
|
+
**Contract:** ≤ 7 top-level links. One primary action (a button) and at most one secondary (a text link). Brand links home. Current page carries `aria-current="page"`. A top-level item that opens a panel is a `Button` inside a `Popover` (click or Enter opens it; `Popover` sets `aria-expanded` itself and Esc closes it and returns focus), never a link to `#` and never a `Menu`, whose menu role is for actions, not navigation. The panel holds plain `Link`s: ≤ 3 groups of ≤ 6 links and at most one featured card. Hover may also open it after about 120 ms, but click must always work.
|
|
32
|
+
**Watch:** A sticky bar needs `scroll-margin-top`/`scroll-padding-top` equal to its height or anchor targets hide under it. Put a skip link ("Skip to content") before the header as the first focusable element. The mobile menu is a `Drawer` (below `lg` the mega panel does not exist): trap focus, close on Esc, restore focus to the toggle, the same links as a list with group names as headings. Never put the only primary CTA inside the drawer. Backdrop blur needs an opaque fallback for contrast. A transparent-over-hero bar needs a scrim so links pass 4.5:1 on the media.
|
|
33
|
+
|
|
34
|
+
### ST2 · Announcement Bar
|
|
35
|
+
```yaml
|
|
36
|
+
id: ST2
|
|
37
|
+
name: Announcement Bar
|
|
38
|
+
family: structural
|
|
39
|
+
job: attention
|
|
40
|
+
density: low
|
|
41
|
+
styles: [structural, marketing]
|
|
42
|
+
treatments: [flat, ruled]
|
|
43
|
+
media: [none]
|
|
44
|
+
items: 1 message
|
|
45
|
+
slots: [message, link, dismiss]
|
|
46
|
+
motion: tier0
|
|
47
|
+
```
|
|
48
|
+
**Best for:** Time-bound news: a launch, an event, an incident, a policy change.
|
|
49
|
+
**Avoid when:** The message is permanent marketing copy. Permanent strips become invisible and eat vertical space; put it in a hero or CTA instead.
|
|
50
|
+
**Grid:** Full-width strip above ST1, 36–44px tall. Message centred with an inline link; dismiss button pinned right. On mobile the message may wrap to two lines, never more.
|
|
51
|
+
```
|
|
52
|
+
┌────┬────────────────────────────────────┬─────┐
|
|
53
|
+
│ │ Message with inline link → │ ✕ │
|
|
54
|
+
└────┴────────────────────────────────────┴─────┘
|
|
55
|
+
```
|
|
56
|
+
**Contract:** One sentence ≤ 90 characters and one link. Dismissible, with the dismissed state remembered per viewer (reserve its space on the server render so dismissal on load doesn't shift the page).
|
|
57
|
+
**Watch:** Use `role="region"` with a label, not `role="alert"`, unless it is genuinely urgent. Dismissing must not lose keyboard focus. Check contrast on tinted backgrounds.
|
|
58
|
+
|
|
59
|
+
### ST3 · Sitemap Footer
|
|
60
|
+
```yaml
|
|
61
|
+
id: ST3
|
|
62
|
+
name: Sitemap Footer
|
|
63
|
+
family: structural
|
|
64
|
+
job: orientation
|
|
65
|
+
density: high
|
|
66
|
+
styles: [structural, marketing, documentation, hybrid]
|
|
67
|
+
treatments: [carded, ruled, flat]
|
|
68
|
+
media: [none]
|
|
69
|
+
items: 3-5 link groups
|
|
70
|
+
slots: [brand, link-groups, legal, controls]
|
|
71
|
+
motion: tier0
|
|
72
|
+
```
|
|
73
|
+
**Best for:** Products and content sites where the footer is a second navigation (find-it-anywhere).
|
|
74
|
+
**Avoid when:** Brand-led or portfolio sites with few links. Use ST4.
|
|
75
|
+
**Grid:** `base`: brand block, then groups in 2 columns. `md`: 3–4 columns. `lg`: 12-col grid, brand `col-span-4`, groups share the other 8. A bottom bar carries legal links, social links and any locale/theme controls.
|
|
76
|
+
```
|
|
77
|
+
┌──────────────┬─────────┬─────────┬────────────┐
|
|
78
|
+
│ Brand + blurb│ Product │ Company │ Resources │
|
|
79
|
+
├──────────────┴────────┬┴─────────┴────────────┤
|
|
80
|
+
│ © 2026 Company │Social · Locale · Theme│
|
|
81
|
+
└───────────────────────┴───────────────────────┘
|
|
82
|
+
```
|
|
83
|
+
**Contract:** Each group has a real heading (or the whole footer nav is labelled). ≤ 6 links per group. Legal row: copyright, privacy, terms.
|
|
84
|
+
**Watch:** Label footer `<nav>` differently from the primary nav (`aria-label`). Give link rows ≥ 44px tap height on touch. Don't duplicate the whole top nav. Include a locale or theme control only if it works.
|
|
85
|
+
|
|
86
|
+
### ST4 · Statement Footer
|
|
87
|
+
```yaml
|
|
88
|
+
id: ST4
|
|
89
|
+
name: Statement Footer
|
|
90
|
+
family: structural
|
|
91
|
+
job: desire
|
|
92
|
+
density: low
|
|
93
|
+
styles: [structural, editorial, expressive, marketing]
|
|
94
|
+
treatments: [flat, open, full-bleed]
|
|
95
|
+
media: [none]
|
|
96
|
+
items: ≤ 8 links
|
|
97
|
+
slots: [links, wordmark, legal]
|
|
98
|
+
motion: tier1
|
|
99
|
+
```
|
|
100
|
+
**Best for:** Brand-led, editorial and portfolio sites where the close should feel like a signature.
|
|
101
|
+
**Avoid when:** Link-heavy products; this buries the links. Use ST3.
|
|
102
|
+
**Grid:** `base`: link list, then wordmark scaled to the container width. `lg`: a single link row above a full-width oversized wordmark, legal beneath.
|
|
103
|
+
```
|
|
104
|
+
┌───────────┬───────────┬───────────┬───────────┐
|
|
105
|
+
│ Work │ About │ Journal │ Contact │
|
|
106
|
+
├───────────┴───────────┴───────────┴───────────┤
|
|
107
|
+
│ BRAND WORDMARK (fluid, full width) │
|
|
108
|
+
│ │
|
|
109
|
+
│ © 2026 │ Back to top ↑ │
|
|
110
|
+
└───────────────────────┴───────────────────────┘
|
|
111
|
+
```
|
|
112
|
+
**Contract:** Wordmark ≤ 12 characters (else scale it down). ≤ 8 links. Legal text stays legible: don't shrink it with the wordmark.
|
|
113
|
+
**Watch:** Fit the wordmark with CSS (`clamp()` or container-query units), not JS resize handlers. Test 320px for overflow. If the wordmark duplicates the brand name, mark it `aria-hidden` or make it the single real instance.
|
|
114
|
+
|
|
115
|
+
### ST5 · Page Shell
|
|
116
|
+
```yaml
|
|
117
|
+
id: ST5
|
|
118
|
+
name: Page Shell
|
|
119
|
+
family: structural
|
|
120
|
+
job: orientation
|
|
121
|
+
density: low
|
|
122
|
+
styles: [structural, marketing, editorial, documentation, hybrid, expressive]
|
|
123
|
+
treatments: [carded, ruled, flat, full-bleed, open]
|
|
124
|
+
media: [none]
|
|
125
|
+
items: n/a
|
|
126
|
+
slots: [skip-link, header, main, footer]
|
|
127
|
+
motion: tier0
|
|
128
|
+
```
|
|
129
|
+
**Best for:** The base of every page. Sets landmarks, container widths and the section rhythm all other compositions sit in.
|
|
130
|
+
**Avoid when:** Never skip it. If an app framework supplies one, still verify each item in the Contract.
|
|
131
|
+
**Grid:** Single column. Container tokens: content ≈ 1120–1280px, reading ≈ 68ch, wide breakout ≈ content + 10%. Vertical rhythm comes from the section spacing scale in `foundations.md`.
|
|
132
|
+
```
|
|
133
|
+
┌───────────────────────────────────────────────┐
|
|
134
|
+
│ [Skip to content] (first focusable) │
|
|
135
|
+
├───────────────────────────────────────────────┤
|
|
136
|
+
│ Header / Navigation (ST1) │
|
|
137
|
+
├───────────────────────────────────────────────┤
|
|
138
|
+
│ main> section section section ... │
|
|
139
|
+
├───────────────────────────────────────────────┤
|
|
140
|
+
│ Footer (ST3 / ST4) │
|
|
141
|
+
└───────────────────────────────────────────────┘
|
|
142
|
+
```
|
|
143
|
+
**Contract:** Exactly one `<main>` and one `<h1>`. Each section is labelled by its heading (`aria-labelledby`). Skip link is the first focusable element. `scroll-padding-top` equals header height.
|
|
144
|
+
**Watch:** `overflow-x: hidden` on `body` hides bugs and breaks `position: sticky`; prefer `overflow-x: clip` on the specific wrapper. Use `100svh`, not `100vh`, for full-screen sections. Don't nest containers (double padding, double max-width).
|
|
145
|
+
|
|
146
|
+
### ST6 · App Shell
|
|
147
|
+
```yaml
|
|
148
|
+
id: ST6
|
|
149
|
+
name: App Shell
|
|
150
|
+
family: structural
|
|
151
|
+
job: orientation
|
|
152
|
+
density: high
|
|
153
|
+
styles: [structural, hybrid, documentation]
|
|
154
|
+
treatments: [carded, ruled, flat]
|
|
155
|
+
media: [none]
|
|
156
|
+
items: ≤ 7 nav groups
|
|
157
|
+
slots: [sidebar, topbar, content, panel]
|
|
158
|
+
motion: tier1
|
|
159
|
+
```
|
|
160
|
+
**Best for:** Dashboards, admin tools, and settings areas: anything with persistent navigation and a working area.
|
|
161
|
+
**Avoid when:** Content-first pages that should read like a document. Use E1 or D1.
|
|
162
|
+
**Grid:** `base`: topbar with a drawer sidebar. `lg`: fixed sidebar 240–280px + fluid content. `xl` (optional): right detail panel 320px.
|
|
163
|
+
```
|
|
164
|
+
┌───────────┬───────────────────────────────────┐
|
|
165
|
+
│ Logo │ Topbar: search, account │
|
|
166
|
+
│ │ │
|
|
167
|
+
│ Nav group │ Page title + actions │
|
|
168
|
+
│ │ │
|
|
169
|
+
│ Nav group │ Working area │
|
|
170
|
+
└───────────┴───────────────────────────────────┘
|
|
171
|
+
```
|
|
172
|
+
**Contract:** Sidebar groups ≤ 7. Current item has `aria-current`. Choose one scroll model (page scroll or content-pane scroll) and keep it. Sidebar collapse state persists.
|
|
173
|
+
**Watch:** Two nested scroll containers break anchor links, scroll restoration and find-in-page. Move focus to the page `<h1>` on route change. Provide a keyboard shortcut for search. Tables inside content scroll in their own wrapper.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Distinctiveness: keeping a library from producing identical pages
|
|
2
|
+
|
|
3
|
+
A catalogue of proven layouts has a built-in risk: if every page is assembled from the same blueprints in the same way, every page looks alike. The compositions are skeletons; distinctiveness comes from the decisions made around them. Apply this file after choosing compositions and before writing code.
|
|
4
|
+
|
|
5
|
+
Contents: 1 The sameness test · 2 Variation knobs · 3 Spend boldness once · 4 Common tells · 5 Process
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 1. The sameness test
|
|
10
|
+
|
|
11
|
+
Swap the brand name and imagery for another company's. If the page still fits, it isn't specific enough. Look for something drawn from the subject's own world (materials, vocabulary, tools, cadence) and let it shape at least one of the knobs below.
|
|
12
|
+
|
|
13
|
+
## 2. Variation knobs
|
|
14
|
+
|
|
15
|
+
Change at least two of these from the recipe's default. Record the choice in the plan. Four of
|
|
16
|
+
these (overline, controls, type voice, colour application) are component-level — see
|
|
17
|
+
`component-language.md` for the full menu of options and worked rules for each.
|
|
18
|
+
|
|
19
|
+
| Knob | Range | Effect |
|
|
20
|
+
|---|---|---|
|
|
21
|
+
| Alignment | centred ↔ left ↔ deliberately offset | Centred feels announcement-like; left feels editorial |
|
|
22
|
+
| Scale contrast | 1.25 ratio ↔ 2+ ratio between body and display | Higher contrast = louder, more editorial |
|
|
23
|
+
| Grid strictness | strict modular ↔ modular with breaks ↔ broken (X1) | Where the personality lives |
|
|
24
|
+
| Container language | the five treatments (`treatments.md`) | Cards, rules, flat blocks, edge-to-edge, or open space |
|
|
25
|
+
| Density | airy ↔ dense | Dense reads as tool or publication; airy as brand |
|
|
26
|
+
| Media mode | product UI · photo · illustration · data · type only | Determines the hero and F-section choices |
|
|
27
|
+
| Rhythm | repeat one pattern ↔ alternate strongly | Repetition suits docs; alternation suits stories |
|
|
28
|
+
| Sequence | recipe order ↔ reordered (e.g. proof after features) | Changes the narrative |
|
|
29
|
+
| Voice of type | one family ↔ two contrasting families ↔ mono brand | Type carries personality — see `component-language.md` §3 |
|
|
30
|
+
| Overline form | chip/badge ↔ plain label ↔ rule+label ↔ numeral ↔ icon+label ↔ none | See `component-language.md` §1 — don't default to a pill badge; none is a first-class choice, and the usual one |
|
|
31
|
+
| Interactive control | button ↔ tabs ↔ segmented control ↔ plain link | Match to content shape, not habit — see `component-language.md` §2 |
|
|
32
|
+
| Colour application | single brand ↔ duotone ↔ per-section rotation ↔ monochrome+break ↔ gradient ground | See `component-language.md` §4 |
|
|
33
|
+
|
|
34
|
+
## 3. Spend boldness once
|
|
35
|
+
|
|
36
|
+
Pick one moment to be memorable: the hero, one oversized statement, one broken grid, one orchestrated reveal. Keep everything around it quiet and disciplined. A page where every section shouts has no emphasis left. Before finishing, remove one decoration.
|
|
37
|
+
|
|
38
|
+
## 4. Common tells of a templated page
|
|
39
|
+
|
|
40
|
+
Avoid these unless the brief asks for them or the content truly needs them:
|
|
41
|
+
|
|
42
|
+
- The same card kit (same radius, same shadow, same padding) around every piece of content.
|
|
43
|
+
- A pill/chip badge (or a small all-caps label) above every single heading, whether or not it's carrying real information.
|
|
44
|
+
- Numbered markers (01 / 02 / 03) on content that isn't a sequence.
|
|
45
|
+
- One word in each headline coloured, italicised or bolded for emphasis.
|
|
46
|
+
- Fade-and-slide-up on every section and hover lifts on every card.
|
|
47
|
+
- Gradient blobs or glows as generic decoration.
|
|
48
|
+
- A logo strip as the only proof on every page.
|
|
49
|
+
- A 3-column icon grid as the answer to every "features" section.
|
|
50
|
+
- Middle-dot meta strings and arrow suffixes on every link.
|
|
51
|
+
- The identical palette-and-typeface pairing you'd reach for on any project.
|
|
52
|
+
- Buttons used for a set of parallel, exclusive options that should be tabs or a segmented control (and vice versa) — see `component-language.md` §2.
|
|
53
|
+
- The same brand colour at the same weight in every section, regardless of what it's marking — see `component-language.md` §4.
|
|
54
|
+
|
|
55
|
+
If the brief pins down a look, follow the brief exactly, including when it asks for one of the above.
|
|
56
|
+
|
|
57
|
+
## 5. Process
|
|
58
|
+
|
|
59
|
+
1. Choose compositions from the recipe and selection guide.
|
|
60
|
+
2. Write the plan as a table (section → composition → treatment → motion tier).
|
|
61
|
+
3. Pick two or more knobs and state what you changed and why.
|
|
62
|
+
4. Name the overline form, interactive-control choice, typographic voice and colour application pattern (`component-language.md` §5) — these are separate decisions from the layout knobs above and get skipped by default if not named explicitly.
|
|
63
|
+
5. Name the single bold moment.
|
|
64
|
+
6. Run the sameness test on the plan. If it fails, revise the plan, not the code.
|
|
65
|
+
7. Build. Then remove one decoration.
|