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.
Files changed (90) hide show
  1. package/CHANGELOG.md +292 -0
  2. package/LICENSE +21 -0
  3. package/README.md +203 -0
  4. package/bin/clone-architect.mjs +476 -0
  5. package/bin/prism.mjs +467 -0
  6. package/catalog/index.json +1155 -0
  7. package/extractions/airbnb.com/DESIGN.md +1068 -0
  8. package/extractions/airbnb.com/tokens.json +507 -0
  9. package/extractions/attio.com/DESIGN.md +1295 -0
  10. package/extractions/attio.com/tokens.json +438 -0
  11. package/extractions/auroxdashboard.com/DESIGN.md +724 -0
  12. package/extractions/auroxdashboard.com/tokens.json +195 -0
  13. package/extractions/careerexplorer.com/DESIGN.md +1178 -0
  14. package/extractions/careerexplorer.com/tokens.json +141 -0
  15. package/extractions/chance.co/DESIGN.md +1209 -0
  16. package/extractions/chance.co/tokens.json +160 -0
  17. package/extractions/choisis-ton-avenir.com/DESIGN.md +1265 -0
  18. package/extractions/choisis-ton-avenir.com/tokens.json +227 -0
  19. package/extractions/example.com/DESIGN.md +436 -0
  20. package/extractions/example.com/tokens.json +91 -0
  21. package/extractions/getdesign.md/DESIGN.md +1009 -0
  22. package/extractions/getdesign.md/tokens.json +219 -0
  23. package/extractions/github.com/DESIGN.md +1130 -0
  24. package/extractions/github.com/tokens.json +2092 -0
  25. package/extractions/hello-charly.com/DESIGN.md +1146 -0
  26. package/extractions/hello-charly.com/tokens.json +322 -0
  27. package/extractions/hyperliquid.xyz/DESIGN.md +779 -0
  28. package/extractions/hyperliquid.xyz/tokens.json +598 -0
  29. package/extractions/instagram.com/DESIGN.md +996 -0
  30. package/extractions/instagram.com/tokens.json +1240 -0
  31. package/extractions/jobirl.com/DESIGN.md +1160 -0
  32. package/extractions/jobirl.com/tokens.json +139 -0
  33. package/extractions/life360.com/DESIGN.md +1133 -0
  34. package/extractions/life360.com/tokens.json +491 -0
  35. package/extractions/lifesum.com/DESIGN.md +965 -0
  36. package/extractions/lifesum.com/tokens.json +170 -0
  37. package/extractions/linear.app/DESIGN.md +1301 -0
  38. package/extractions/linear.app/tokens.json +732 -0
  39. package/extractions/mavoie.org/DESIGN.md +1148 -0
  40. package/extractions/mavoie.org/tokens.json +128 -0
  41. package/extractions/miro.com/DESIGN.md +1237 -0
  42. package/extractions/miro.com/tokens.json +401 -0
  43. package/extractions/notion.so/DESIGN.md +1319 -0
  44. package/extractions/notion.so/tokens.json +906 -0
  45. package/extractions/onetonline.org/DESIGN.md +909 -0
  46. package/extractions/onetonline.org/tokens.json +280 -0
  47. package/extractions/posthog.com/DESIGN.md +1024 -0
  48. package/extractions/posthog.com/tokens.json +197 -0
  49. package/extractions/revolut.com/DESIGN.md +1080 -0
  50. package/extractions/revolut.com/tokens.json +401 -0
  51. package/extractions/stripe.com/DESIGN.md +1272 -0
  52. package/extractions/stripe.com/tokens.json +794 -0
  53. package/extractions/switchcollective.com/DESIGN.md +1040 -0
  54. package/extractions/switchcollective.com/tokens.json +98 -0
  55. package/extractions/truity.com/DESIGN.md +970 -0
  56. package/extractions/truity.com/tokens.json +166 -0
  57. package/extractions/uniquekicks.be/DESIGN.md +1171 -0
  58. package/extractions/uniquekicks.be/tokens.json +237 -0
  59. package/package.json +122 -0
  60. package/scripts/analyze.ts +281 -0
  61. package/scripts/bank-register.ts +379 -0
  62. package/scripts/bank.ts +374 -0
  63. package/scripts/browser-stealth.ts +189 -0
  64. package/scripts/clone.ts +198 -0
  65. package/scripts/compare-vs-gd-final.ts +273 -0
  66. package/scripts/compare-vs-gd.ts +269 -0
  67. package/scripts/compare.ts +405 -0
  68. package/scripts/deploy-site.ts +181 -0
  69. package/scripts/diff-snapshots.ts +340 -0
  70. package/scripts/enrich-catalog.ts +212 -0
  71. package/scripts/extract.ts +2038 -0
  72. package/scripts/extractors/advanced.ts +524 -0
  73. package/scripts/extractors/widgets.ts +711 -0
  74. package/scripts/generate-design-md.ts +5775 -0
  75. package/scripts/generate-final-pdf.ts +274 -0
  76. package/scripts/generate-og-image.ts +87 -0
  77. package/scripts/generate-showcase.ts +1588 -0
  78. package/scripts/generate-site.ts +847 -0
  79. package/scripts/mass-extract.sh +91 -0
  80. package/scripts/post-process-all.sh +55 -0
  81. package/scripts/regen-catalog.ts +203 -0
  82. package/scripts/shared/cache.ts +149 -0
  83. package/scripts/shared/css-helpers.ts +263 -0
  84. package/scripts/shared/logger.ts +57 -0
  85. package/scripts/shared/named-colors.ts +355 -0
  86. package/scripts/shared/types.ts +220 -0
  87. package/scripts/sync-catalog.ts +105 -0
  88. package/scripts/tokenize.ts +988 -0
  89. package/templates/layout-template.md +52 -0
  90. package/templates/tokens-template.json +34 -0
@@ -0,0 +1,1272 @@
1
+ ---
2
+ version: alpha
3
+ name: stripe.com
4
+ description: "Light product system built on #ffffff with #533afd as the primary CTA accent. Type anchored in sohne-var at 40px / weight 300. Extracted automatically from https://stripe.com/ — rendered styles via getComputedStyle() + CSS custom properties (token-only values may not be painted)."
5
+ narrative: |
6
+ stripe.com is built on a pure-white canvas (rgb(255, 255, 255)).
7
+ The system uses rgb(83, 58, 253) as the high-saturation accent for primary actions.
8
+ Crisp CTAs (4px radius) reinforce a precise, technical aesthetic alongside sohne-var as the primary typeface.
9
+ Sohne-var is paired with SF Pro Display for secondary roles.
10
+ A layered elevation system (10 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: "#ffffff"
15
+ surface-1: "rgba(255, 255, 255, 0.65)"
16
+ surface-2: "#e5edf5"
17
+ ink-muted: "#26251e"
18
+ ink-subtle: "#031323"
19
+ primary: "#533afd"
20
+ on-primary: "#ffffff"
21
+ primary-hover: "#2e2b8c"
22
+ hairline: "#8f98a9"
23
+ primary-focus: "#533afd"
24
+ semantic-error: "#d8351e"
25
+ semantic-success: "#00b261"
26
+
27
+ typography:
28
+ display-xl:
29
+ fontFamily: "sohne-var"
30
+ fontSize: 56px
31
+ fontWeight: 300
32
+ lineHeight: 1.03
33
+ letterSpacing: -1.4px
34
+ display-lg:
35
+ fontFamily: "sohne-var"
36
+ fontSize: 40px
37
+ fontWeight: 300
38
+ lineHeight: 1.15
39
+ letterSpacing: -0.8px
40
+ display-md:
41
+ fontFamily: "sohne-var"
42
+ fontSize: 26px
43
+ fontWeight: 300
44
+ lineHeight: 1.12
45
+ letterSpacing: -0.26px
46
+ headline:
47
+ fontFamily: "sohne-var"
48
+ fontSize: 16px
49
+ fontWeight: 400
50
+ lineHeight: 1.4
51
+ letterSpacing: 0
52
+ caption-sm:
53
+ fontFamily: "sohne-var"
54
+ fontSize: 10px
55
+ fontWeight: 300
56
+ lineHeight: 1.5
57
+ letterSpacing: 0.1px
58
+ button:
59
+ fontFamily: "sohne-var"
60
+ fontSize: 14px
61
+ fontWeight: 400
62
+ lineHeight: 1
63
+ letterSpacing: 0
64
+
65
+ rounded:
66
+ none: 0px
67
+ xs: 4px
68
+ sm: 8px
69
+ md: 16px
70
+ lg: 16px
71
+ xl: 16px
72
+ xxl: 24px
73
+ pill: 9999px
74
+
75
+ spacing:
76
+ xxs: 2px
77
+ xs: 4px
78
+ sm: 8px
79
+ md: 12px
80
+ lg: 28px
81
+ xl: 32px
82
+ xxl: 64px
83
+ section: 80px
84
+
85
+ components:
86
+ button-ghost:
87
+ backgroundColor: "transparent"
88
+ textColor: "#061b31"
89
+ typography: "{typography.button}"
90
+ rounded: "{rounded.xs}"
91
+ padding: 12px 0px
92
+ button-outline:
93
+ backgroundColor: "transparent"
94
+ textColor: "{colors.primary-focus}"
95
+ typography: "{typography.button}"
96
+ rounded: "{rounded.xs}"
97
+ padding: 11.5px 20px 12.5px
98
+ button-primary-brand:
99
+ backgroundColor: "{colors.primary-focus}"
100
+ textColor: "{colors.on-primary}"
101
+ typography: "{typography.button}"
102
+ rounded: "{rounded.xs}"
103
+ padding: 15.5px 20px 16.5px
104
+ pricing-card-default-tier:
105
+ backgroundColor: "transparent"
106
+ textColor: "#000000"
107
+ typography: "{typography.headline}"
108
+ rounded: "{rounded.none}"
109
+ padding: 0px 0px 4px
110
+ cta-banner-full-width-cta:
111
+ backgroundColor: "transparent"
112
+ textColor: "{colors.primary-focus}"
113
+ typography: "{typography.button}"
114
+ rounded: "{rounded.xs}"
115
+ padding: 11.5px 20px 12.5px
116
+ testimonial-quote-card:
117
+ backgroundColor: "transparent"
118
+ textColor: "{colors.primary-focus}"
119
+ typography: "{typography.headline}"
120
+ rounded: "{rounded.xs}"
121
+ status-badge-neutral-light:
122
+ backgroundColor: "{colors.on-primary}"
123
+ textColor: "#000000"
124
+ typography: "{typography.caption-sm}"
125
+ rounded: "{rounded.xs}"
126
+ padding: 0px 6px
127
+
128
+ extracted_at: "2026-06-07T02:28:57.997Z"
129
+ completeness: 82
130
+ scoreVersion: "v2"
131
+
132
+ ---
133
+
134
+ # Design System — stripe.com
135
+ > Extracted automatically by Prism from https://stripe.com
136
+ > Date: 2026-06-07
137
+ > Viewport: Desktop 1440x900 + Mobile 390x844
138
+ > 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).
139
+
140
+
141
+ ## 0. Design DNA
142
+
143
+ **Density**: moderate  |  **Motion**: subtle  |  **Weight**: medium  |  **Aesthetic**: product-neutral
144
+
145
+ | Dimension | Value | Signal |
146
+ |---|---|---|
147
+ | Canvas | neutral | `#ffffff` |
148
+ | Type posture | sans-led (sohne-var) | display type |
149
+ | Color assertion | dual-accent | #533afd |
150
+ | Whitespace | moderate | section rhythm 48px |
151
+ | Interaction | subtle | 0 keyframes, 23 transitions |
152
+ | Radius language | 8px-rounded | from token scale |
153
+
154
+ **Prism fingerprint**: `neutral-canvas · sans-display · dual-accent · 8px-rounded · subtle-motion`
155
+
156
+ > **🤖 TL;DR for AI agents** (read this first — saves you scanning the full doc):
157
+ >
158
+ > - **Canvas**: `rgb(255, 255, 255)` is the page background. Every component composits against this.
159
+ > - **Accent**: `rgb(83, 58, 253)` for primary CTAs ONLY. Never decorative.
160
+ > - **Body type**: 16px (token: `typography.body`). Default for ALL text not in a heading role.
161
+ > - **Section rhythm**: 48px between major bands. Card padding: 28px.
162
+ > - **Default radius**: 8px on buttons/inputs. Pills (`9999px`) only for icon-buttons or status chips.
163
+ >
164
+ > **Before generating UI**: import this DESIGN.md, scan §2 (Color Palette) + §4 (Components) + §10 (Agent Guide). Skip §11–12 unless extending.
165
+
166
+ ## 1. Visual Theme & Atmosphere
167
+
168
+ stripe.com uses a pure-white canvas (`#ffffff`), letting typography, color and imagery carry the visual weight.
169
+
170
+ Typography is anchored in **sohne-var**, deployed with OpenType features enabled globally (`"ss01"`). These aren't decorative — they're load-bearing: without them, the typeface reverts to its generic state and the design loses its specific texture. Headlines run at a remarkably light weight (300) — restraint over assertion, creating an editorial calm that invites reading rather than demanding it. Negative letter-spacing at display sizes (-0.8px at 40px) compresses headlines into engineered blocks, dense and precise.
171
+
172
+ Body text reads in Pure Black (`#000000`) (contrast ratio 21.0:1, well above WCAG AA). **Deep Purple** (`#533afd`) 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 (10 distinct) — each combines several blurred layers at varying offsets to build a clear front-to-back hierarchy.
173
+ Motion design uses smooth easing curves for polished state transitions.
174
+
175
+ **Key Characteristics:**
176
+ - Background: Pure White (`#ffffff`)
177
+ - Primary typeface: sohne-var
178
+ - Accent: Deep Purple (`#533afd`)
179
+ - Display: 40px weight 300, letter-spacing -0.8px
180
+ - Shadow system: 10 distinct elevation levels
181
+ - Custom fonts loaded: sohne-var, SourceCodePro
182
+
183
+ ## 2. Color Palette & Roles
184
+
185
+ ### Background & Surface
186
+ - **Action** (`#ffffff`): Page background (primary)
187
+ - **Action** (`#e5edf5`): Surface / elevated background
188
+ - **Surface** (`#f8fafd`): Surface / elevated background
189
+ - **Ghost White** (`#f5f5ff`): Surface / elevated background
190
+ - **Soft Pink** (`#ffe0d1`): Surface / elevated background
191
+
192
+ ### Text & Content
193
+ - **Pure Black** (`#000000`): Primary body text
194
+ - **Deep Navy** (`#031323`): Secondary text
195
+ - **Text** (`#061b31`): Secondary text
196
+ - **Translucent #000eff (50%)** (`rgba(0, 14, 255, 0.5)`): Secondary text
197
+ - **#2d2564** (`#2d2564`): Secondary text
198
+
199
+ ### Accent & Interactive
200
+ - **Accent Gradient Color Stop 1** (`#bdb4ff`): Accent / interactive (CSS var)
201
+ - **Accent Gradient Color Stop 2** (`#643afd`): Accent / interactive (CSS var)
202
+ - **Accent Gradient Color Stop 3** (`#533afd`): Accent / interactive (CSS var)
203
+ - **Text** (`#64748d`): Interactive / accent
204
+ - **#81b81a** (`#81b81a`): Interactive / accent
205
+ - **Action** (`#b9b9f9`): Interactive / accent
206
+ - **Ring Blue** (`#4285f4`): Interactive / accent
207
+
208
+ ### Border & Divider
209
+ - **#d6d5d2** (`#d6d5d2`): Borders / dividers
210
+ - **Action** (`#d4dee9`): Borders / dividers
211
+ - **Silver** (`#d4d4d4`): Borders / dividers
212
+ - **Accent** (`#e2e4ff`): Borders / dividers
213
+ - **Light Gray** (`#e3ecf7`): Borders / dividers
214
+
215
+ ### Full Extracted Palette
216
+ **115 colors rendered on the page** + **72** more declared in design tokens (CSS custom properties — not necessarily painted). (22 categorized above + 165 additional below.)
217
+ Rendered values are read via `getComputedStyle()`; token values come from CSS variable declarations. Third-party logo colors are filtered out.
218
+
219
+ - `#ff3f52` — Warm Rose
220
+ - `#171d27` — Near Black
221
+ - `#ff6201` — Bright Orange
222
+ - `#ffd700` — Gold
223
+ - `#ffaf00` — Amber
224
+ - `#ff8205` — #ff8205
225
+ - `#fa500f` — Bright Orange
226
+ - `#e10500` — Red
227
+ - `#8f98a9` — Cool Gray
228
+ - `#1a171b` — Near Black
229
+ - `#fa5022` — Bright Orange
230
+ - `#0052ff` — #0052ff
231
+ - `#aacccc` — Light Blue
232
+ - `#181818` — Near Black
233
+ - `#0e0e0e` — Jet Black
234
+ - `#010202` — Pure Black
235
+ - `#72716d` — Stone
236
+ - `#55544f` — Slate
237
+ - `#43413c` — Dark Gray
238
+ - `#26251e` — Warm Brown
239
+ - `#1a2c44` — Navy Blue
240
+ - `#273951` — Dark Gray
241
+ - `#50617a` — Text
242
+ - `#ff6118` — Bright Orange
243
+ - `#667691` — Slate Gray
244
+ - `#00d66f` — #00d66f
245
+ - `#f6f9fc` — Ghost White
246
+ - `#047ab1` — #047ab1
247
+ - `#d42d06` — M Tricolor Red
248
+ - `#67b637` — #67b637
249
+ - `#3c4f69` — Slate
250
+ - `#ffa8cd` — Pink
251
+ - *…+133 more in `raw-css.json` (`desktop.allColors`).*
252
+
253
+ ### CSS Custom Properties (Design Tokens)
254
+
255
+ **Primary Brand Color**
256
+ - `--hds-color-accent-border-solid`: `#533afd`
257
+ - `--hds-color-accentColorMode-ruby-icon-solid`: `#ea2261`
258
+ - `--hds-color-accentColorMode-magenta-surface-subduedAlt`: `#ffe6f5`
259
+ - `--hds-color-accentColorMode-magenta-icon-gradientMiddle`: `#f96bee`
260
+
261
+ **Shadow Token**
262
+ - `--hds-shadow-sm-top-offset-y`: `5px`
263
+ - `--hds-shadow-sm-bottom-offset-y`: `2px`
264
+ - `--hds-shadow-xs-top-blur`: `10px`
265
+ - `--hds-color-shadow-sm-top`: `#00377014`
266
+
267
+ **Spacing Token**
268
+ - `--navigation-padding-outer`: `8px`
269
+ - `--hds-space-core-1900`: `152px`
270
+ - `--hds-space-core-300`: `24px`
271
+ - `--hds-space-core-250`: `20px`
272
+
273
+ **Font Family Token**
274
+ - `--hds-font-family`: `"sohne-var","SF Pro Display",sans-serif`
275
+ - `--hds-font-family-code`: `"SourceCodePro","SFMono-Regular",monospace`
276
+
277
+ **Motion Token**
278
+ - `--navigation-duration-slow`: `300ms`
279
+ - `--navigation-duration`: `240ms`
280
+ - `--navigation-easing`: `cubic-bezier(0.45,0.05,0.55,0.95)`
281
+
282
+ **Background**
283
+ - `--hds-color-surface-border-quiet`: `#e5edf5`
284
+ - `--hds-color-surface-bg-subduedAdaptive`: `#1658bc08`
285
+ - `--hds-color-surface-bg-subdued`: `#f8fafd`
286
+ - `--hds-color-surface-bg-quiet`: `#fff`
287
+
288
+ **Text Color**
289
+ - `--hds-color-text-quiet`: `#7d8ba4`
290
+ - `--hds-color-text-soft`: `#50617a`
291
+ - `--hds-color-text-solid`: `#061b31`
292
+ - `--hds-color-text-subdued`: `#64748d`
293
+
294
+ **Font Weight Token**
295
+ - `--hds-font-weight-bold`: `400`
296
+ - `--hds-font-weight-normal`: `300`
297
+
298
+ **Border**
299
+ - `--hds-canary-color-border-focus`: `#635bff`
300
+
301
+ **Border Radius Token**
302
+ - `--navigation-border-radius`: `6px`
303
+
304
+ **Other tokens**
305
+ - `--hds-color-core-neutral-975`: `#0d253d`
306
+ - `--hds-font-input-text-md-lineHeight`: `1.3`
307
+ - `--hds-color-util-brand-900`: `#1c1e54`
308
+ - `--hds-color-action-bg-subduedHover`: `#b9b9f9`
309
+ - `--hds-color-input-text-label`: `#273951`
310
+ - `--hds-color-input-text-selected`: `#273951`
311
+ - `--hds-color-input-text-popover`: `#273951`
312
+ - `--hds-color-button-ui-iconHover`: `#2e2b8c`
313
+
314
+ ## 3. Typography Rules
315
+
316
+ ### Font Families
317
+ - **Primary**: `sohne-var`
318
+ - **Secondary**: `SourceCodePro`
319
+
320
+ ### Custom Fonts Loaded
321
+ - **sohne-var** weight 1 1000 (normal)
322
+ - **SourceCodePro** weight 500 (normal)
323
+
324
+ ### Typography Hierarchy
325
+
326
+ | Role | Font | Size | Weight | Line Height | Letter Spacing | Notes |
327
+ |------|------|------|--------|-------------|----------------|-------|
328
+ | Display Hero | sohne-var | 56px | 300 | 1.03 | -1.4px | Main headline (h2) |
329
+ | Section Heading | sohne-var | 40px | 300 | 1.15 | -0.8px | Section titles (h1) |
330
+ | Sub-heading | sohne-var | 26px | 300 | 1.12 | -0.26px | Third-level heading (h3) |
331
+ | Label Heading | sohne-var | 16px | 400 | 1.4 | normal | Small heading (H4) |
332
+ | Button | sohne-var | 14px | 400 | 1 | normal | Button label (14px) |
333
+ | Tiny / Micro | sohne-var | 10px | 300 | 1.5 | 0.1px | small text (10px) |
334
+ | Tiny / Micro | sohne-var | 10px | 400 | 1.15 | 0.1px | small text (10px) |
335
+
336
+ ### Font Weight Scale
337
+
338
+ CSS custom properties define 2 explicit weight steps:
339
+ - `--hds-font-weight-normal`: `300` — Light
340
+ - `--hds-font-weight-bold`: `400` — Regular
341
+
342
+ ### Full Font Size Scale
343
+
344
+ Sizes detected in the design (descending): `56px`, `48px`, `40px`, `34px`, `32px`, `26px`, `22px`, `20px`, `18px`, `16px`, `15px`, `14px`, `13px`, `12px`, `11px`, `10.50px`, `10px`, `9px`, `8px`
345
+
346
+ > 13 size(s) detected outside the sampled hierarchy (48px, 34px, 32px, 22px, 20px, 18px, 15px, 13px, 12px, 11px, 10.5px, 9px, 8px). These appear on elements not in the sampled set — likely additional display sizes, marketing-section overrides, or third-party-widget styles.
347
+
348
+ ### OpenType & Variable Font Features
349
+
350
+ The typography uses these OpenType features intentionally — this is a sophisticated type system, not a default fallback:
351
+
352
+ - **tabular figures** (`tnum`) — numbers align vertically, essential for pricing tables and dashboards
353
+ - **stylistic sets** (`ss0X`) — alternate letterforms enabled (often for brand-specific glyph variants)
354
+
355
+ **Clone instruction:** Enable these in your CSS:
356
+ ```css
357
+ body {
358
+ font-feature-settings: "ss01", "tnum";
359
+ }
360
+ ```
361
+
362
+ ## 4. Component Stylings
363
+
364
+ ### Buttons
365
+
366
+ **Ghost**
367
+ - Background: `transparent`
368
+ - Text: `#061b31`
369
+ - Padding: 12px 0px
370
+ - Radius: 4px
371
+ - Font: 14px weight 400
372
+ - Use: Subtle action, toolbar, nav button
373
+ - Focus: outline: `rgb(83, 58, 253) solid 2px`
374
+
375
+ **Outline**
376
+ - Background: `transparent`
377
+ - Text: `#533afd` `{colors.primary-focus}`
378
+ - Padding: 11.5px 20px 12.5px
379
+ - Radius: 4px
380
+ - Border: 1px solid rgb(255, 255, 255)
381
+ - Font: 14px weight 400
382
+ - Use: Secondary action with border
383
+ - Focus: outline: `rgb(83, 58, 253) solid 2px`
384
+
385
+ **Primary Brand**
386
+ - Background: `#533afd` `{colors.primary-focus}`
387
+ - Text: `#ffffff` `{colors.on-primary}`
388
+ - Padding: 15.5px 20px 16.5px
389
+ - Radius: 4px
390
+ - Font: 14px weight 400
391
+ - Use: Primary CTA / brand action
392
+ - Focus: outline: `rgb(83, 58, 253) solid 2px`
393
+
394
+ **Primary Brand**
395
+ - Background: `#533afd` `{colors.primary-focus}`
396
+ - Text: `#ffffff` `{colors.on-primary}`
397
+ - Padding: 15.5px 24px 16.5px
398
+ - Radius: 4px
399
+ - Font: 16px weight 400
400
+ - Use: Primary CTA / brand action
401
+ - Focus: outline: `rgb(83, 58, 253) solid 2px`
402
+
403
+ **Subtle**
404
+ - Background: `rgba(255, 255, 255, 0.65)` `{colors.on-primary}`
405
+ - Text: `#533afd` `{colors.primary-focus}`
406
+ - Padding: 14.5px 24px 15.5px
407
+ - Radius: 4px
408
+ - Border: 1px solid rgb(185, 185, 249)
409
+ - Font: 16px weight 400
410
+ - Use: Quiet action against page bg
411
+ - Focus: outline: `rgb(83, 58, 253) solid 2px`
412
+
413
+ **Light / Invert**
414
+ - Background: `#ffffff` `{colors.on-primary}`
415
+ - Text: `#533afd` `{colors.primary-focus}`
416
+ - Padding: 15.5px 24px 16.5px
417
+ - Radius: 4px
418
+ - Font: 16px weight 400
419
+ - Use: Bright CTA on dark sections
420
+ - Focus: outline: `rgb(83, 58, 253) solid 2px`
421
+
422
+ ### Pricing Cards
423
+
424
+ **Default Tier**
425
+ - Background: `transparent`
426
+ - Text: `#000000`
427
+ - Padding: 0px 0px 4px
428
+ - Radius: 0px
429
+ - Font: 16px weight 400
430
+ - Use: Subscription tier card
431
+
432
+ ### CTA Banners
433
+
434
+ **Full-width CTA**
435
+ - Background: `transparent`
436
+ - Text: `#533afd` `{colors.primary-focus}`
437
+ - Padding: 11.5px 20px 12.5px
438
+ - Radius: 4px
439
+ - Font: 14px weight 400
440
+ - Use: Full-width conversion strip with headline + button
441
+ - Focus: outline: `rgb(83, 58, 253) solid 2px`
442
+
443
+ ### Testimonials
444
+
445
+ **Quote Card**
446
+ - Background: `transparent`
447
+ - Text: `#533afd` `{colors.primary-focus}`
448
+ - Padding: 0px
449
+ - Radius: 4px
450
+ - Border: 1px solid rgb(214, 217, 252)
451
+ - Font: 16px weight 400
452
+ - Use: Customer quote with avatar + company attribution
453
+
454
+ ### Status Badges
455
+
456
+ **Neutral Light**
457
+ - Background: `#ffffff` `{colors.on-primary}`
458
+ - Text: `#000000`
459
+ - Padding: 0px 6px
460
+ - Radius: 4px
461
+ - Font: 11px weight 400
462
+ - Use: Status indicator, label, pill
463
+
464
+
465
+ ## 4b. Component Behaviors (State Matrix)
466
+
467
+ ### Interaction State Narrative
468
+
469
+ - **Link**:
470
+ - **hover:** text #533afd → #2e2b8c, border changes
471
+ - **NavLink**:
472
+ - **hover:** text #533afd → #2e2b8c, border changes
473
+ - **FooterLink**:
474
+ - **hover:** text #50617a → #34475e, border changes
475
+
476
+ *State transitions extracted via Playwright simulation — exact values in the YAML matrix below.*
477
+
478
+ ```yaml
479
+ component-behaviors:
480
+ button:
481
+ default:
482
+ bg: "rgba(0, 0, 0, 0)"
483
+ fg: "rgb(6, 27, 49)"
484
+ focus:
485
+ bg: "rgba(0, 0, 0, 0)"
486
+ fg: "rgb(6, 27, 49)"
487
+ link:
488
+ default:
489
+ bg: "rgba(0, 0, 0, 0)"
490
+ fg: "rgb(83, 58, 253)"
491
+ hover:
492
+ bg: "rgba(0, 0, 0, 0)"
493
+ fg: "rgb(46, 43, 140)"
494
+ card:
495
+ default:
496
+ bg: "rgba(0, 0, 0, 0)"
497
+ fg: "rgb(0, 0, 0)"
498
+ navLink:
499
+ default:
500
+ bg: "rgba(0, 0, 0, 0)"
501
+ fg: "rgb(83, 58, 253)"
502
+ hover:
503
+ bg: "rgba(0, 0, 0, 0)"
504
+ fg: "rgb(46, 43, 140)"
505
+ footerLink:
506
+ default:
507
+ bg: "rgba(0, 0, 0, 0)"
508
+ fg: "rgb(80, 97, 122)"
509
+ hover:
510
+ bg: "rgba(0, 0, 0, 0)"
511
+ fg: "rgb(52, 71, 94)"
512
+ ```
513
+
514
+ **Agent usage**: Validate generated components against this matrix. If your output's `:hover` state changes properties not listed here, you are off-brand.
515
+
516
+
517
+ ## 4c. Component Vocabulary (Closed System)
518
+
519
+ *This brand uses ONLY the following component vocabulary. Introducing new variants without justification breaks the system's tonal coherence.*
520
+
521
+ ### Buttons
522
+ - **5 shape(s)** in this system: `Ghost`, `Outline`, `Primary Brand`, `Subtle`, `Light / Invert`
523
+ - **DO NOT introduce new buttons variants** without justification
524
+
525
+ ### Pricing Cards
526
+ - **1 shape(s)** in this system: `Default Tier`
527
+ - **DO NOT introduce new pricing cards variants** without justification
528
+
529
+ ### CTA Banners
530
+ - **1 shape(s)** in this system: `Full-width CTA`
531
+ - **DO NOT introduce new cta banners variants** without justification
532
+
533
+ ### Testimonials
534
+ - **1 shape(s)** in this system: `Quote Card`
535
+ - **DO NOT introduce new testimonials variants** without justification
536
+
537
+ ### Status Badges
538
+ - **1 shape(s)** in this system: `Neutral Light`
539
+ - **DO NOT introduce new status badges variants** without justification
540
+
541
+ ## 5. Layout Principles
542
+
543
+ ### Layout Type
544
+ **hero + sections**
545
+
546
+ ### Grid
547
+ Single column, centered content
548
+
549
+ ### Max Width
550
+ 1266px
551
+
552
+ ### Spacing System
553
+ Compact spacing — information density prioritized
554
+
555
+ | Token | Value |
556
+ |-------|-------|
557
+ | xxs | 2px |
558
+ | xs | 4px |
559
+ | sm | 8px |
560
+ | md | 12px |
561
+ | base | 16px |
562
+ | lg | 28px |
563
+ | xl | 32px |
564
+ | 2xl | 48px |
565
+ | 3xl | 64px |
566
+
567
+ ### Border Radius Scale
568
+ | Name | Value | Use |
569
+ |------|-------|-----|
570
+ | None | 0px | No rounding |
571
+ | Xs | 4px | Tiny corners (badges, micro elements) |
572
+ | Sm | 8px | Buttons, inputs, small elements |
573
+ | Md | 16px | Cards, containers |
574
+ | Lg | 16px | Large rounded elements, pill segments |
575
+ | Xl | 16px | Category strips, featured containers |
576
+ | Full | 9999px | Pills, avatars, circular elements |
577
+
578
+ ### Shape Language
579
+
580
+ | Component | Border Radius |
581
+ |-----------|---------------|
582
+ | Buttons | `4px` |
583
+ | Pricing Cards | `0px` |
584
+ | CTA Banners | `4px` |
585
+ | Testimonials | `4px` |
586
+ | Status Badges | `4px` |
587
+ | Page Body | `0px` |
588
+ | Navigation | `6px` |
589
+
590
+ **Shape Personality**: Moderate Rounding — Medium corners (4–12px). Modern SaaS standard, neither sharp nor pill.
591
+
592
+ **Full Radius Spectrum**: 0px, 1px, 2px, 3px, 4px, 4.51px, 5px, 6px (from `allBorderRadii` scan)
593
+
594
+
595
+ ## 5b. Spacing Rhythm Names
596
+
597
+ *Named spacing tokens with explicit use cases. Use these names in YOUR code instead of raw pixels for consistency.*
598
+
599
+ | Name | Value | Use case |
600
+ |------|-------|----------|
601
+ | **hero** | `64px` | Top/bottom of full-bleed hero sections |
602
+ | **section** | `32px` | Between major bands (color change, content shift) |
603
+ | **subsection** | `28px` | Within a section, between content groups |
604
+ | **card** | `12px` | Card padding, list-item spacing |
605
+ | **compact** | `8px` | Form fields, tight clusters, badge padding |
606
+ | **micro** | `4px` | Icon-text gap, tag inner padding |
607
+
608
+ **Agent rule**: NEVER hardcode raw pixel values for spacing in generated UI. Always reference these named tokens (`spacing-rhythm.section`, etc.).
609
+
610
+ ## 5c. Widget & Structure Library
611
+
612
+ Structural patterns extracted from the page DOM — these are the **blueprints** an agent should follow to reproduce the page architecture (not just CSS values).
613
+
614
+ **8/8 structural patterns detected.**
615
+
616
+ ### Hero Pattern
617
+
618
+ - **Composition:** centered — Centered composition — heading + subheading + CTAs stacked vertically, content centered horizontally. Common for SaaS marketing pages.
619
+ - **Viewport coverage:** 184px tall (not full-viewport)
620
+ - **Heading:** "Une infrastructure financière qui booste votre croissance. Acceptez des paiements, proposez des serv" — 40px left-aligned
621
+ - **CTAs:** none detected in hero (unusual — agent should verify)
622
+ - **Clone instruction:** Reproduce the **centered** layout. Use the heading font-size token at the documented size. No imagery needed for hero — text-driven.
623
+
624
+ ### Navigation Pattern
625
+
626
+ - **Position:** static (scrolls with page)
627
+ - **Layout:** logo-left-links-left — Logo and links both on the left (CTAs typically right)
628
+ - **Height:** 64px
629
+ - **Logo:** ✓ present
630
+ - **Nav links:** 1 primary items
631
+ - **CTAs in nav:** 2
632
+ - **Clone instruction:** Build a static logo left links left navigation. Reserve 2 slots for primary CTAs.
633
+
634
+ ### Card Grid Pattern
635
+
636
+ - **Card count:** 5 cards detected
637
+ - **Columns (desktop):** 1-up grid
638
+ - **Card dimensions:** 1232×1383px (aspect 0.89:1)
639
+ - **Gap:** 160px between cards
640
+ - **Content:** ✓ image + CTA
641
+ - **Image position:** top
642
+ - **Clone instruction:** Build a 1-column grid (desktop) with cards at ~0.89:1 aspect ratio. Each card has an image at the top.
643
+
644
+ ### Pricing Table Pattern
645
+
646
+ - **Tier count:** 2 pricing tiers
647
+ - **Layout:** side-by-side (horizontal comparison)
648
+ - **Columns (desktop):** 2-up
649
+ - **Feature list:** ✓ (median ~80 feature points per tier)
650
+ - **Clone instruction:** Build a 2-column side-by-side pricing comparison.
651
+
652
+ ### Testimonial Pattern
653
+
654
+ - **Count:** 18 testimonial blocks
655
+ - **Layout:** grid
656
+ - **Avg quote length:** 195 chars (medium quote)
657
+ - **Includes:** ✗ no avatars | ✗ no logos | ✗ no ratings
658
+ - **Clone instruction:** Build a grid of 18 testimonials.
659
+
660
+ ### FAQ Pattern
661
+
662
+ - **Item count:** 10 questions
663
+ - **Format:** accordion (expand/collapse)
664
+ - **Layout:** two-column
665
+ - **Avg question length:** 121 chars
666
+ - **Clone instruction:** Build 10 expandable accordion items in a two-column layout.
667
+
668
+ ### CTA Banner Pattern
669
+
670
+ - **Banner count:** 5
671
+ - **Position:** multiple
672
+ - **Visual treatment:** ✓ contrasting background
673
+ - **Primary CTA text:** "Regarder la vidéo"
674
+ - **Clone instruction:** Place multiple CTA banners across page sections. Use contrasting solid background.
675
+
676
+ ### Footer Pattern
677
+
678
+ - **Columns:** 4
679
+ - **Links:** 80 total
680
+ - **Height:** 1035px
681
+ - **Includes:** ✗ no newsletter | ✗ no social | ✓ copyright
682
+ - **Clone instruction:** Build a 4-column footer with ~20 links per column, and a copyright line.
683
+
684
+ ## 6. Depth & Elevation
685
+
686
+ | Level | Treatment | Use |
687
+ |-------|-----------|-----|
688
+ | Flat (Level 0) | No shadow | Page background, content blocks |
689
+ | Layered (Level 1) | <br>`rgba(0, 0, 0, 0.1) 0px 30px 60px -50px`,<br>`rgba(50, 50, 93, 0.25) 0px 30px 60px -10px` | Cards, elevated surfaces |
690
+ | Layered (Level 2) | <br>`rgba(23, 23, 23, 0.08) 0px 15px 35px 0px` | Cards, elevated surfaces |
691
+ | Layered (Level 3) | <br>`rgba(23, 23, 23, 0.06) 0px 3px 6px 0px` | Cards, elevated surfaces |
692
+ | Layered (Level 4) | <br>`rgba(50, 50, 93, 0.12) 0px 16px 32px 0px` | Cards, elevated surfaces |
693
+
694
+ **Shadow Philosophy**: Multi-layered shadow system creating natural, atmospheric depth. Each shadow level combines multiple layers for realistic elevation.
695
+
696
+ ## 7. Motion & Interaction
697
+
698
+ ### Easing System
699
+
700
+ | CSS Variable | Curve | Semantic Name |
701
+ |--------------|-------|---------------|
702
+ | `--navigation-easing` | `cubic-bezier(0.45,0.05,0.55,0.95)` | Custom Ease — Balanced |
703
+
704
+ ### Duration Scale
705
+
706
+ | CSS Variable | Value | Tier |
707
+ |--------------|-------|------|
708
+ | `--navigation-duration-slow` | `300ms` | Normal |
709
+ | `--navigation-duration` | `240ms` | Normal |
710
+ | `--navigation-hamburger-duration` | `0.25s` | Normal |
711
+
712
+ ### Copy-Paste Transition Snippets
713
+
714
+ **Opacity**
715
+ ```css
716
+ transition: opacity 0.24s cubic-bezier(0.45, 0.05, 0.55, 0.95);
717
+ ```
718
+
719
+ **All Props**
720
+ ```css
721
+ transition: fill 0.24s cubic-bezier(0.45, 0.05, 0.55, 0.95);
722
+ ```
723
+
724
+ **Color / Background**
725
+ ```css
726
+ transition: color 0.24s cubic-bezier(0.45, 0.05, 0.55, 0.95), background-color 0.24s cubic-bezier(0.45, 0.05, 0.55, 0.95), border...;
727
+ ```
728
+
729
+ **Transform**
730
+ ```css
731
+ transition: transform 0.25s cubic-bezier(0.6, 0, 0.2, 0.5);
732
+ ```
733
+
734
+ ### Motion Fingerprint
735
+
736
+ - **Speed Character**: Deliberate & Calm (median duration: `300ms`)
737
+ - **Dominant Easing**: custom cubic-bezier curves
738
+
739
+ > This design moves with deliberate & calm timing using custom cubic-bezier curves, creating a UI that feels calm and controlled.
740
+
741
+ ## 8. Do's and Don'ts
742
+
743
+ ### Do
744
+ - Use sohne-var as the primary typeface — it defines the brand personality
745
+ - Keep font weights between 400-400 — the system uses a narrow weight range for subtle hierarchy
746
+ - Use negative letter-spacing (-0.8px) at display sizes for compressed, editorial headlines
747
+ - Use the extracted shadow patterns for elevation — they are tuned to match the brand palette
748
+ - Use Accent (`#533afd`) as the primary accent — it's the brand's signature interactive color
749
+ - Use small 4px radius for buttons — this design system uses subtle rounding, not pill shapes
750
+ - Maintain nav height at 64px — consistent vertical space for the navigation bar
751
+ - Respect the 4px–32px spacing range — the design uses a wide scale for visual breathing room
752
+ - Keep the hero centered and text-driven — no decorative media, typography carries the message
753
+ - Each card includes a top image — imagery is part of the card identity, not optional
754
+ - Place 2 pricing tiers side-by-side on desktop — direct comparison is the value prop
755
+ - Lay out testimonials in a grid (18+ items) — quantity signals scale and trust
756
+ - Use expandable accordion for the FAQ — saves vertical space and lets users self-navigate
757
+ - Repeat the primary CTA across 5 banner sections — conversion paths are layered, not single
758
+ - Build a content-dense footer (4 columns, ~80 links) — this site treats the footer as a sitemap, not an afterthought
759
+
760
+ ### Don't
761
+ - Don't substitute with generic sans-serif or serif — the custom font carries the brand
762
+ - Don't use weight 700 (bold) or above — 400 is the maximum weight in this system
763
+ - Don't increase letter-spacing on headings — the type is designed to run tight at scale
764
+ - Don't invent new shadow values — use only the extracted shadow levels
765
+ - Don't introduce additional saturated accent colors — the palette is intentionally controlled
766
+ - Don't over-round buttons with pill or large radius — the system uses restrained, sharp-ish corners
767
+ - Don't collapse or hide the nav on scroll without an explicit scroll-triggered animation — the design uses fixed nav presence
768
+ - Don't add hero illustrations or photos — they'll break the typographic restraint
769
+ - Don't make the nav sticky — this design lets it scroll away to maximize content focus
770
+
771
+
772
+ ## 7b. Enforceable Brand Rules
773
+
774
+ *Structured Do/Don't with reasoning and validation tests. Agents can programmatically verify generated UI.*
775
+
776
+ ```yaml
777
+ rules:
778
+ - id: brand-canvas-001
779
+ type: do
780
+ rule: "Always use the page background `rgb(255, 255, 255)` as the base canvas"
781
+ why: "Every component is designed to composit against this exact tone"
782
+ test: "document.body.style.backgroundColor === 'rgb(255, 255, 255)'"
783
+ - id: brand-accent-001
784
+ type: do
785
+ rule: "Reserve `rgb(83, 58, 253)` for primary CTAs and brand-mark signals only"
786
+ why: "Single chromatic assertion device — overuse dilutes meaning"
787
+ test: "querySelectorAll('[style*=\"rgb(83, 58, 253)\"]').length <= 3 per fold"
788
+ ```
789
+
790
+ ## 9. Responsive Behavior
791
+
792
+ ### Breakpoints
793
+ | Name | Width | Key Changes |
794
+ |------|-------|-------------|
795
+ | Mobile | 640px | Single column layout |
796
+ | Tablet | 768px | 2-column grids |
797
+ | Desktop | 1024px | Full layout |
798
+ | Large Desktop | 1280px | Maximum width |
799
+
800
+ ### Token Diff — Desktop vs Mobile
801
+
802
+ | Element | Property | Desktop | Mobile |
803
+ |---------|----------|---------|--------|
804
+ | heading | font-size | `40px` | `34px` |
805
+ | heading | line-height | `46px` | `35.02px` |
806
+ | heading | letter-spacing | `-0.8px` | `-0.34px` |
807
+ | nav | padding | `10px 16px` | `12px 12px 14px 16px` |
808
+ | nav | height | `64px` | `66px` |
809
+ | hero | padding | `0px 16px` | `0px` |
810
+ | hero | height | `685px` | `519.047px` |
811
+ | button | padding | `12px 0px` | `16px 0px` |
812
+ | button | font-size | `14px` | `18px` |
813
+ | button | width | `79px` | `fit-content` |
814
+ | card | width | `816px` | `358px` |
815
+
816
+ ### Collapsing Strategy
817
+ - Headlines: 40px → 34px on mobile
818
+ - Navigation: horizontal links → hamburger menu on mobile
819
+ - Cards: multi-column → stacked vertical on mobile
820
+ - Footer: multi-column → stacked single column on mobile
821
+
822
+ ### Touch Targets
823
+ - Buttons: 12px 0px padding
824
+ - Navigation: adequate spacing between items
825
+ - Interactive elements: minimum 44px touch target recommended
826
+
827
+ ### Collapsing Narrative
828
+
829
+ How the structural patterns adapt from desktop to mobile (extracted from both viewport extractions):
830
+
831
+ - **Navigation collapses to hamburger** — 1 links visible on desktop, 0 on mobile (the rest hide behind a menu toggle).
832
+ - **Nav CTAs reduced** on mobile (2 → 0) — the design prioritizes content over conversion buttons at small sizes.
833
+ - **Footer columns collapse:** 4 columns (desktop) → 1 column (mobile).
834
+
835
+ ## 9b. Visual Tone & Photography
836
+
837
+ **Tone:** Mixed photography + illustration
838
+
839
+ A balanced mix of photographic content and vector graphics. Photos likely carry product/lifestyle context while SVG handles icons, logos, and decorative accents.
840
+
841
+ **Canonical Brand Image (OG):**
842
+ - https://images.stripeassets.com/fzn2n1nzq965/XtX984S1GJVsVOXFC7kMu/01988281e867728dfb09aa7793a6e3b9/Stripe.jpg?q=80
843
+ *This is the image shown when the site is shared on social media — represents the brand visual essence.*
844
+
845
+ **Hero Image (above-fold dominant visual):**
846
+ - Aspect: 1.43:1 (landscape)
847
+ - Rendered size: 1392×975px
848
+ - *Use this aspect ratio + composition for your clone's hero — mimicking the proportion preserves the visual hierarchy.*
849
+
850
+ **Aspect Ratio Distribution:**
851
+ - Landscape (1.15–2.3): 2 (7%)
852
+ - Portrait (<0.87): 10 (37%)
853
+ - Square (0.87–1.15): 6 (22%)
854
+ - Ultra-wide (>2.3): 9 (33%)
855
+
856
+ **Media Format Mix:**
857
+ - JPG: 6 (typically photographic content)
858
+ - PNG: 21 (logos, transparent UI elements, mockups)
859
+ - SVG: 3 (icons, illustrations, decorative geometry)
860
+
861
+ **Average rendered image size:** 626×435px
862
+ **Above-fold image count:** 1 / 27
863
+
864
+ **Decorative Patterns Detected:**
865
+ - 1 multi-stop linear gradient (mesh-like, 3+ color stops) — the brand leans on rich color transitions for visual depth
866
+ - 10 radial gradients — circular color blooms used for spotlight/glow effects
867
+ - 3 large decorative SVG shapes (≥200×200px, non-icon) — likely blob/illustration accents
868
+ - **Glassmorphism** detected (`backdrop-filter: blur`) — layered transparent surfaces with blur, modern OS-like aesthetic
869
+
870
+ **Clone instruction for decorative work:** This is a gradient-rich design — invest in multi-stop CSS gradients (3+ color stops), not solid backgrounds.
871
+
872
+ **Imagery Guidance for clones:**
873
+ - Mix photography and illustration intentionally: photos for product/context, vectors for icons + decorative accents.
874
+ - Respect the format split — replacing JPGs with illustrations (or vice versa) will shift the brand tone.
875
+
876
+ ## 10. Agent Prompt Guide
877
+
878
+ ### Quick Reference
879
+ - Background: Pure White (`#ffffff`)
880
+ - Primary text: Pure Black (`#000000`)
881
+ - Accent: Deep Purple (`#533afd`)
882
+ - Border: Cool Gray (`#8f98a9`)
883
+ - Font: sohne-var
884
+ - Body: 16px weight 400
885
+
886
+ ### Example Component Prompts
887
+ - "Create a hero section on Pure White background (#ffffff). Headline at 40px sohne-var weight 300, line-height 1.15, letter-spacing -0.8px, color #000000."
888
+ - "Create the primary CTA button: `#533afd` background, `#ffffff` text, 4px border-radius, 15.5px 20px 16.5px padding, 400 weight, sohne-var font."
889
+ - "Design a card on `transparent` background. Border: none. Radius: 0px. Shadow: none. Padding: 0px."
890
+ - "Build navigation: relative on `#ffffff`. sohne-var 16px weight 400 for links."
891
+
892
+ ### Iteration Guide
893
+ 1. **Canvas**: Set the light canvas to Pure White (`#ffffff`) — every component is composited against this exact base.
894
+ 2. **Typography**: All type in sohne-var, weight range 300–400. Never exceed 400 — heavier weights break the brand's tonal restraint.
895
+ 3. **Accent**: Deep Purple (`#533afd`) is the sole interactive color. On hover → #81b81a (`#81b81a`). Use CSS transitions, not opacity/brightness filters.
896
+ 4. **Motion**: All transitions use `cubic-bezier(0.45,0.05,0.55,0.95)`. Timing: 240ms for micro-interactions, 250ms for layout changes. Never use linear for UI transitions — preserve the brand's easing personality.
897
+ 5. **Shape**: CTAs at `4px`, cards at `0px`. Apply border-radius from the extracted scale only — don't invent intermediate values.
898
+ 6. **Spacing**: Use the `--ca-space-*` token scale (4px–32px). All padding, margin, and gap values are multiples from this scale — no magic numbers.
899
+ 7. **Tokens**: Import from §11 CSS Export (`--ca-*` vars). Never hardcode hex values — always reference a token so theming remains consistent.
900
+
901
+ ## 11. CSS Design Tokens Raw Export
902
+
903
+ *Copy-paste ready `:root {}` block — all values extracted directly from the live site.*
904
+
905
+ ```css
906
+ /* Colors */
907
+ :root {
908
+ --ca-on-primary: #ffffff;
909
+ --ca-surface-2: #e5edf5;
910
+ --ca-ink-muted: #26251e;
911
+ --ca-ink-subtle: #031323;
912
+ --ca-primary-focus: #533afd;
913
+ --ca-primary-hover: #2e2b8c;
914
+ --ca-hairline: #8f98a9;
915
+ --ca-semantic-error: #d8351e;
916
+ --ca-semantic-success: #00b261;
917
+ }
918
+
919
+ /* Typography */
920
+ :root {
921
+ --ca-font-primary: "sohne-var", system-ui, sans-serif;
922
+ --ca-text-display: 56px;
923
+ --ca-text-heading: 40px;
924
+ --ca-text-button: 14px;
925
+ }
926
+
927
+ /* Spacing & Radius */
928
+ :root {
929
+ --ca-space-xxs: 2px;
930
+ --ca-space-xs: 4px;
931
+ --ca-space-sm: 8px;
932
+ --ca-space-md: 12px;
933
+ --ca-space-base: 16px;
934
+ --ca-space-lg: 28px;
935
+ --ca-space-xl: 32px;
936
+ --ca-space-2xl: 48px;
937
+ --ca-space-3xl: 64px;
938
+ --ca-radius-none: 0px;
939
+ --ca-radius-xs: 4px;
940
+ --ca-radius-sm: 8px;
941
+ --ca-radius-md: 16px;
942
+ --ca-radius-lg: 16px;
943
+ --ca-radius-xl: 16px;
944
+ --ca-radius-full: 9999px;
945
+ }
946
+ ```
947
+
948
+
949
+ ## 13. Page Structure Skeleton
950
+
951
+ *The actual layout the source site uses. Reproduce these sections in order to match the site structure.*
952
+
953
+ ```yaml
954
+ page-skeleton:
955
+ - section: hero
956
+ tag: div
957
+ height: 975px
958
+ width: 1392px
959
+ layout: block
960
+ children: 1
961
+ - section: unknown
962
+ tag: div
963
+ height: 15049px
964
+ width: full-bleed
965
+ layout: block
966
+ children: 2
967
+ - section: hero
968
+ tag: div
969
+ classes: ["section-background"]
970
+ height: 761px
971
+ width: full-bleed
972
+ layout: block
973
+ children: 3
974
+ - section: hero
975
+ tag: div
976
+ classes: ["hero-wave-animation"]
977
+ height: 761px
978
+ width: full-bleed
979
+ layout: flex-row justify=center
980
+ children: 1
981
+ - section: hero
982
+ tag: div
983
+ height: 761px
984
+ width: 1266px
985
+ layout: block
986
+ children: 1
987
+ - section: hero
988
+ tag: div
989
+ height: 761px
990
+ width: 1393px
991
+ layout: block
992
+ children: 1
993
+ - section: main-content
994
+ tag: main
995
+ height: 13938px
996
+ width: full-bleed
997
+ layout: block
998
+ children: 9
999
+ - section: hero
1000
+ tag: section
1001
+ classes: ["hds-color-mode", "hero-section-container", "section", "section--white"]
1002
+ height: 685px
1003
+ width: full-bleed
1004
+ layout: block
1005
+ children: 3
1006
+ bg: "rgb(255, 255, 255)"
1007
+ padding: "0px 16px"
1008
+ - section: hero
1009
+ tag: div
1010
+ classes: ["section-container"]
1011
+ height: 612px
1012
+ width: 1266px
1013
+ layout: grid: 1-col gap=normal
1014
+ children: 1
1015
+ padding: "36px 16px"
1016
+ - section: hero
1017
+ tag: div
1018
+ classes: ["hero-section__layout-grid"]
1019
+ height: 333px
1020
+ width: 1232px
1021
+ layout: grid: 12-col gap=40px 16px
1022
+ children: 4
1023
+ - section: section-9
1024
+ tag: section
1025
+ classes: ["hds-color-mode", "section", "section--white", "hds-mode--light"]
1026
+ height: 2231px
1027
+ width: full-bleed
1028
+ layout: block
1029
+ children: 2
1030
+ bg: "rgb(255, 255, 255)"
1031
+ padding: "0px 16px"
1032
+ - section: unknown
1033
+ tag: div
1034
+ classes: ["section-container", "section-row", "modular-solutions-section", "section-row-gap"]
1035
+ height: 2231px
1036
+ width: 1266px
1037
+ layout: flex-column justify=normal
1038
+ children: 2
1039
+ padding: "96px 16px"
1040
+ - section: unknown
1041
+ tag: div
1042
+ classes: ["section-title", "section-title--span-8"]
1043
+ height: 141px
1044
+ width: 856px
1045
+ layout: block
1046
+ children: 3
1047
+ padding: "0px 40px 0px 0px"
1048
+ - section: unknown
1049
+ tag: div
1050
+ height: 648px
1051
+ width: 407px
1052
+ layout: flex-row justify=center
1053
+ children: 2
1054
+ - section: unknown
1055
+ tag: div
1056
+ height: 628px
1057
+ width: 407px
1058
+ layout: flex-row justify=center
1059
+ children: 1
1060
+ - section: unknown
1061
+ tag: div
1062
+ classes: ["connect-platform-dom-graphic-wrapper"]
1063
+ height: 457px
1064
+ width: 1083px
1065
+ layout: flex-row justify=flex-end
1066
+ children: 1
1067
+ padding: "0px 40px 0px 0px"
1068
+ - section: section-10
1069
+ tag: section
1070
+ classes: ["hds-color-mode", "section", "section--white", "hds-mode--light"]
1071
+ height: 560px
1072
+ width: full-bleed
1073
+ layout: block
1074
+ children: 1
1075
+ bg: "rgb(255, 255, 255)"
1076
+ padding: "0px 16px"
1077
+ - section: unknown
1078
+ tag: div
1079
+ classes: ["section-container", "sessions-section"]
1080
+ height: 560px
1081
+ width: 1266px
1082
+ layout: block
1083
+ children: 1
1084
+ padding: "80px 16px"
1085
+ - section: unknown
1086
+ tag: div
1087
+ height: 400px
1088
+ width: 1232px
1089
+ layout: grid: 1-col gap=normal
1090
+ children: 3
1091
+ - section: section-11
1092
+ tag: section
1093
+ classes: ["hds-color-mode", "stats-section", "stats-section--time-sunset", "section"]
1094
+ height: 963px
1095
+ width: full-bleed
1096
+ layout: block
1097
+ children: 4
1098
+ bg: "rgb(255, 255, 255)"
1099
+ padding: "0px 16px"
1100
+ - section: unknown
1101
+ tag: div
1102
+ classes: ["section-container"]
1103
+ height: 963px
1104
+ width: 1266px
1105
+ layout: block
1106
+ children: 3
1107
+ padding: "80px 16px 0px"
1108
+ - section: unknown
1109
+ tag: div
1110
+ classes: ["section-background"]
1111
+ height: 963px
1112
+ width: full-bleed
1113
+ layout: block
1114
+ children: 1
1115
+ - section: unknown
1116
+ tag: div
1117
+ classes: ["section-row", "section-row-gap"]
1118
+ height: 364px
1119
+ width: 1234px
1120
+ layout: flex-column justify=normal
1121
+ children: 3
1122
+ - section: unknown
1123
+ tag: div
1124
+ classes: ["stats-section__stats-menu"]
1125
+ height: 169px
1126
+ width: 1264px
1127
+ layout: grid: 12-col gap=16px
1128
+ children: 4
1129
+ - section: unknown
1130
+ tag: div
1131
+ classes: ["stats-menu__stat-wrapper"]
1132
+ height: 167px
1133
+ width: 304px
1134
+ layout: flex-column justify=normal
1135
+ children: 2
1136
+ padding: "40px 0px"
1137
+ ```
1138
+
1139
+ **Agent rule**: rebuild sections in this order (sorted by vertical position). Match the layout primitive (grid N-col / flex direction / block).
1140
+
1141
+
1142
+ ## 14. Copy Library (Real Content from Source)
1143
+
1144
+ *Actual text content extracted from the live page. Use these strings verbatim when reproducing the site — they carry the brand voice.*
1145
+
1146
+ ```yaml
1147
+ copy:
1148
+ section-headings:
1149
+ - "Des solutions flexibles pour chaque business model."
1150
+ - "Le pilier du commerce mondial"
1151
+ - "Une infrastructure fiable et évolutive, compatible avec tous vos outils existants."
1152
+ - "Nouveautés"
1153
+ sub-headings:
1154
+ - "Acceptez et optimisez les paiements en ligne ou en personne dans le monde entier"
1155
+ - "Boostez vos revenus grâce au commerce agentique"
1156
+ - "Faites circuler vos fonds au-delà des frontières grâce aux stablecoins et à la crypto"
1157
+ - "Hertz unifie ses activités commerciales avec Stripe"
1158
+ - "Intégrez Stripe à vos systèmes existants."
1159
+ - "Les entreprises utilisant Stripe ont généré 1,9 Bn $US en 2025."
1160
+ ctas:
1161
+ - "Produits"
1162
+ - "Tarifs"
1163
+ - "Se connecter
1164
+ Se connecter"
1165
+ - "Contacter notre équipe"
1166
+ - "Démarrer maintenant"
1167
+ - "S'inscrire avec Google"
1168
+ - "Regarder la vidéo"
1169
+ - "Plus de 135"
1170
+ navigation:
1171
+ - "Tarifs"
1172
+ - "Se connecter"
1173
+ - "Démarrer maintenant"
1174
+ - "Contacter notre équipe"
1175
+ - "Se connecter
1176
+ Se connecter"
1177
+ - "Stripe pour les grandes entreprises"
1178
+ - "Stripe pour les startups"
1179
+ - "Stripe pour les plateformes"
1180
+ footer-links:
1181
+ - "Tarifs"
1182
+ - "Automatisation des opérations financières"
1183
+ ```
1184
+
1185
+ **Agent rule**: reuse these exact strings when generating UI. Do NOT translate or rephrase — brand voice is preserved through the original wording.
1186
+
1187
+
1188
+ ## 15. Asset Inventory (Image Roles & Ratios)
1189
+
1190
+ *Image inventory classified by role and aspect ratio. When reproducing the site, allocate this number of assets per role.*
1191
+
1192
+ ```yaml
1193
+ assets:
1194
+ hero:
1195
+ count: 8
1196
+ avg-ratio: 2.47
1197
+ common-aspect: "~16:9 landscape"
1198
+ editorial:
1199
+ count: 3
1200
+ avg-ratio: 0.61
1201
+ common-aspect: "~9:16 portrait"
1202
+ thumbnail:
1203
+ count: 7
1204
+ avg-ratio: 0.96
1205
+ common-aspect: "~1:1 square"
1206
+ ```
1207
+
1208
+ **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`.
1209
+
1210
+
1211
+ ## 16. Component HTML Templates
1212
+
1213
+ *Suggested HTML markup for reproducing the key components — based on what was detected in the source DOM.*
1214
+
1215
+ ### Button (primary action)
1216
+ ```html
1217
+ <button class="btn btn-primary">
1218
+ Produits
1219
+ </button>
1220
+ ```
1221
+ _Source pattern detected: padding `12px 0px` · radius `4px` · weight `400`_
1222
+
1223
+ ### Generic Card
1224
+ ```html
1225
+ <div class="card">
1226
+ <!-- content -->
1227
+ </div>
1228
+ ```
1229
+ _Source pattern detected: padding `0px` · radius `0px` · shadow `none`_
1230
+
1231
+ **Agent rule**: use these markup skeletons as the structural baseline. Apply tokens from §2-3 for visual styling.
1232
+
1233
+
1234
+ ---
1235
+ ## Extraction Completeness: 82/100 (B)
1236
+
1237
+ | Category | Score | Max | Detail |
1238
+ |----------|-------|-----|--------|
1239
+ | Colors & Palette | 25 | 25 | 22 named colors |
1240
+ | Typography | 18 | 20 | 7 roles defined |
1241
+ | Components | 20 | 20 | 5 specs extracted |
1242
+ | Motion & Interaction | 5 | 15 | No keyframes, easing vars |
1243
+ | CSS Custom Properties | 10 | 10 | 688 vars |
1244
+ | Responsive Breakpoints | 4 | 5 | 4 breakpoints |
1245
+ | Variable Fonts | 0 | 5 | None detected |
1246
+
1247
+ ## 12. Known Gaps & Confidence
1248
+
1249
+ 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.
1250
+
1251
+ | Category | What's missing | Fallback strategy |
1252
+ |----------|----------------|-------------------|
1253
+ | **Keyframe animations** | No @keyframes declarations found (transitions only) | Use CSS transitions for state changes; avoid complex scroll-based animations |
1254
+ | **Form inputs** | No text input fields detected on this page | Use the documented border-radius + accent border on focus; 12-16px padding inside |
1255
+
1256
+ ### Per-section confidence
1257
+
1258
+ | Section | Confidence | Reason |
1259
+ |---------|------------|--------|
1260
+ | §1 Visual Theme | High | Body bg extracted via getComputedStyle() |
1261
+ | §2 Colors | High | 688 CSS vars (semantic naming requires ≥20 for high) |
1262
+ | §3 Typography | High | 7 typography roles inferred |
1263
+ | §4 Components | High | 5 component variants captured |
1264
+ | §7 Motion | Medium | Transitions only |
1265
+ | §8 Do's/Don'ts | High | 24 rules generated; design-decisions.json has evidence per rule |
1266
+ | §9 Responsive | High | 4 breakpoints detected |
1267
+ | §9b Photography | High | 27 images, hero present |
1268
+
1269
+ ---
1270
+ *Generated by Prism — automated Playwright extraction + design analysis.*
1271
+ *Source: https://stripe.com | 2026-06-07T02:28:58.313Z*
1272
+ *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.*