prism-design 2.13.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/CHANGELOG.md +292 -0
- package/LICENSE +21 -0
- package/README.md +203 -0
- package/bin/clone-architect.mjs +476 -0
- package/bin/prism.mjs +467 -0
- package/catalog/index.json +1155 -0
- package/extractions/airbnb.com/DESIGN.md +1068 -0
- package/extractions/airbnb.com/tokens.json +507 -0
- package/extractions/attio.com/DESIGN.md +1295 -0
- package/extractions/attio.com/tokens.json +438 -0
- package/extractions/auroxdashboard.com/DESIGN.md +724 -0
- package/extractions/auroxdashboard.com/tokens.json +195 -0
- package/extractions/careerexplorer.com/DESIGN.md +1178 -0
- package/extractions/careerexplorer.com/tokens.json +141 -0
- package/extractions/chance.co/DESIGN.md +1209 -0
- package/extractions/chance.co/tokens.json +160 -0
- package/extractions/choisis-ton-avenir.com/DESIGN.md +1265 -0
- package/extractions/choisis-ton-avenir.com/tokens.json +227 -0
- package/extractions/example.com/DESIGN.md +436 -0
- package/extractions/example.com/tokens.json +91 -0
- package/extractions/getdesign.md/DESIGN.md +1009 -0
- package/extractions/getdesign.md/tokens.json +219 -0
- package/extractions/github.com/DESIGN.md +1130 -0
- package/extractions/github.com/tokens.json +2092 -0
- package/extractions/hello-charly.com/DESIGN.md +1146 -0
- package/extractions/hello-charly.com/tokens.json +322 -0
- package/extractions/hyperliquid.xyz/DESIGN.md +779 -0
- package/extractions/hyperliquid.xyz/tokens.json +598 -0
- package/extractions/instagram.com/DESIGN.md +996 -0
- package/extractions/instagram.com/tokens.json +1240 -0
- package/extractions/jobirl.com/DESIGN.md +1160 -0
- package/extractions/jobirl.com/tokens.json +139 -0
- package/extractions/life360.com/DESIGN.md +1133 -0
- package/extractions/life360.com/tokens.json +491 -0
- package/extractions/lifesum.com/DESIGN.md +965 -0
- package/extractions/lifesum.com/tokens.json +170 -0
- package/extractions/linear.app/DESIGN.md +1301 -0
- package/extractions/linear.app/tokens.json +732 -0
- package/extractions/mavoie.org/DESIGN.md +1148 -0
- package/extractions/mavoie.org/tokens.json +128 -0
- package/extractions/miro.com/DESIGN.md +1237 -0
- package/extractions/miro.com/tokens.json +401 -0
- package/extractions/notion.so/DESIGN.md +1319 -0
- package/extractions/notion.so/tokens.json +906 -0
- package/extractions/onetonline.org/DESIGN.md +909 -0
- package/extractions/onetonline.org/tokens.json +280 -0
- package/extractions/posthog.com/DESIGN.md +1024 -0
- package/extractions/posthog.com/tokens.json +197 -0
- package/extractions/revolut.com/DESIGN.md +1080 -0
- package/extractions/revolut.com/tokens.json +401 -0
- package/extractions/stripe.com/DESIGN.md +1272 -0
- package/extractions/stripe.com/tokens.json +794 -0
- package/extractions/switchcollective.com/DESIGN.md +1040 -0
- package/extractions/switchcollective.com/tokens.json +98 -0
- package/extractions/truity.com/DESIGN.md +970 -0
- package/extractions/truity.com/tokens.json +166 -0
- package/extractions/uniquekicks.be/DESIGN.md +1171 -0
- package/extractions/uniquekicks.be/tokens.json +237 -0
- package/package.json +122 -0
- package/scripts/analyze.ts +281 -0
- package/scripts/bank-register.ts +379 -0
- package/scripts/bank.ts +374 -0
- package/scripts/browser-stealth.ts +189 -0
- package/scripts/clone.ts +198 -0
- package/scripts/compare-vs-gd-final.ts +273 -0
- package/scripts/compare-vs-gd.ts +269 -0
- package/scripts/compare.ts +405 -0
- package/scripts/deploy-site.ts +181 -0
- package/scripts/diff-snapshots.ts +340 -0
- package/scripts/enrich-catalog.ts +212 -0
- package/scripts/extract.ts +2038 -0
- package/scripts/extractors/advanced.ts +524 -0
- package/scripts/extractors/widgets.ts +711 -0
- package/scripts/generate-design-md.ts +5775 -0
- package/scripts/generate-final-pdf.ts +274 -0
- package/scripts/generate-og-image.ts +87 -0
- package/scripts/generate-showcase.ts +1588 -0
- package/scripts/generate-site.ts +847 -0
- package/scripts/mass-extract.sh +91 -0
- package/scripts/post-process-all.sh +55 -0
- package/scripts/regen-catalog.ts +203 -0
- package/scripts/shared/cache.ts +149 -0
- package/scripts/shared/css-helpers.ts +263 -0
- package/scripts/shared/logger.ts +57 -0
- package/scripts/shared/named-colors.ts +355 -0
- package/scripts/shared/types.ts +220 -0
- package/scripts/sync-catalog.ts +105 -0
- package/scripts/tokenize.ts +988 -0
- package/templates/layout-template.md +52 -0
- package/templates/tokens-template.json +34 -0
|
@@ -0,0 +1,1209 @@
|
|
|
1
|
+
---
|
|
2
|
+
version: alpha
|
|
3
|
+
name: chance.co
|
|
4
|
+
description: "Light product system built on #e0ddee with #f7ff01 as the primary CTA accent. Type anchored in Bricolage Grotesque at 84px / weight 800. Extracted automatically from https://chance.co/ — rendered styles via getComputedStyle() + CSS custom properties (token-only values may not be painted)."
|
|
5
|
+
narrative: |
|
|
6
|
+
chance.co is built on a mid-light canvas (rgb(224, 221, 238)).
|
|
7
|
+
The system uses rgb(247, 255, 1) as the high-saturation accent for primary actions.
|
|
8
|
+
Sharp 0px corners on CTAs — architectural restraint, engineering precision alongside Bricolage Grotesque as the primary typeface.
|
|
9
|
+
Bricolage Grotesque is paired with webflow-icons for secondary roles.
|
|
10
|
+
A layered elevation system (5 distinct shadows) building a clear front-to-back hierarchy.
|
|
11
|
+
Interactions are smoothed by transitions across many elements, with little or no keyframe animation.
|
|
12
|
+
|
|
13
|
+
colors:
|
|
14
|
+
background: "#e0ddee"
|
|
15
|
+
surface-1: "#f7f5ff"
|
|
16
|
+
surface-2: "rgba(247, 245, 255, 0)"
|
|
17
|
+
ink: "#181f18"
|
|
18
|
+
ink-muted: "rgba(24, 31, 24, 0.65)"
|
|
19
|
+
ink-subtle: "#2c2f31"
|
|
20
|
+
primary: "#f7ff01"
|
|
21
|
+
on-primary: "#111111"
|
|
22
|
+
primary-hover: "#8ebdff"
|
|
23
|
+
hairline: "#e0ddee"
|
|
24
|
+
primary-focus: "#181f18"
|
|
25
|
+
|
|
26
|
+
typography:
|
|
27
|
+
display-xl:
|
|
28
|
+
fontFamily: "Bricolage Grotesque"
|
|
29
|
+
fontSize: 100px
|
|
30
|
+
fontWeight: 800
|
|
31
|
+
lineHeight: 0.8
|
|
32
|
+
letterSpacing: 0
|
|
33
|
+
display-md:
|
|
34
|
+
fontFamily: "Bricolage Grotesque"
|
|
35
|
+
fontSize: 40px
|
|
36
|
+
fontWeight: 800
|
|
37
|
+
lineHeight: 1
|
|
38
|
+
letterSpacing: -1px
|
|
39
|
+
body:
|
|
40
|
+
fontFamily: "Bricolage Grotesque"
|
|
41
|
+
fontSize: 14px
|
|
42
|
+
fontWeight: 400
|
|
43
|
+
lineHeight: 1.43
|
|
44
|
+
letterSpacing: 0
|
|
45
|
+
caption:
|
|
46
|
+
fontFamily: "Post"
|
|
47
|
+
fontSize: 24px
|
|
48
|
+
fontWeight: 400
|
|
49
|
+
lineHeight: 0.83
|
|
50
|
+
letterSpacing: 0
|
|
51
|
+
button:
|
|
52
|
+
fontFamily: "Bricolage Grotesque"
|
|
53
|
+
fontSize: 16px
|
|
54
|
+
fontWeight: 400
|
|
55
|
+
lineHeight: 1.25
|
|
56
|
+
letterSpacing: 0
|
|
57
|
+
|
|
58
|
+
rounded:
|
|
59
|
+
none: 0px
|
|
60
|
+
xs: 4px
|
|
61
|
+
sm: 8px
|
|
62
|
+
md: 12px
|
|
63
|
+
lg: 18px
|
|
64
|
+
xl: 26px
|
|
65
|
+
pill: 9999px
|
|
66
|
+
|
|
67
|
+
spacing:
|
|
68
|
+
xxs: 2px
|
|
69
|
+
xs: 4px
|
|
70
|
+
sm: 8px
|
|
71
|
+
md: 16px
|
|
72
|
+
lg: 156px
|
|
73
|
+
xl: 32px
|
|
74
|
+
xxl: 64px
|
|
75
|
+
section: 80px
|
|
76
|
+
|
|
77
|
+
components:
|
|
78
|
+
button-light--invert:
|
|
79
|
+
backgroundColor: "#ffffff"
|
|
80
|
+
textColor: "{colors.primary-focus}"
|
|
81
|
+
typography: "{typography.body}"
|
|
82
|
+
rounded: "{rounded.xs}"
|
|
83
|
+
padding: 12px 24px
|
|
84
|
+
button-secondary:
|
|
85
|
+
backgroundColor: "{colors.primary-focus}"
|
|
86
|
+
textColor: "#ffffff"
|
|
87
|
+
typography: "{typography.button}"
|
|
88
|
+
rounded: "{rounded.xs}"
|
|
89
|
+
padding: 12px 24px
|
|
90
|
+
button-light--invert-2:
|
|
91
|
+
backgroundColor: "#ffffff"
|
|
92
|
+
textColor: "#7f0000"
|
|
93
|
+
typography: "{typography.body}"
|
|
94
|
+
rounded: "{rounded.sm}"
|
|
95
|
+
padding: 8px 8px 8px 32px
|
|
96
|
+
navigation-main-nav:
|
|
97
|
+
backgroundColor: "{colors.surface-2}"
|
|
98
|
+
typography: "{typography.body}"
|
|
99
|
+
rounded: "{rounded.none}"
|
|
100
|
+
padding: 0px 64px
|
|
101
|
+
cta-banner-full-width-cta:
|
|
102
|
+
backgroundColor: "{colors.surface-2}"
|
|
103
|
+
textColor: "{colors.primary-focus}"
|
|
104
|
+
typography: "{typography.body}"
|
|
105
|
+
rounded: "{rounded.none}"
|
|
106
|
+
padding: 156px 0px 0px
|
|
107
|
+
alert-alert-banner:
|
|
108
|
+
backgroundColor: "{colors.surface-1}"
|
|
109
|
+
textColor: "{colors.primary-focus}"
|
|
110
|
+
typography: "{typography.body}"
|
|
111
|
+
rounded: "{rounded.xs}"
|
|
112
|
+
padding: 32px
|
|
113
|
+
|
|
114
|
+
extracted_at: "2026-05-31T05:54:13.010Z"
|
|
115
|
+
completeness: 86
|
|
116
|
+
scoreVersion: "v2"
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
# Design System — chance.co
|
|
121
|
+
> Extracted automatically by Prism from https://www.chance.co
|
|
122
|
+
> Date: 2026-05-31
|
|
123
|
+
> Viewport: Desktop 1440x900 + Mobile 390x844
|
|
124
|
+
> Values are extracted, not hand-written: rendered styles via getComputedStyle() + colors declared in CSS custom properties (token-only values are marked `(token)` and may not be painted).
|
|
125
|
+
|
|
126
|
+
> **🤖 TL;DR for AI agents** (read this first — saves you scanning the full doc):
|
|
127
|
+
>
|
|
128
|
+
> - **Canvas**: `rgb(224, 221, 238)` is the page background. Every component composits against this.
|
|
129
|
+
> - **Accent**: `rgb(247, 255, 1)` for primary CTAs ONLY. Never decorative.
|
|
130
|
+
> - **Body type**: 16px (token: `typography.body`). Default for ALL text not in a heading role.
|
|
131
|
+
> - **Section rhythm**: 48px between major bands. Card padding: 156px.
|
|
132
|
+
> - **Default radius**: 8px on buttons/inputs. Pills (`9999px`) only for icon-buttons or status chips.
|
|
133
|
+
>
|
|
134
|
+
> **Before generating UI**: import this DESIGN.md, scan §2 (Color Palette) + §4 (Components) + §10 (Agent Guide). Skip §11–12 unless extending.
|
|
135
|
+
|
|
136
|
+
## 1. Visual Theme & Atmosphere
|
|
137
|
+
|
|
138
|
+
chance.co sits on a light gray canvas (`#e0ddee`), a neutral foundation calibrated for sustained reading and component contrast.
|
|
139
|
+
|
|
140
|
+
Typography is anchored in **Bricolage Grotesque**. Headlines use weight 800 for confident, assertive presence — the brand wants to be heard.
|
|
141
|
+
|
|
142
|
+
Body text reads in Near Black (`#181f18`) — softened from pure black, a small but deliberate detail that lowers reading friction. **#f7ff01** (`#f7ff01`) is the single high-saturation color in the system — it earns its presence only on interactive elements, making CTAs and links the unmistakable focal points against the otherwise neutral palette. Elevation is built from multi-layer shadow stacks — each level combines several blurred layers at varying offsets to simulate how light falls on stacked surfaces.
|
|
143
|
+
Motion design uses smooth easing curves for polished state transitions. The site uses a variable font with WDTH + OPSZ + WGHT axes, enabling precise weight/width control across the type hierarchy.
|
|
144
|
+
|
|
145
|
+
**Key Characteristics:**
|
|
146
|
+
- Background: Light Gray (`#e0ddee`)
|
|
147
|
+
- Primary typeface: Post
|
|
148
|
+
- Primary text: Near Black (`#181f18`)
|
|
149
|
+
- Accent: #f7ff01 (`#f7ff01`)
|
|
150
|
+
- Display: 100px weight 800
|
|
151
|
+
- Shadow system: 5 distinct elevation levels
|
|
152
|
+
- Custom fonts loaded: Post, Bricolage Grotesque, BricolageGrotesque
|
|
153
|
+
|
|
154
|
+
## 2. Color Palette & Roles
|
|
155
|
+
|
|
156
|
+
### Background & Surface
|
|
157
|
+
- **Light Gray** (`#e0ddee`): Page background (primary)
|
|
158
|
+
- **Transparent** (`transparent`): Surface / elevated background
|
|
159
|
+
- **Pure White** (`#ffffff`): Surface / elevated background
|
|
160
|
+
- **Ghost White** (`#f7f5ff`): Surface / elevated background
|
|
161
|
+
- **#f7ff01** (`#f7ff01`): Surface / elevated background
|
|
162
|
+
|
|
163
|
+
### Text & Content
|
|
164
|
+
- **Near Black** (`#181f18`): Primary body text
|
|
165
|
+
- **Pure Black** (`#000000`): Secondary text
|
|
166
|
+
- **Charcoal** (`#333333`): Secondary text
|
|
167
|
+
- **Warm Brown** (`#222222`): Secondary text
|
|
168
|
+
- **#7f0000** (`#7f0000`): Secondary text
|
|
169
|
+
|
|
170
|
+
### Accent & Interactive
|
|
171
|
+
- **Baby Blue** (`#8ebdff`): Interactive / accent
|
|
172
|
+
- **Hot Pink** (`#f66bae`): Interactive / accent
|
|
173
|
+
- **Slate Gray** (`#675c99`): Interactive / accent
|
|
174
|
+
- **Royal Blue** (`#4a6fde`): Interactive / accent
|
|
175
|
+
- **#c00c63** (`#c00c63`): Interactive / accent
|
|
176
|
+
- **#636600** (`#636600`): Interactive / accent
|
|
177
|
+
- **#1c2977** (`#1c2977`): Interactive / accent
|
|
178
|
+
|
|
179
|
+
### Border & Divider
|
|
180
|
+
- **Silver** (`#c4c6ca`): Borders / dividers
|
|
181
|
+
- **Light Gray** (`#e4eaed`): Borders / dividers
|
|
182
|
+
- **Translucent Light Gray (10%)** (`rgba(221, 221, 221, 0.1)`): Borders / dividers
|
|
183
|
+
|
|
184
|
+
### Full Extracted Palette
|
|
185
|
+
**33 colors rendered on the page** + **9** more declared in design tokens (CSS custom properties — not necessarily painted). (20 categorized above + 22 additional below.)
|
|
186
|
+
Rendered values are read via `getComputedStyle()`; token values come from CSS variable declarations. Third-party logo colors are filtered out.
|
|
187
|
+
|
|
188
|
+
- `#515355` — Slate
|
|
189
|
+
- `#e2efff` — Light Gray
|
|
190
|
+
- `#727272` — Stone
|
|
191
|
+
- `#fee7f2` — Warm Cream
|
|
192
|
+
- `#efedf7` — Light Gray
|
|
193
|
+
- `#1f181b` — Near Black
|
|
194
|
+
- `#a3a3a3` — Cool Gray
|
|
195
|
+
- `#df011a` — #df011a
|
|
196
|
+
- `#5f6267` — Dim Gray
|
|
197
|
+
- `#5e6266` — Dim Gray
|
|
198
|
+
- `#f0f4f7` — Light Gray
|
|
199
|
+
- `#30363c` — Charcoal
|
|
200
|
+
- `#2c2f31` — Charcoal
|
|
201
|
+
- `#eaeff2` — Light Gray
|
|
202
|
+
- `#faff60` — Secondary Yellow *(token)*
|
|
203
|
+
- `#fbb7d8` — Pink *(token)*
|
|
204
|
+
- `#d5dee2` — #d5dee2 *(token)*
|
|
205
|
+
- `#d4dae0` — #d4dae0 *(token)*
|
|
206
|
+
- `#dee4e9` — Light Gray *(token)*
|
|
207
|
+
- `#e9eff4` — Light Gray *(token)*
|
|
208
|
+
- `#efecfb` — Light Gray *(token)*
|
|
209
|
+
- `#667481` — Slate Gray *(token)*
|
|
210
|
+
|
|
211
|
+
### CSS Custom Properties (Design Tokens)
|
|
212
|
+
|
|
213
|
+
**Motion Token**
|
|
214
|
+
- `--cc-modal-transition-duration`: `.25s`
|
|
215
|
+
|
|
216
|
+
**Border Radius Token**
|
|
217
|
+
- `--cc-btn-border-radius`: `.4rem`
|
|
218
|
+
- `--cc-pm-toggle-border-radius`: `4em`
|
|
219
|
+
- `--cc-modal-border-radius`: `.5rem`
|
|
220
|
+
|
|
221
|
+
**Z-Index Token**
|
|
222
|
+
- `--cc-z-index`: `2147483647`
|
|
223
|
+
|
|
224
|
+
**Spacing Token**
|
|
225
|
+
- `--padding-top`: `9.25rem`
|
|
226
|
+
|
|
227
|
+
**Other tokens**
|
|
228
|
+
- `--cc-btn-primary-hover-border-color`: `#000`
|
|
229
|
+
- `--cc-cookie-category-expanded-block-bg`: `transparent`
|
|
230
|
+
- `--cc-toggle-readonly-knob-icon-color`: `#d5dee2`
|
|
231
|
+
- `--cc-webkit-scrollbar-bg`: `#f0f4f7`
|
|
232
|
+
- `--cc-toggle-enabled-icon-color`: `#fff`
|
|
233
|
+
- `--cc-bg`: `#fff`
|
|
234
|
+
- `--cc-btn-secondary-hover-bg`: `#d4dae0`
|
|
235
|
+
- `--cc-btn-secondary-color`: `#2c2f31`
|
|
236
|
+
|
|
237
|
+
## 3. Typography Rules
|
|
238
|
+
|
|
239
|
+
### Font Families
|
|
240
|
+
- **Primary**: `Bricolage Grotesque`
|
|
241
|
+
- **Secondary**: `webflow-icons`
|
|
242
|
+
- **Font 3**: `Post`
|
|
243
|
+
- **Font 4**: `BricolageGrotesque`
|
|
244
|
+
- **Font 5**: `-apple-system`
|
|
245
|
+
|
|
246
|
+
### Custom Fonts Loaded
|
|
247
|
+
- **webflow-icons** weight 400 (normal)
|
|
248
|
+
- **Post** weight 400 (normal)
|
|
249
|
+
- **Bricolage Grotesque** weight 200 800 (normal)
|
|
250
|
+
- **BricolageGrotesque** weight 200 800 (normal)
|
|
251
|
+
|
|
252
|
+
### Typography Hierarchy
|
|
253
|
+
|
|
254
|
+
| Role | Font | Size | Weight | Line Height | Letter Spacing | Notes |
|
|
255
|
+
|------|------|------|--------|-------------|----------------|-------|
|
|
256
|
+
| Display Hero | Bricolage Grotesque | 100px | 800 | 0.8 | normal | Main headline (h1) |
|
|
257
|
+
| Sub-heading | Bricolage Grotesque | 40px | 800 | 1 | -1px | Third-level heading (h3) |
|
|
258
|
+
| Caption / Badge | Post | 24px | 400 | 0.83 | normal | small text (24px) |
|
|
259
|
+
| Caption / Badge | Bricolage Grotesque | 20px | 600 | 1 | normal | small text (20px) |
|
|
260
|
+
| Button Large | Bricolage Grotesque | 16px | 400 | 1.25 | normal | Button label (16px) |
|
|
261
|
+
| Button Large | Bricolage Grotesque | 16px | 500 | 1.25 | normal | Button label (16px) |
|
|
262
|
+
| Card Title | Bricolage Grotesque | 14px | 400 | 1.43 | normal | Card headings |
|
|
263
|
+
| Button | Bricolage Grotesque | 14px | 600 | 1.43 | normal | Button label (14px) |
|
|
264
|
+
| Button | Bricolage Grotesque | 14px | 500 | 1.43 | normal | Button label (14px) |
|
|
265
|
+
|
|
266
|
+
### Full Font Size Scale
|
|
267
|
+
|
|
268
|
+
Sizes detected in the design (descending): `100px`, `84px`, `80px`, `68px`, `64px`, `40px`, `36px`, `32px`, `28px`, `24px`, `20px`, `18px`, `16.80px`, `16px`, `14.40px`, `14px`, `13.12px`, `12.80px`, `12px`
|
|
269
|
+
|
|
270
|
+
> 13 size(s) detected outside the sampled hierarchy (84px, 80px, 68px, 64px, 36px, 32px, 28px, 18px, 16.8px, 14.4px, 13.12px, 12.8px, 12px). These appear on elements not in the sampled set — likely additional display sizes, marketing-section overrides, or third-party-widget styles.
|
|
271
|
+
|
|
272
|
+
### OpenType & Variable Font Features
|
|
273
|
+
|
|
274
|
+
**Variable font axes:**
|
|
275
|
+
- WDTH axis
|
|
276
|
+
- OPSZ axis
|
|
277
|
+
- WGHT axis
|
|
278
|
+
|
|
279
|
+
## 4. Component Stylings
|
|
280
|
+
|
|
281
|
+
### Buttons
|
|
282
|
+
|
|
283
|
+
**Light / Invert**
|
|
284
|
+
- Background: `#ffffff`
|
|
285
|
+
- Text: `#181f18` `{colors.primary-focus}`
|
|
286
|
+
- Padding: 12px 24px
|
|
287
|
+
- Radius: 4px
|
|
288
|
+
- Shadow: `rgb(24, 31, 24) 0px 0px 0px 1px`
|
|
289
|
+
- Font: 14px weight 600
|
|
290
|
+
- Use: Bright CTA on dark sections
|
|
291
|
+
- Hover: backgroundColor: `#efefef`, color: `#282f28`, border: `0px none rgb(40, 47, 40)`
|
|
292
|
+
- Focus: backgroundColor: `rgb(237, 238, 237)`, color: `rgb(42, 48, 42)`, border: `0px none rgb(42, 48, 42)`
|
|
293
|
+
|
|
294
|
+
**Secondary**
|
|
295
|
+
- Background: `#181f18` `{colors.primary-focus}`
|
|
296
|
+
- Text: `#ffffff`
|
|
297
|
+
- Padding: 12px 24px
|
|
298
|
+
- Radius: 4px
|
|
299
|
+
- Font: 16px weight 500
|
|
300
|
+
- Use: Secondary action
|
|
301
|
+
- Hover: backgroundColor: `#efefef`, color: `#282f28`, border: `0px none rgb(40, 47, 40)`
|
|
302
|
+
- Focus: backgroundColor: `rgb(237, 238, 237)`, color: `rgb(42, 48, 42)`, border: `0px none rgb(42, 48, 42)`
|
|
303
|
+
|
|
304
|
+
**Light / Invert**
|
|
305
|
+
- Background: `#ffffff`
|
|
306
|
+
- Text: `#7f0000`
|
|
307
|
+
- Padding: 8px 8px 8px 32px
|
|
308
|
+
- Radius: 8px
|
|
309
|
+
- Shadow: `rgba(31, 24, 27, 0) 0px 177px 49px 0px, rgba(31, 24, 27, 0.04) 0px 113px 45px 0p...`
|
|
310
|
+
- Font: 14px weight 500
|
|
311
|
+
- Use: Bright CTA on dark sections
|
|
312
|
+
- Hover: backgroundColor: `#efefef`, color: `#282f28`, border: `0px none rgb(40, 47, 40)`
|
|
313
|
+
- Focus: backgroundColor: `rgb(237, 238, 237)`, color: `rgb(42, 48, 42)`, border: `0px none rgb(42, 48, 42)`
|
|
314
|
+
|
|
315
|
+
**Primary Brand**
|
|
316
|
+
- Background: `#f7ff01` `{colors.primary}`
|
|
317
|
+
- Text: `#181f18` `{colors.primary-focus}`
|
|
318
|
+
- Padding: 14px 28px
|
|
319
|
+
- Radius: 4px
|
|
320
|
+
- Shadow: `rgb(247, 255, 1) 0px 0px 0px 1px`
|
|
321
|
+
- Font: 16px weight 400
|
|
322
|
+
- Use: Primary CTA / brand action
|
|
323
|
+
- Hover: backgroundColor: `#efefef`, color: `#282f28`, border: `0px none rgb(40, 47, 40)`
|
|
324
|
+
- Focus: backgroundColor: `rgb(237, 238, 237)`, color: `rgb(42, 48, 42)`, border: `0px none rgb(42, 48, 42)`
|
|
325
|
+
|
|
326
|
+
**Secondary**
|
|
327
|
+
- Background: `#181f18` `{colors.primary-focus}`
|
|
328
|
+
- Text: `#ffffff`
|
|
329
|
+
- Padding: 14px 28px
|
|
330
|
+
- Radius: 4px
|
|
331
|
+
- Shadow: `rgb(24, 31, 24) 0px 0px 0px 1px`
|
|
332
|
+
- Font: 16px weight 400
|
|
333
|
+
- Use: Secondary action
|
|
334
|
+
- Hover: backgroundColor: `#efefef`, color: `#282f28`, border: `0px none rgb(40, 47, 40)`
|
|
335
|
+
- Focus: backgroundColor: `rgb(237, 238, 237)`, color: `rgb(42, 48, 42)`, border: `0px none rgb(42, 48, 42)`
|
|
336
|
+
|
|
337
|
+
**Ghost**
|
|
338
|
+
- Background: `transparent` `{colors.surface-2}`
|
|
339
|
+
- Text: `#181f18` `{colors.primary-focus}`
|
|
340
|
+
- Padding: 16px 20.8px
|
|
341
|
+
- Radius: 0px
|
|
342
|
+
- Font: 16px weight 400
|
|
343
|
+
- Use: Subtle action, toolbar, nav button
|
|
344
|
+
- Hover: backgroundColor: `#efefef`, color: `#282f28`, border: `0px none rgb(40, 47, 40)`
|
|
345
|
+
- Focus: backgroundColor: `rgb(237, 238, 237)`, color: `rgb(42, 48, 42)`, border: `0px none rgb(42, 48, 42)`
|
|
346
|
+
|
|
347
|
+
### Navigation
|
|
348
|
+
|
|
349
|
+
**Main Nav**
|
|
350
|
+
- Background: `transparent` `{colors.surface-2}`
|
|
351
|
+
- Padding: 0px 64px
|
|
352
|
+
- Radius: none
|
|
353
|
+
- Font: 14px weight 400
|
|
354
|
+
- Use: Fixed/sticky flex nav — N/A items
|
|
355
|
+
- Hover: outline: `rgb(34, 34, 34) none 0px`
|
|
356
|
+
|
|
357
|
+
### CTA Banners
|
|
358
|
+
|
|
359
|
+
**Full-width CTA**
|
|
360
|
+
- Background: `transparent` `{colors.surface-2}`
|
|
361
|
+
- Text: `#181f18` `{colors.primary-focus}`
|
|
362
|
+
- Padding: 156px 0px 0px
|
|
363
|
+
- Radius: 0px
|
|
364
|
+
- Font: 14px weight 400
|
|
365
|
+
- Use: Full-width conversion strip with headline + button
|
|
366
|
+
- Hover: backgroundColor: `#efefef`, color: `#282f28`, border: `0px none rgb(40, 47, 40)`
|
|
367
|
+
- Focus: backgroundColor: `rgb(237, 238, 237)`, color: `rgb(42, 48, 42)`, border: `0px none rgb(42, 48, 42)`
|
|
368
|
+
|
|
369
|
+
### Alerts
|
|
370
|
+
|
|
371
|
+
**Alert Banner**
|
|
372
|
+
- Background: `#f7f5ff` `{colors.surface-1}`
|
|
373
|
+
- Text: `#181f18` `{colors.primary-focus}`
|
|
374
|
+
- Padding: 32px
|
|
375
|
+
- Radius: 6px
|
|
376
|
+
- Font: 14px weight 400
|
|
377
|
+
- Use: System alert, banner notification, toast
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
## 4b. Component Behaviors (State Matrix)
|
|
381
|
+
|
|
382
|
+
### Interaction State Narrative
|
|
383
|
+
|
|
384
|
+
- **Button**:
|
|
385
|
+
- **hover:** bg #ffffff → #efefef, text #181f18 → #282f28, border changes
|
|
386
|
+
- **focus:** bg #ffffff → #edeeed, text #181f18 → #2a302a, border changes
|
|
387
|
+
|
|
388
|
+
*State transitions extracted via Playwright simulation — exact values in the YAML matrix below.*
|
|
389
|
+
|
|
390
|
+
```yaml
|
|
391
|
+
component-behaviors:
|
|
392
|
+
button:
|
|
393
|
+
default:
|
|
394
|
+
bg: "rgb(255, 255, 255)"
|
|
395
|
+
fg: "rgb(24, 31, 24)"
|
|
396
|
+
shadow: "rgb(24, 31, 24) 0px 0px 0px 1px"
|
|
397
|
+
hover:
|
|
398
|
+
bg: "rgb(239, 239, 239)"
|
|
399
|
+
fg: "rgb(40, 47, 40)"
|
|
400
|
+
shadow: "rgb(24, 31, 24) 0px 0px 0px 1px"
|
|
401
|
+
focus:
|
|
402
|
+
bg: "rgb(237, 238, 237)"
|
|
403
|
+
fg: "rgb(42, 48, 42)"
|
|
404
|
+
shadow: "rgb(24, 31, 24) 0px 0px 0px 1px"
|
|
405
|
+
link:
|
|
406
|
+
default:
|
|
407
|
+
bg: "rgba(0, 0, 0, 0)"
|
|
408
|
+
fg: "rgb(51, 51, 51)"
|
|
409
|
+
hover:
|
|
410
|
+
bg: "rgba(0, 0, 0, 0)"
|
|
411
|
+
fg: "rgb(51, 51, 51)"
|
|
412
|
+
card:
|
|
413
|
+
default:
|
|
414
|
+
bg: "rgba(0, 0, 0, 0)"
|
|
415
|
+
fg: "rgb(24, 31, 24)"
|
|
416
|
+
navLink:
|
|
417
|
+
default:
|
|
418
|
+
bg: "rgba(0, 0, 0, 0)"
|
|
419
|
+
fg: "rgb(34, 34, 34)"
|
|
420
|
+
hover:
|
|
421
|
+
bg: "rgba(0, 0, 0, 0)"
|
|
422
|
+
fg: "rgb(34, 34, 34)"
|
|
423
|
+
badge:
|
|
424
|
+
default:
|
|
425
|
+
bg: "rgb(224, 221, 238)"
|
|
426
|
+
fg: "rgb(24, 31, 24)"
|
|
427
|
+
```
|
|
428
|
+
|
|
429
|
+
**Agent usage**: Validate generated components against this matrix. If your output's `:hover` state changes properties not listed here, you are off-brand.
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
## 4c. Component Vocabulary (Closed System)
|
|
433
|
+
|
|
434
|
+
*This brand uses ONLY the following component vocabulary. Introducing new variants without justification breaks the system's tonal coherence.*
|
|
435
|
+
|
|
436
|
+
### Buttons
|
|
437
|
+
- **4 shape(s)** in this system: `Light / Invert`, `Secondary`, `Primary Brand`, `Ghost`
|
|
438
|
+
- **DO NOT introduce new buttons variants** without justification
|
|
439
|
+
|
|
440
|
+
### Navigation
|
|
441
|
+
- **1 shape(s)** in this system: `Main Nav`
|
|
442
|
+
- **DO NOT introduce new navigation variants** without justification
|
|
443
|
+
|
|
444
|
+
### CTA Banners
|
|
445
|
+
- **1 shape(s)** in this system: `Full-width CTA`
|
|
446
|
+
- **DO NOT introduce new cta banners variants** without justification
|
|
447
|
+
|
|
448
|
+
### Alerts
|
|
449
|
+
- **1 shape(s)** in this system: `Alert Banner`
|
|
450
|
+
- **DO NOT introduce new alerts variants** without justification
|
|
451
|
+
|
|
452
|
+
## 5. Layout Principles
|
|
453
|
+
|
|
454
|
+
### Layout Type
|
|
455
|
+
**hero + sections**
|
|
456
|
+
|
|
457
|
+
### Grid
|
|
458
|
+
Single column, centered content
|
|
459
|
+
|
|
460
|
+
### Max Width
|
|
461
|
+
1200px
|
|
462
|
+
|
|
463
|
+
### Spacing System
|
|
464
|
+
Compact spacing — information density prioritized
|
|
465
|
+
|
|
466
|
+
| Token | Value |
|
|
467
|
+
|-------|-------|
|
|
468
|
+
| xxs | 2px |
|
|
469
|
+
| xs | 4px |
|
|
470
|
+
| sm | 8px |
|
|
471
|
+
| md | 16px |
|
|
472
|
+
| base | 64px |
|
|
473
|
+
| lg | 156px |
|
|
474
|
+
| xl | 32px |
|
|
475
|
+
| 2xl | 48px |
|
|
476
|
+
| 3xl | 64px |
|
|
477
|
+
|
|
478
|
+
### Border Radius Scale
|
|
479
|
+
| Name | Value | Use |
|
|
480
|
+
|------|-------|-----|
|
|
481
|
+
| None | 0px | No rounding |
|
|
482
|
+
| Xs | 4px | Tiny corners (badges, micro elements) |
|
|
483
|
+
| Sm | 8px | Buttons, inputs, small elements |
|
|
484
|
+
| Md | 12px | Cards, containers |
|
|
485
|
+
| Lg | 18px | Large rounded elements, pill segments |
|
|
486
|
+
| Xl | 26px | Category strips, featured containers |
|
|
487
|
+
| Full | 9999px | Pills, avatars, circular elements |
|
|
488
|
+
|
|
489
|
+
### Shape Language
|
|
490
|
+
|
|
491
|
+
| Component | Border Radius |
|
|
492
|
+
|-----------|---------------|
|
|
493
|
+
| Buttons | `4px` |
|
|
494
|
+
| Navigation | `none` |
|
|
495
|
+
| CTA Banners | `0px` |
|
|
496
|
+
| Alerts | `6px` |
|
|
497
|
+
| Page Body | `0px` |
|
|
498
|
+
|
|
499
|
+
**Shape Personality**: Moderate Rounding — Medium corners (4–12px). Modern SaaS standard, neither sharp nor pill.
|
|
500
|
+
|
|
501
|
+
**Full Radius Spectrum**: 2px, 4px, 6px, 6.4px, 7.2px, 8px, 12px, 16px (from `allBorderRadii` scan)
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
## 5b. Spacing Rhythm Names
|
|
505
|
+
|
|
506
|
+
**Measured section rhythm**: bands use ~64px vertical padding (up to 145px) — **generous**. Reproduce this generous vertical breathing room; cramped spacing is the #1 tell of a cheap clone.
|
|
507
|
+
|
|
508
|
+
*Named spacing tokens with explicit use cases. Use these names in YOUR code instead of raw pixels for consistency.*
|
|
509
|
+
|
|
510
|
+
| Name | Value | Use case |
|
|
511
|
+
|------|-------|----------|
|
|
512
|
+
| **hero** | `64px` | Top/bottom of full-bleed hero sections |
|
|
513
|
+
| **section** | `32px` | Between major bands (color change, content shift) |
|
|
514
|
+
| **subsection** | `156px` | Within a section, between content groups |
|
|
515
|
+
| **card** | `16px` | Card padding, list-item spacing |
|
|
516
|
+
| **compact** | `8px` | Form fields, tight clusters, badge padding |
|
|
517
|
+
| **micro** | `4px` | Icon-text gap, tag inner padding |
|
|
518
|
+
|
|
519
|
+
**Agent rule**: NEVER hardcode raw pixel values for spacing in generated UI. Always reference these named tokens (`spacing-rhythm.section`, etc.).
|
|
520
|
+
|
|
521
|
+
## 5c. Widget & Structure Library
|
|
522
|
+
|
|
523
|
+
Structural patterns extracted from the page DOM — these are the **blueprints** an agent should follow to reproduce the page architecture (not just CSS values).
|
|
524
|
+
|
|
525
|
+
**6/8 structural patterns detected.**
|
|
526
|
+
|
|
527
|
+
### Hero Pattern
|
|
528
|
+
|
|
529
|
+
- **Composition:** centered — Centered composition — heading + subheading + CTAs stacked vertically, content centered horizontally. Common for SaaS marketing pages.
|
|
530
|
+
- **Viewport coverage:** 344px tall (not full-viewport)
|
|
531
|
+
- **Heading:** "Découvrezla vie proqu'il vous faut" — 100px left-aligned
|
|
532
|
+
- **CTAs:** none detected in hero (unusual — agent should verify)
|
|
533
|
+
- **Clone instruction:** Reproduce the **centered** layout. Use the heading font-size token at the documented size. No imagery needed for hero — text-driven.
|
|
534
|
+
|
|
535
|
+
### Navigation Pattern
|
|
536
|
+
|
|
537
|
+
- **Position:** static (scrolls with page)
|
|
538
|
+
- **Layout:** unknown — Layout not classified
|
|
539
|
+
- **Height:** 44px
|
|
540
|
+
- **Logo:** ✗ absent
|
|
541
|
+
- **Nav links:** 4 primary items
|
|
542
|
+
- **CTAs in nav:** 1
|
|
543
|
+
- **Clone instruction:** Build a static unknown navigation. Reserve 1 slot for primary CTA.
|
|
544
|
+
|
|
545
|
+
### Card Grid Pattern
|
|
546
|
+
|
|
547
|
+
- **Card count:** 4 cards detected
|
|
548
|
+
- **Columns (desktop):** 2-up grid
|
|
549
|
+
- **Card dimensions:** 588×288px (aspect 2.04:1)
|
|
550
|
+
- **Gap:** 24px between cards
|
|
551
|
+
- **Content:** ✓ image + CTA
|
|
552
|
+
- **Image position:** top
|
|
553
|
+
- **Clone instruction:** Build a 2-column grid (desktop) with cards at ~2.04:1 aspect ratio. Each card has an image at the top.
|
|
554
|
+
|
|
555
|
+
### Testimonial Pattern
|
|
556
|
+
|
|
557
|
+
- **Count:** 1 testimonial blocks
|
|
558
|
+
- **Layout:** single-feature
|
|
559
|
+
- **Avg quote length:** 61 chars (short blurb)
|
|
560
|
+
- **Includes:** ✓ avatars | ✗ no logos | ✓ star ratings
|
|
561
|
+
- **Clone instruction:** Build a single-feature of 1 testimonials. Each includes an avatar. Display ratings prominently.
|
|
562
|
+
|
|
563
|
+
### CTA Banner Pattern
|
|
564
|
+
|
|
565
|
+
- **Banner count:** 2
|
|
566
|
+
- **Position:** multiple
|
|
567
|
+
- **Visual treatment:** ✓ contrasting background
|
|
568
|
+
- **Primary CTA text:** "Etape 1clarifier ma relation au travailJe m'appuie sur les 4"
|
|
569
|
+
- **Clone instruction:** Place multiple CTA banners across page sections. Use contrasting solid background.
|
|
570
|
+
|
|
571
|
+
### Footer Pattern
|
|
572
|
+
|
|
573
|
+
- **Columns:** 2
|
|
574
|
+
- **Links:** 6 total
|
|
575
|
+
- **Height:** 84px
|
|
576
|
+
- **Includes:** ✗ no newsletter | ✗ no social | ✓ copyright
|
|
577
|
+
- **Clone instruction:** Build a 2-column footer with ~3 links per column, and a copyright line.
|
|
578
|
+
|
|
579
|
+
## 6. Depth & Elevation
|
|
580
|
+
|
|
581
|
+
| Level | Treatment | Use |
|
|
582
|
+
|-------|-----------|-----|
|
|
583
|
+
| Flat (Level 0) | No shadow | Page background, content blocks |
|
|
584
|
+
| Layered (Level 1) | <br>`rgb(24, 31, 24) 0px 0px 0px 1px` | Cards, elevated surfaces |
|
|
585
|
+
| Layered (Level 2) | <br>`rgba(31, 24, 27, 0) 0px 177px 49px 0px`,<br>`rgba(31, 24, 27, 0.04) 0px 113px 45px 0px`,<br>`rgba(31, 24, 27, 0.04) 0px 64px 38px 0px`,<br>`rgba(31, 24, 27, 0.21) 0px 28px 28px 0px`,<br>`rgba(31, 24, 27, 0.24) 0px 7px 16px 0px` | Cards, elevated surfaces |
|
|
586
|
+
| Layered (Level 3) | <br>`rgba(0, 0, 0, 0.12) 0px 8px 40px 0px` | Cards, elevated surfaces |
|
|
587
|
+
| Layered (Level 4) | <br>`rgb(247, 255, 1) 0px 0px 0px 1px` | Cards, elevated surfaces |
|
|
588
|
+
|
|
589
|
+
**Shadow Philosophy**: Multi-layered shadow system creating natural, atmospheric depth. Each shadow level combines multiple layers for realistic elevation.
|
|
590
|
+
|
|
591
|
+
## 7. Motion & Interaction
|
|
592
|
+
|
|
593
|
+
### Dominant Easing Curves
|
|
594
|
+
|
|
595
|
+
| Curve | Semantic Name |
|
|
596
|
+
|-------|---------------|
|
|
597
|
+
| `ease-in-out` | Ease In-Out — Symmetric |
|
|
598
|
+
| `ease-in` | Ease In — Accelerating |
|
|
599
|
+
| `ease` | CSS ease — Default |
|
|
600
|
+
|
|
601
|
+
### Duration Scale
|
|
602
|
+
|
|
603
|
+
| CSS Variable | Value | Tier |
|
|
604
|
+
|--------------|-------|------|
|
|
605
|
+
| `--cc-modal-transition-duration` | `.25s` | Normal |
|
|
606
|
+
|
|
607
|
+
### Copy-Paste Transition Snippets
|
|
608
|
+
|
|
609
|
+
**Opacity**
|
|
610
|
+
```css
|
|
611
|
+
transition: opacity 0.2s;
|
|
612
|
+
```
|
|
613
|
+
|
|
614
|
+
**All Props**
|
|
615
|
+
```css
|
|
616
|
+
transition: 0.1s ease-in-out;
|
|
617
|
+
```
|
|
618
|
+
|
|
619
|
+
**All Props**
|
|
620
|
+
```css
|
|
621
|
+
transition: 0.2s ease-in-out;
|
|
622
|
+
```
|
|
623
|
+
|
|
624
|
+
**Background**
|
|
625
|
+
```css
|
|
626
|
+
transition: background-color 0.2s, color 0.2s;
|
|
627
|
+
```
|
|
628
|
+
|
|
629
|
+
### Keyframe Animation Catalog
|
|
630
|
+
|
|
631
|
+
| Animation Name | Type | Animated Props | Use Hint |
|
|
632
|
+
|----------------|------|----------------|----------|
|
|
633
|
+
| `spin` | Rotate / Spin | transform | Loading indicator |
|
|
634
|
+
|
|
635
|
+
### Motion Fingerprint
|
|
636
|
+
|
|
637
|
+
- **Speed Character**: Balanced Pacing (median duration: `200ms`)
|
|
638
|
+
- **Dominant Easing**: symmetric in-out (precise)
|
|
639
|
+
- **Animation Library**: 1 unique animation (1 total including variants)
|
|
640
|
+
|
|
641
|
+
> This design moves with balanced pacing timing using symmetric in-out (precise), creating a UI that feels natural and fluid.
|
|
642
|
+
|
|
643
|
+
## 8. Do's and Don'ts
|
|
644
|
+
|
|
645
|
+
### Do
|
|
646
|
+
- Use Light Gray (`#e0ddee`) as the page background — it's intentionally not pure white
|
|
647
|
+
- Use Near Black (`#181f18`) for text — not pure black, it's warmer and more readable
|
|
648
|
+
- Use Bricolage Grotesque as the primary typeface — it defines the brand personality
|
|
649
|
+
- Use the extracted shadow patterns for elevation — they are tuned to match the brand palette
|
|
650
|
+
- Use #f7ff01 (`#f7ff01`) as the primary accent — it's the brand's signature interactive color
|
|
651
|
+
- Use small 4px radius for buttons — this design system uses subtle rounding, not pill shapes
|
|
652
|
+
- Maintain nav height at 44px — consistent vertical space for the navigation bar
|
|
653
|
+
- Transition button background to Light Gray (`#efefef`) on hover — this is the extracted interactive state
|
|
654
|
+
- Respect the 4px–32px spacing range — the design uses a wide scale for visual breathing room
|
|
655
|
+
- Keep the hero centered and text-driven — no decorative media, typography carries the message
|
|
656
|
+
- Each card includes a top image — imagery is part of the card identity, not optional
|
|
657
|
+
- Show person avatars with testimonials — social proof is human-centric here
|
|
658
|
+
- Repeat the primary CTA across 2 banner sections — conversion paths are layered, not single
|
|
659
|
+
|
|
660
|
+
### Don't
|
|
661
|
+
- Don't use pure white (`#ffffff`) as a page background — the warm tone is part of the brand identity
|
|
662
|
+
- Don't use pure black (`#000000`) for text — the near-black adds warmth
|
|
663
|
+
- Don't substitute with generic sans-serif or serif — the custom font carries the brand
|
|
664
|
+
- Don't invent new shadow values — use only the extracted shadow levels
|
|
665
|
+
- Don't introduce additional saturated accent colors — the palette is intentionally controlled
|
|
666
|
+
- Don't over-round buttons with pill or large radius — the system uses restrained, sharp-ish corners
|
|
667
|
+
- Don't collapse or hide the nav on scroll without an explicit scroll-triggered animation — the design uses fixed nav presence
|
|
668
|
+
- Don't use opacity or brightness filter for button hover — the design uses an explicit background color change
|
|
669
|
+
- Don't add hero illustrations or photos — they'll break the typographic restraint
|
|
670
|
+
- Don't make the nav sticky — this design lets it scroll away to maximize content focus
|
|
671
|
+
- Don't over-build the footer — this design keeps it minimal (2 cols, 6 links)
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
## 7b. Enforceable Brand Rules
|
|
675
|
+
|
|
676
|
+
*Structured Do/Don't with reasoning and validation tests. Agents can programmatically verify generated UI.*
|
|
677
|
+
|
|
678
|
+
```yaml
|
|
679
|
+
rules:
|
|
680
|
+
- id: brand-canvas-001
|
|
681
|
+
type: do
|
|
682
|
+
rule: "Always use the page background `rgb(224, 221, 238)` as the base canvas"
|
|
683
|
+
why: "Every component is designed to composit against this exact tone"
|
|
684
|
+
test: "document.body.style.backgroundColor === 'rgb(224, 221, 238)'"
|
|
685
|
+
- id: brand-accent-001
|
|
686
|
+
type: do
|
|
687
|
+
rule: "Reserve `rgb(247, 255, 1)` for primary CTAs and brand-mark signals only"
|
|
688
|
+
why: "Single chromatic assertion device — overuse dilutes meaning"
|
|
689
|
+
test: "querySelectorAll('[style*=\"rgb(247, 255, 1)\"]').length <= 3 per fold"
|
|
690
|
+
```
|
|
691
|
+
|
|
692
|
+
## 9. Responsive Behavior
|
|
693
|
+
|
|
694
|
+
### Breakpoints
|
|
695
|
+
| Name | Width | Key Changes |
|
|
696
|
+
|------|-------|-------------|
|
|
697
|
+
| Mobile | 479px | Single column, compact spacing |
|
|
698
|
+
| Mobile Large | 640px | Expanded mobile layout |
|
|
699
|
+
| Mobile Large | 767px | Expanded mobile layout |
|
|
700
|
+
| Tablet | 991px | Multi-column grids begin |
|
|
701
|
+
| Desktop | 1280px | Full feature layout |
|
|
702
|
+
| Large Desktop | 1440px | Maximum content width |
|
|
703
|
+
|
|
704
|
+
### Token Diff — Desktop vs Mobile
|
|
705
|
+
|
|
706
|
+
| Element | Property | Desktop | Mobile |
|
|
707
|
+
|---------|----------|---------|--------|
|
|
708
|
+
| heading | font-size | `100px` | `44px` |
|
|
709
|
+
| heading | line-height | `80px` | `36.52px` |
|
|
710
|
+
| nav | display | `flex` | `none` |
|
|
711
|
+
| nav | flex-direction | `row` | `column` |
|
|
712
|
+
| nav | height | `44px` | `auto` |
|
|
713
|
+
| hero | padding | `156px 0px 0px` | `64px 0px 0px` |
|
|
714
|
+
| hero | height | `759.844px` | `682.375px` |
|
|
715
|
+
| button | font-size | `16px` | `12.8px` |
|
|
716
|
+
| button | width | `149px` | `auto` |
|
|
717
|
+
| card | width | `588px` | `183px` |
|
|
718
|
+
|
|
719
|
+
### Collapsing Strategy
|
|
720
|
+
- Headlines: 100px → 44px on mobile
|
|
721
|
+
- Navigation: flex → none on mobile
|
|
722
|
+
- Cards: multi-column → stacked vertical on mobile
|
|
723
|
+
- Footer: multi-column → stacked single column on mobile
|
|
724
|
+
|
|
725
|
+
### Touch Targets
|
|
726
|
+
- Buttons: 0px padding
|
|
727
|
+
- Navigation: adequate spacing between items
|
|
728
|
+
- Interactive elements: minimum 44px touch target recommended
|
|
729
|
+
|
|
730
|
+
### Collapsing Narrative
|
|
731
|
+
|
|
732
|
+
How the structural patterns adapt from desktop to mobile (extracted from both viewport extractions):
|
|
733
|
+
|
|
734
|
+
- **Card grid: 2-up → 1-up** — cards stack as viewport narrows, becoming a vertical list on mobile.
|
|
735
|
+
- **Footer columns collapse:** 2 columns (desktop) → 1 column (mobile).
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
## 7c. Visual Effects & Dynamic Behavior
|
|
739
|
+
|
|
740
|
+
*The live/dynamic layer beyond static CSS — reproduce these, not flat substitutes. This is often what separates a faithful clone from a wireframe.*
|
|
741
|
+
|
|
742
|
+
- **Clip-path shapes** — 1 non-rectangular cut(s).
|
|
743
|
+
- **Scroll-driven reveals** — content animates in on scroll (CSS scroll-timeline). Build fade/translate reveal-on-scroll for below-fold bands.
|
|
744
|
+
|
|
745
|
+
> **Motion fingerprint**: non-rectangular shapes (1), CSS scroll-driven animations
|
|
746
|
+
|
|
747
|
+
## 9b. Visual Tone & Photography
|
|
748
|
+
|
|
749
|
+
**Tone:** Mixed photography + illustration
|
|
750
|
+
|
|
751
|
+
A balanced mix of photographic content and vector graphics. Photos likely carry product/lifestyle context while SVG handles icons, logos, and decorative accents.
|
|
752
|
+
|
|
753
|
+
**Canonical Brand Image (OG):**
|
|
754
|
+
- https://cdn.prod.website-files.com/68499d22938ad4db077f938e/6863a9e8b5ffe52f853e01e7_opengraph-chance.webp
|
|
755
|
+
*This is the image shown when the site is shared on social media — represents the brand visual essence.*
|
|
756
|
+
|
|
757
|
+
**Hero Image (above-fold dominant visual):**
|
|
758
|
+
- Aspect: 0.72:1 (portrait / vertical)
|
|
759
|
+
- Rendered size: 1440×1987px
|
|
760
|
+
- *Use this aspect ratio + composition for your clone's hero — mimicking the proportion preserves the visual hierarchy.*
|
|
761
|
+
|
|
762
|
+
**Aspect Ratio Distribution:**
|
|
763
|
+
- Landscape (1.15–2.3): 9 (20%)
|
|
764
|
+
- Portrait (<0.87): 7 (15%)
|
|
765
|
+
- Square (0.87–1.15): 30 (65%)
|
|
766
|
+
|
|
767
|
+
**Media Format Mix:**
|
|
768
|
+
- WebP: 6 (optimized photo/illustration hybrid)
|
|
769
|
+
- PNG: 10 (logos, transparent UI elements, mockups)
|
|
770
|
+
- SVG: 5 (icons, illustrations, decorative geometry)
|
|
771
|
+
|
|
772
|
+
**Average rendered image size:** 288×312px
|
|
773
|
+
**Above-fold image count:** 4 / 46
|
|
774
|
+
|
|
775
|
+
**Decorative Patterns Detected:**
|
|
776
|
+
- 2 multi-stop linear gradients (mesh-like, 3+ color stops) — the brand leans on rich color transitions for visual depth
|
|
777
|
+
- 6 background patterns (non-photo url() backgrounds) — textures/illustrations as backdrops
|
|
778
|
+
|
|
779
|
+
**Clone instruction for decorative work:** Decorative details are subtle — don't over-style; the design relies on restraint.
|
|
780
|
+
|
|
781
|
+
**Imagery Guidance for clones:**
|
|
782
|
+
- Mix photography and illustration intentionally: photos for product/context, vectors for icons + decorative accents.
|
|
783
|
+
- Respect the format split — replacing JPGs with illustrations (or vice versa) will shift the brand tone.
|
|
784
|
+
|
|
785
|
+
## 10. Agent Prompt Guide
|
|
786
|
+
|
|
787
|
+
### Quick Reference
|
|
788
|
+
- Background: Light Gray (`#e0ddee`)
|
|
789
|
+
- Primary text: Near Black (`#181f18`)
|
|
790
|
+
- Accent: #f7ff01 (`#f7ff01`)
|
|
791
|
+
- Border: Light Gray (`#e0ddee`)
|
|
792
|
+
- Font: Bricolage Grotesque
|
|
793
|
+
- Body: 14px weight 400
|
|
794
|
+
|
|
795
|
+
### Example Component Prompts
|
|
796
|
+
- "Create a hero section on Light Gray background (#e0ddee). Headline at 100px Bricolage Grotesque weight 800, line-height 0.8, color #181f18."
|
|
797
|
+
- "Create the primary CTA button: `#f7ff01` background, `#181f18` text, 4px border-radius, 14px 28px padding, 800 weight, Bricolage Grotesque font."
|
|
798
|
+
- "Design a card on `transparent` background. Border: none. Radius: 0px. Shadow: none. Padding: 0px."
|
|
799
|
+
- "Build navigation: relative on `#e0ddee`. Bricolage Grotesque 14px weight 400 for links."
|
|
800
|
+
|
|
801
|
+
### Iteration Guide
|
|
802
|
+
1. **Canvas**: Set the light canvas to Light Gray (`#e0ddee`) — every component is composited against this exact base.
|
|
803
|
+
2. **Typography**: All type in Bricolage Grotesque, weight range 400–800. Never exceed 800 — heavier weights break the brand's tonal restraint.
|
|
804
|
+
3. **Accent**: #f7ff01 (`#f7ff01`) is the sole interactive color. On hover → Baby Blue (`#8ebdff`). Use CSS transitions, not opacity/brightness filters.
|
|
805
|
+
4. **Shape**: CTAs at `0px`, cards at `0px`. Apply border-radius from the extracted scale only — don't invent intermediate values.
|
|
806
|
+
5. **Spacing**: Use the `--ca-space-*` token scale (4px–32px). All padding, margin, and gap values are multiples from this scale — no magic numbers.
|
|
807
|
+
6. **Tokens**: Import from §11 CSS Export (`--ca-*` vars). Never hardcode hex values — always reference a token so theming remains consistent.
|
|
808
|
+
|
|
809
|
+
## 11. CSS Design Tokens Raw Export
|
|
810
|
+
|
|
811
|
+
*Copy-paste ready `:root {}` block — all values extracted directly from the live site.*
|
|
812
|
+
|
|
813
|
+
```css
|
|
814
|
+
/* Colors */
|
|
815
|
+
:root {
|
|
816
|
+
--ca-hairline: #e0ddee;
|
|
817
|
+
--ca-surface-1: #f7f5ff;
|
|
818
|
+
--ca-surface-2: transparent;
|
|
819
|
+
--ca-primary-focus: #181f18;
|
|
820
|
+
--ca-ink-subtle: #2c2f31;
|
|
821
|
+
--ca-primary: #f7ff01;
|
|
822
|
+
--ca-on-primary: #111111;
|
|
823
|
+
--ca-primary-hover: #8ebdff;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
/* Typography */
|
|
827
|
+
:root {
|
|
828
|
+
--ca-font-primary: "Bricolage Grotesque", system-ui, sans-serif;
|
|
829
|
+
--ca-text-display: 100px;
|
|
830
|
+
--ca-text-body: 14px;
|
|
831
|
+
--ca-text-caption: 24px;
|
|
832
|
+
--ca-text-button: 16px;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
/* Spacing & Radius */
|
|
836
|
+
:root {
|
|
837
|
+
--ca-space-xxs: 2px;
|
|
838
|
+
--ca-space-xs: 4px;
|
|
839
|
+
--ca-space-sm: 8px;
|
|
840
|
+
--ca-space-md: 16px;
|
|
841
|
+
--ca-space-base: 64px;
|
|
842
|
+
--ca-space-lg: 156px;
|
|
843
|
+
--ca-space-xl: 32px;
|
|
844
|
+
--ca-space-2xl: 48px;
|
|
845
|
+
--ca-space-3xl: 64px;
|
|
846
|
+
--ca-radius-none: 0px;
|
|
847
|
+
--ca-radius-xs: 4px;
|
|
848
|
+
--ca-radius-sm: 8px;
|
|
849
|
+
--ca-radius-md: 12px;
|
|
850
|
+
--ca-radius-lg: 18px;
|
|
851
|
+
--ca-radius-xl: 26px;
|
|
852
|
+
--ca-radius-full: 9999px;
|
|
853
|
+
}
|
|
854
|
+
```
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
## 13. Page Structure Skeleton
|
|
858
|
+
|
|
859
|
+
*The actual layout the source site uses. Reproduce these sections in order to match the site structure.*
|
|
860
|
+
|
|
861
|
+
```yaml
|
|
862
|
+
page-skeleton:
|
|
863
|
+
- section: hero
|
|
864
|
+
tag: div
|
|
865
|
+
classes: ["page-wrapper"]
|
|
866
|
+
height: 9945px
|
|
867
|
+
width: full-bleed
|
|
868
|
+
layout: block
|
|
869
|
+
children: 3
|
|
870
|
+
tone: dark
|
|
871
|
+
contains: chart/canvas (reproduce as live data-viz, not a flat image)
|
|
872
|
+
- section: hero
|
|
873
|
+
tag: section
|
|
874
|
+
classes: ["section_home-hero", "v2"]
|
|
875
|
+
height: 760px
|
|
876
|
+
width: full-bleed
|
|
877
|
+
layout: block
|
|
878
|
+
children: 2
|
|
879
|
+
tone: dark
|
|
880
|
+
vertical-padding: ~78px (generous)
|
|
881
|
+
padding: "156px 0px 0px"
|
|
882
|
+
- section: feature-section
|
|
883
|
+
tag: div
|
|
884
|
+
classes: ["main-wrapper", "position-relative"]
|
|
885
|
+
height: 9945px
|
|
886
|
+
width: full-bleed
|
|
887
|
+
layout: block
|
|
888
|
+
children: 11
|
|
889
|
+
tone: dark
|
|
890
|
+
vertical-padding: ~145px (airy)
|
|
891
|
+
contains: chart/canvas (reproduce as live data-viz, not a flat image)
|
|
892
|
+
- section: feature-section
|
|
893
|
+
tag: div
|
|
894
|
+
classes: ["container-large", "v2"]
|
|
895
|
+
height: 604px
|
|
896
|
+
width: 1200px
|
|
897
|
+
layout: block
|
|
898
|
+
children: 1
|
|
899
|
+
tone: dark
|
|
900
|
+
- section: feature-section
|
|
901
|
+
tag: div
|
|
902
|
+
classes: ["w-layout-grid", "v2"]
|
|
903
|
+
height: 604px
|
|
904
|
+
width: 1200px
|
|
905
|
+
layout: grid: 2-col gap=48px 32px
|
|
906
|
+
children: 3
|
|
907
|
+
tone: dark
|
|
908
|
+
- section: feature-section
|
|
909
|
+
tag: div
|
|
910
|
+
classes: ["home_hero_left-content", "v2"]
|
|
911
|
+
height: 512px
|
|
912
|
+
width: 568px
|
|
913
|
+
layout: flex-column justify=normal
|
|
914
|
+
children: 1
|
|
915
|
+
tone: dark
|
|
916
|
+
vertical-padding: ~24px
|
|
917
|
+
- section: feature-section
|
|
918
|
+
tag: div
|
|
919
|
+
classes: ["home_hero_upper-content"]
|
|
920
|
+
height: 512px
|
|
921
|
+
width: 568px
|
|
922
|
+
layout: flex-column justify=flex-start
|
|
923
|
+
children: 1
|
|
924
|
+
tone: dark
|
|
925
|
+
vertical-padding: ~24px
|
|
926
|
+
padding: "48px 0px 0px"
|
|
927
|
+
- section: card-grid
|
|
928
|
+
tag: div
|
|
929
|
+
classes: ["w-layout-layout", "home-hero_right-content", "wf-layout-layout"]
|
|
930
|
+
height: 604px
|
|
931
|
+
width: 584px
|
|
932
|
+
layout: grid: 2-col gap=24px
|
|
933
|
+
children: 3
|
|
934
|
+
tone: dark
|
|
935
|
+
- section: unknown
|
|
936
|
+
tag: div
|
|
937
|
+
classes: ["w-layout-cell", "home-hero-cell-1"]
|
|
938
|
+
height: 291px
|
|
939
|
+
width: 280px
|
|
940
|
+
layout: flex-column justify=flex-end
|
|
941
|
+
children: 1
|
|
942
|
+
tone: dark
|
|
943
|
+
- section: unknown
|
|
944
|
+
tag: div
|
|
945
|
+
classes: ["w-layout-cell", "home-hero-cell-3", "hide-tablet"]
|
|
946
|
+
height: 604px
|
|
947
|
+
width: 280px
|
|
948
|
+
layout: flex-column justify=center
|
|
949
|
+
children: 1
|
|
950
|
+
tone: dark
|
|
951
|
+
- section: unknown
|
|
952
|
+
tag: div
|
|
953
|
+
classes: ["home-hero_portrait-container"]
|
|
954
|
+
height: 274px
|
|
955
|
+
width: 280px
|
|
956
|
+
layout: block
|
|
957
|
+
children: 2
|
|
958
|
+
tone: dark
|
|
959
|
+
- section: feature-section
|
|
960
|
+
tag: div
|
|
961
|
+
height: 464px
|
|
962
|
+
width: 568px
|
|
963
|
+
layout: flex-column justify=normal
|
|
964
|
+
children: 2
|
|
965
|
+
tone: dark
|
|
966
|
+
- section: feature-section
|
|
967
|
+
tag: div
|
|
968
|
+
classes: ["home_hero_heading-content"]
|
|
969
|
+
height: 344px
|
|
970
|
+
width: 568px
|
|
971
|
+
layout: flex-column justify=normal
|
|
972
|
+
children: 2
|
|
973
|
+
tone: dark
|
|
974
|
+
- section: unknown
|
|
975
|
+
tag: div
|
|
976
|
+
classes: ["home-hero_portrait-container"]
|
|
977
|
+
height: 358px
|
|
978
|
+
width: 280px
|
|
979
|
+
layout: block
|
|
980
|
+
children: 2
|
|
981
|
+
tone: dark
|
|
982
|
+
- section: unknown
|
|
983
|
+
tag: div
|
|
984
|
+
classes: ["hero_name-container"]
|
|
985
|
+
height: 88px
|
|
986
|
+
width: 280px
|
|
987
|
+
layout: flex-column justify=flex-start
|
|
988
|
+
children: 3
|
|
989
|
+
tone: dark
|
|
990
|
+
- section: unknown
|
|
991
|
+
tag: div
|
|
992
|
+
classes: ["home-hero_portrait-container"]
|
|
993
|
+
height: 272px
|
|
994
|
+
width: 280px
|
|
995
|
+
layout: block
|
|
996
|
+
children: 2
|
|
997
|
+
tone: dark
|
|
998
|
+
- section: unknown
|
|
999
|
+
tag: div
|
|
1000
|
+
classes: ["w-layout-cell", "home-hero-cell-2"]
|
|
1001
|
+
height: 289px
|
|
1002
|
+
width: 280px
|
|
1003
|
+
layout: flex-column justify=flex-start
|
|
1004
|
+
children: 1
|
|
1005
|
+
tone: dark
|
|
1006
|
+
- section: unknown
|
|
1007
|
+
tag: div
|
|
1008
|
+
classes: ["hero_name-container"]
|
|
1009
|
+
height: 88px
|
|
1010
|
+
width: 280px
|
|
1011
|
+
layout: flex-column justify=flex-start
|
|
1012
|
+
children: 3
|
|
1013
|
+
tone: dark
|
|
1014
|
+
- section: unknown
|
|
1015
|
+
tag: div
|
|
1016
|
+
classes: ["hero_name-container"]
|
|
1017
|
+
height: 88px
|
|
1018
|
+
width: 280px
|
|
1019
|
+
layout: flex-column justify=flex-start
|
|
1020
|
+
children: 3
|
|
1021
|
+
tone: dark
|
|
1022
|
+
- section: hero
|
|
1023
|
+
tag: section
|
|
1024
|
+
classes: ["v2"]
|
|
1025
|
+
height: 967px
|
|
1026
|
+
width: full-bleed
|
|
1027
|
+
layout: block
|
|
1028
|
+
children: 1
|
|
1029
|
+
tone: dark
|
|
1030
|
+
vertical-padding: ~74px (generous)
|
|
1031
|
+
padding: "148px 0px 0px"
|
|
1032
|
+
- section: feature-section
|
|
1033
|
+
tag: div
|
|
1034
|
+
classes: ["container-large", "v2"]
|
|
1035
|
+
height: 819px
|
|
1036
|
+
width: 1200px
|
|
1037
|
+
layout: block
|
|
1038
|
+
children: 2
|
|
1039
|
+
tone: dark
|
|
1040
|
+
vertical-padding: ~56px (generous)
|
|
1041
|
+
- section: unknown
|
|
1042
|
+
tag: div
|
|
1043
|
+
classes: ["arrows_visual-wrapper", "v2"]
|
|
1044
|
+
height: 506px
|
|
1045
|
+
width: 512px
|
|
1046
|
+
layout: block
|
|
1047
|
+
children: 1
|
|
1048
|
+
tone: dark
|
|
1049
|
+
- section: feature-section
|
|
1050
|
+
tag: section
|
|
1051
|
+
classes: ["is-homepage-v2"]
|
|
1052
|
+
height: 1970px
|
|
1053
|
+
width: full-bleed
|
|
1054
|
+
layout: block
|
|
1055
|
+
children: 2
|
|
1056
|
+
bg: "rgba(247, 245, 255, 0)"
|
|
1057
|
+
vertical-padding: ~95px (generous)
|
|
1058
|
+
padding: "126.5px 0px 64px"
|
|
1059
|
+
- section: feature-section
|
|
1060
|
+
tag: div
|
|
1061
|
+
classes: ["container-large", "v2"]
|
|
1062
|
+
height: 1780px
|
|
1063
|
+
width: 1200px
|
|
1064
|
+
layout: block
|
|
1065
|
+
children: 2
|
|
1066
|
+
tone: dark
|
|
1067
|
+
- section: feature-section
|
|
1068
|
+
tag: div
|
|
1069
|
+
height: 664px
|
|
1070
|
+
width: 1200px
|
|
1071
|
+
layout: block
|
|
1072
|
+
children: 1
|
|
1073
|
+
tone: dark
|
|
1074
|
+
vertical-padding: ~32px
|
|
1075
|
+
```
|
|
1076
|
+
|
|
1077
|
+
**Agent rule**: rebuild sections in this order (sorted by vertical position). Match the layout primitive (grid N-col / flex direction / block).
|
|
1078
|
+
|
|
1079
|
+
|
|
1080
|
+
## 14. Copy Library (Real Content from Source)
|
|
1081
|
+
|
|
1082
|
+
*Actual text content extracted from the live page. Use these strings verbatim when reproducing the site — they carry the brand voice.*
|
|
1083
|
+
|
|
1084
|
+
```yaml
|
|
1085
|
+
copy:
|
|
1086
|
+
section-headings:
|
|
1087
|
+
- "CHANCE CHOISI PAR GOOGLE.ORG"
|
|
1088
|
+
- "DÉFINISSEZ LE PROJET PRO
|
|
1089
|
+
QUI VOUS CORRESPOND VRAIMENT EN 3 MOIS !"
|
|
1090
|
+
- "NOTRE MÉTHODE UNIQUE
|
|
1091
|
+
LE TRÈFLE™ DE CHANCE"
|
|
1092
|
+
- "L'AMOUR PRO"
|
|
1093
|
+
- "LES MÉDIAS EN PARLENT"
|
|
1094
|
+
sub-headings:
|
|
1095
|
+
- "CLARIFIER MA RELATION AU TRAVAIL"
|
|
1096
|
+
- "EXPLORER"
|
|
1097
|
+
- "VOUS VOUS POSEZ DES QUESTIONS SUR VOTRE TRAVAIL ?"
|
|
1098
|
+
- "BILAN CHANCE™"
|
|
1099
|
+
ctas:
|
|
1100
|
+
- "Qui sommes-nous ?"
|
|
1101
|
+
- "Se connecter"
|
|
1102
|
+
- "En savoir plus"
|
|
1103
|
+
- "Voir tous les témoignages"
|
|
1104
|
+
- "Faites le test de l’Amour Pro"
|
|
1105
|
+
navigation:
|
|
1106
|
+
- "Faire Chance"
|
|
1107
|
+
- "Trouver votre travail"
|
|
1108
|
+
- "Rejoindre le collectif"
|
|
1109
|
+
- "Partenariat Google.org"
|
|
1110
|
+
- "Le collectif Chance"
|
|
1111
|
+
- "Baromètre Amour Pro 2026"
|
|
1112
|
+
- "Entreprise"
|
|
1113
|
+
- "Se connecter"
|
|
1114
|
+
```
|
|
1115
|
+
|
|
1116
|
+
**Agent rule**: reuse these exact strings when generating UI. Do NOT translate or rephrase — brand voice is preserved through the original wording.
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
## 15. Asset Inventory (Image Roles & Ratios)
|
|
1120
|
+
|
|
1121
|
+
*Image inventory classified by role and aspect ratio. When reproducing the site, allocate this number of assets per role.*
|
|
1122
|
+
|
|
1123
|
+
```yaml
|
|
1124
|
+
assets:
|
|
1125
|
+
product:
|
|
1126
|
+
count: 5
|
|
1127
|
+
avg-ratio: 1.09
|
|
1128
|
+
common-aspect: "~1:1 square"
|
|
1129
|
+
thumbnail:
|
|
1130
|
+
count: 23
|
|
1131
|
+
avg-ratio: 1.00
|
|
1132
|
+
common-aspect: "~1:1 square"
|
|
1133
|
+
icon:
|
|
1134
|
+
count: 4
|
|
1135
|
+
avg-ratio: 1.29
|
|
1136
|
+
common-aspect: "~1:1 square"
|
|
1137
|
+
```
|
|
1138
|
+
|
|
1139
|
+
**Agent rule**: when generating placeholder images, match these counts and aspect ratios. Use neutral placeholder backgrounds for `product` (e.g. `#f5f5f5`), full-color photography hints for `hero` and `editorial`.
|
|
1140
|
+
|
|
1141
|
+
|
|
1142
|
+
## 16. Component HTML Templates
|
|
1143
|
+
|
|
1144
|
+
*Suggested HTML markup for reproducing the key components — based on what was detected in the source DOM.*
|
|
1145
|
+
|
|
1146
|
+
### Button (primary action)
|
|
1147
|
+
```html
|
|
1148
|
+
<button class="btn btn-primary">
|
|
1149
|
+
Qui sommes-nous ?
|
|
1150
|
+
</button>
|
|
1151
|
+
```
|
|
1152
|
+
_Source pattern detected: padding `0px` · radius `0px` · weight `400`_
|
|
1153
|
+
|
|
1154
|
+
### Generic Card
|
|
1155
|
+
```html
|
|
1156
|
+
<div class="card">
|
|
1157
|
+
<!-- content -->
|
|
1158
|
+
</div>
|
|
1159
|
+
```
|
|
1160
|
+
_Source pattern detected: padding `0px` · radius `0px` · shadow `none`_
|
|
1161
|
+
|
|
1162
|
+
**Agent rule**: use these markup skeletons as the structural baseline. Apply tokens from §2-3 for visual styling.
|
|
1163
|
+
|
|
1164
|
+
|
|
1165
|
+
## 12. Known Extraction Gaps
|
|
1166
|
+
|
|
1167
|
+
*Auto-detected limitations of this extraction — understand before building:*
|
|
1168
|
+
|
|
1169
|
+
- **Sparse component extraction** — fewer than 5 component types detected. Highly dynamic sections (modals, datepickers, carousels) require interaction to render and are not captured in a static pass.
|
|
1170
|
+
|
|
1171
|
+
|
|
1172
|
+
---
|
|
1173
|
+
## Extraction Completeness: 86/100 (B)
|
|
1174
|
+
|
|
1175
|
+
| Category | Score | Max | Detail |
|
|
1176
|
+
|----------|-------|-----|--------|
|
|
1177
|
+
| Colors & Palette | 25 | 25 | 20 named colors |
|
|
1178
|
+
| Typography | 20 | 20 | 9 roles defined |
|
|
1179
|
+
| Components | 16 | 20 | 4 specs extracted |
|
|
1180
|
+
| Motion & Interaction | 12 | 15 | Keyframes present |
|
|
1181
|
+
| CSS Custom Properties | 3 | 10 | 58 vars |
|
|
1182
|
+
| Responsive Breakpoints | 5 | 5 | 6 breakpoints |
|
|
1183
|
+
| Variable Fonts | 5 | 5 | WDTH, OPSZ, WGHT axes |
|
|
1184
|
+
|
|
1185
|
+
## 12. Known Gaps & Confidence
|
|
1186
|
+
|
|
1187
|
+
Explicit list of what this extraction could NOT capture. Agents should not invent values for these — either skip the feature or use the documented baseline + heuristic fallback.
|
|
1188
|
+
|
|
1189
|
+
| Category | What's missing | Fallback strategy |
|
|
1190
|
+
|----------|----------------|-------------------|
|
|
1191
|
+
| **Form inputs** | No text input fields detected on this page | Use the documented border-radius + accent border on focus; 12-16px padding inside |
|
|
1192
|
+
|
|
1193
|
+
### Per-section confidence
|
|
1194
|
+
|
|
1195
|
+
| Section | Confidence | Reason |
|
|
1196
|
+
|---------|------------|--------|
|
|
1197
|
+
| §1 Visual Theme | High | Body bg extracted via getComputedStyle() |
|
|
1198
|
+
| §2 Colors | High | 58 CSS vars (semantic naming requires ≥20 for high) |
|
|
1199
|
+
| §3 Typography | High | 9 typography roles inferred |
|
|
1200
|
+
| §4 Components | Medium | 4 component variants captured |
|
|
1201
|
+
| §7 Motion | High | Keyframes + transitions |
|
|
1202
|
+
| §8 Do's/Don'ts | High | 24 rules generated; design-decisions.json has evidence per rule |
|
|
1203
|
+
| §9 Responsive | High | 6 breakpoints detected |
|
|
1204
|
+
| §9b Photography | High | 46 images, hero present |
|
|
1205
|
+
|
|
1206
|
+
---
|
|
1207
|
+
*Generated by Prism — automated Playwright extraction + design analysis.*
|
|
1208
|
+
*Source: https://www.chance.co | 2026-05-31T05:54:13.031Z*
|
|
1209
|
+
*Values extracted via getComputedStyle() (rendered) + CSS custom properties (tokens, marked `(token)`). Token-only values may not be painted — verify against the live site before shipping.*
|