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,1040 @@
1
+ ---
2
+ version: alpha
3
+ name: switchcollective.com
4
+ description: "Light product system built on #fff6f0 with #fab68d as the primary CTA accent. Type anchored in Canela at 80px / weight 300. Extracted automatically from https://switchcollective.com/ — rendered styles via getComputedStyle() + CSS custom properties (token-only values may not be painted)."
5
+ narrative: |
6
+ switchcollective.com is built on a warm, off-white canvas (rgb(255, 246, 240)).
7
+ The system uses rgb(250, 182, 141) as the accent for primary actions and brand signals.
8
+ Sharp 0px corners on CTAs — architectural restraint, engineering precision alongside Canela as the primary typeface.
9
+ Canela is paired with Calibri for secondary roles.
10
+ A restrained elevation system (2 distinct shadows) — shadows reserved for the few elements that must lift off the page.
11
+ Interactions are smoothed by transitions across many elements, with little or no keyframe animation.
12
+
13
+ colors:
14
+ background: "#fff6f0"
15
+ surface-1: "#ffffff"
16
+ surface-2: "rgba(255, 255, 255, 0)"
17
+ ink: "#1b1dfe"
18
+ ink-subtle: "#333333"
19
+ primary: "#fab68d"
20
+ on-primary: "#111111"
21
+ primary-hover: "#1b1dfe"
22
+ hairline: "#333333"
23
+ primary-focus: "#101010"
24
+
25
+ typography:
26
+ display-xl:
27
+ fontFamily: "Canela"
28
+ fontSize: 96px
29
+ fontWeight: 500
30
+ lineHeight: 0.85
31
+ letterSpacing: -2px
32
+ display-lg:
33
+ fontFamily: "Satoshi"
34
+ fontSize: 72px
35
+ fontWeight: 500
36
+ lineHeight: 1
37
+ letterSpacing: 0
38
+ display-md:
39
+ fontFamily: "Canela"
40
+ fontSize: 40px
41
+ fontWeight: 300
42
+ lineHeight: 1
43
+ letterSpacing: 0
44
+ body:
45
+ fontFamily: "Satoshi"
46
+ fontSize: 16px
47
+ fontWeight: 500
48
+ lineHeight: 1.5
49
+ letterSpacing: 0
50
+ button:
51
+ fontFamily: "Satoshi"
52
+ fontSize: 18px
53
+ fontWeight: 500
54
+ lineHeight: 1.5
55
+ letterSpacing: 0
56
+
57
+ rounded:
58
+ none: 0px
59
+ xs: 2px
60
+ sm: 8px
61
+ md: 12px
62
+ lg: 20px
63
+ xl: 32px
64
+ pill: 9999px
65
+
66
+ spacing:
67
+ xxs: 2px
68
+ xs: 6px
69
+ sm: 10px
70
+ md: 12px
71
+ lg: 32px
72
+ xl: 72px
73
+ xxl: 88px
74
+ section: 80px
75
+
76
+ components:
77
+ button-ghost:
78
+ backgroundColor: "{colors.surface-2}"
79
+ textColor: "{colors.primary-hover}"
80
+ typography: "{typography.body}"
81
+ rounded: "{rounded.none}"
82
+ padding: 5.76px 11.52px
83
+ button-primary-brand:
84
+ backgroundColor: "{colors.primary}"
85
+ textColor: "{colors.primary-hover}"
86
+ typography: "{typography.body}"
87
+ rounded: "{rounded.none}"
88
+ padding: 5.76px 11.52px
89
+ button-ghost-2:
90
+ backgroundColor: "{colors.surface-2}"
91
+ textColor: "{colors.primary-hover}"
92
+ typography: "{typography.body}"
93
+ rounded: "{rounded.sm}"
94
+ padding: 8px 16px
95
+ card-standard-card:
96
+ backgroundColor: "{colors.surface-2}"
97
+ typography: "{typography.body}"
98
+ rounded: "{rounded.xl}"
99
+ input-text-input:
100
+ backgroundColor: "{colors.surface-2}"
101
+ textColor: "{colors.hairline}"
102
+ typography: "{typography.button}"
103
+ rounded: "{rounded.xl}"
104
+ padding: 16px 16px 16px 32px
105
+ navigation-main-nav:
106
+ backgroundColor: "{colors.background}"
107
+ typography: "{typography.body}"
108
+ rounded: "{rounded.none}"
109
+ padding: 16px 72px
110
+
111
+ extracted_at: "2026-05-31T07:06:32.947Z"
112
+ completeness: 54
113
+ scoreVersion: "v2"
114
+
115
+ ---
116
+
117
+ # Design System — switchcollective.com
118
+ > Extracted automatically by Prism from https://www.switchcollective.com
119
+ > Date: 2026-05-31
120
+ > Viewport: Desktop 1440x900 + Mobile 390x844
121
+ > 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).
122
+
123
+
124
+ ## 0. Design DNA
125
+
126
+ **Density**: sparse  |  **Motion**: subtle  |  **Weight**: light  |  **Aesthetic**: editorial-minimal
127
+
128
+ | Dimension | Value | Signal |
129
+ |---|---|---|
130
+ | Canvas | warm | `#fff6f0` |
131
+ | Type posture | serif-led (Canela) | "100% finançable" |
132
+ | Color assertion | dual-accent | #fab68d |
133
+ | Whitespace | sparse | section rhythm 80px |
134
+ | Interaction | subtle | 0 keyframes, 6 transitions |
135
+ | Radius language | 8px-rounded | from token scale |
136
+
137
+ **Prism fingerprint**: `warm-canvas · serif-display · dual-accent · 8px-rounded · subtle-motion`
138
+
139
+ > **🤖 TL;DR for AI agents** (read this first — saves you scanning the full doc):
140
+ >
141
+ > - **Canvas**: `rgb(255, 246, 240)` is the page background. Every component composits against this.
142
+ > - **Accent**: `rgb(250, 182, 141)` for primary CTAs ONLY. Never decorative.
143
+ > - **Body type**: 16px (token: `typography.body`). Default for ALL text not in a heading role.
144
+ > - **Section rhythm**: 80px between major bands. Card padding: 32px.
145
+ > - **Default radius**: 8px on buttons/inputs. Pills (`9999px`) only for icon-buttons or status chips.
146
+ >
147
+ > **Before generating UI**: import this DESIGN.md, scan §2 (Color Palette) + §4 (Components) + §10 (Agent Guide). Skip §11–12 unless extending.
148
+
149
+ ## 1. Visual Theme & Atmosphere
150
+
151
+ switchcollective.com's canvas is a warm, intentionally-tinted surface (`#fff6f0`) — a refusal of the default white that immediately signals editorial intent. This isn't sterility, it's an invitation to read.
152
+
153
+ Headlines are set in **Canela**, a serif italic display face (the dominant type signature, e.g. "100% finançable" at 80px). A second display voice — **Satoshi** (sans) — appears in lower bands (e.g. "Le Réseau"), used for editorial accent. Body text is set in **Satoshi**. Negative letter-spacing at display sizes (-2px at 96px) compresses headlines into engineered blocks, dense and precise.
154
+
155
+ Body text reads in #1b1dfe (`#1b1dfe`). **#fab68d** (`#fab68d`) 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.
156
+
157
+
158
+ **Key Characteristics:**
159
+ - Background: Warm Cream (`#fff6f0`)
160
+ - Primary typeface: Satoshi
161
+ - Primary text: #1b1dfe (`#1b1dfe`)
162
+ - Accent: #fab68d (`#fab68d`)
163
+ - Display: 96px weight 500, letter-spacing -2px
164
+ - Shadow system: 2 distinct elevation levels
165
+ - Custom fonts loaded: Satoshi, Canela
166
+
167
+ ## 2. Color Palette & Roles
168
+
169
+ ### Background & Surface
170
+ - **Warm Cream** (`#fff6f0`): Page background (primary)
171
+ - **Pure White** (`#ffffff`): Surface / elevated background
172
+ - **Transparent** (`transparent`): Surface / elevated background
173
+ - **Light Gray** (`#dddddd`): Surface / elevated background
174
+
175
+ ### Text & Content
176
+ - **#1b1dfe** (`#1b1dfe`): Primary body text
177
+ - **Pure Black** (`#000000`): Secondary text
178
+ - **Charcoal** (`#333333`): Secondary text
179
+
180
+ ### Accent & Interactive
181
+ - **#fab68d** (`#fab68d`): Interactive / accent
182
+ - **#8388fe** (`#8388fe`): Interactive / accent
183
+ - **Deep Purple** (`#3436fd`): Interactive / accent
184
+ - **Deep Purple** (`#3638fd`): Interactive / accent
185
+ - **Deep Purple** (`#3537fe`): Interactive / accent
186
+ - **Deep Purple** (`#3738fd`): Interactive / accent
187
+ - **Deep Purple** (`#3739fd`): Interactive / accent
188
+
189
+ ### Full Extracted Palette
190
+ **20 colors rendered on the page** + **1** more declared in design tokens (CSS custom properties — not necessarily painted). (14 categorized above + 7 additional below.)
191
+ Rendered values are read via `getComputedStyle()`; token values come from CSS variable declarations. Third-party logo colors are filtered out.
192
+
193
+ - `#f05022` — Vermillion
194
+ - `#7db902` — #7db902
195
+ - `#00a4ee` — Sky Bright
196
+ - `#ffb700` — Amber
197
+ - `#8f3600` — Chocolate
198
+ - `#9a9efe` — #9a9efe
199
+ - `#b5b8ff` — Lavender
200
+
201
+ ## 3. Typography Rules
202
+
203
+ ### Font Families
204
+ - **Primary**: `Satoshi`
205
+ - **Secondary**: `webflow-icons`
206
+ - **Font 3**: `Canela`
207
+
208
+ ### Custom Fonts Loaded
209
+ - **webflow-icons** weight 400 (normal)
210
+ - **Satoshi** weight 500 (normal)
211
+ - **Satoshi** weight 400 (normal)
212
+ - **Satoshi** weight 700 (normal)
213
+ - **Canela** weight 300 (italic)
214
+
215
+ ### Typography Hierarchy
216
+
217
+ | Role | Font | Size | Weight | Line Height | Letter Spacing | Notes |
218
+ |------|------|------|--------|-------------|----------------|-------|
219
+ | Display Hero | Canela | 96px | 500 | 0.85 | -2px | Main headline (h1) |
220
+ | Section Heading | Satoshi | 72px | 500 | 1 | normal | Section titles (h2) |
221
+ | Sub-heading | Canela | 40px | 300 | 1 | normal | Third-level heading (h3) |
222
+ | Button Large | Satoshi | 18px | 500 | 1.5 | normal | Button label (18px) |
223
+ | Body | Satoshi | 16px | 500 | 1.5 | normal | Standard reading text |
224
+ | Button | Satoshi | 14.4px | 700 | 1.67 | normal | Button label (14.4px) |
225
+
226
+ ### Full Font Size Scale
227
+
228
+ Sizes detected in the design (descending): `105.60px`, `96px`, `80px`, `79.20px`, `72px`, `52.80px`, `48px`, `40px`, `35.20px`, `32px`, `24px`, `20px`, `18px`, `17.92px`, `16px`, `14.40px`, `14px`, `11px`
229
+
230
+ > 12 size(s) detected outside the sampled hierarchy (105.6px, 80px, 79.2px, 52.8px, 48px, 35.2px, 32px, 24px, 20px, 17.92px, 14px, 11px). These appear on elements not in the sampled set — likely additional display sizes, marketing-section overrides, or third-party-widget styles.
231
+
232
+ ## 4. Component Stylings
233
+
234
+ ### Buttons
235
+
236
+ **Ghost**
237
+ - Background: `transparent` `{colors.surface-2}`
238
+ - Text: `#1b1dfe` `{colors.primary-hover}`
239
+ - Padding: 5.76px 11.52px
240
+ - Radius: 0px
241
+ - Border: 2px solid rgba(0, 0, 0, 0)
242
+ - Font: 14.4px weight 700
243
+ - Use: Subtle action, toolbar, nav button
244
+ - Hover: outline: `rgb(27, 29, 254) none 0px`, textDecoration: `underline`
245
+ - Focus: outline: `rgb(16, 16, 16) auto 1px`, textDecoration: `underline`
246
+
247
+ **Primary Brand**
248
+ - Background: `#fab68d` `{colors.primary}`
249
+ - Text: `#1b1dfe` `{colors.primary-hover}`
250
+ - Padding: 5.76px 11.52px
251
+ - Radius: 0px
252
+ - Border: 2px solid rgba(0, 0, 0, 0)
253
+ - Font: 14.4px weight 700
254
+ - Use: Primary CTA / brand action
255
+ - Hover: outline: `rgb(27, 29, 254) none 0px`, textDecoration: `underline`
256
+ - Focus: outline: `rgb(16, 16, 16) auto 1px`, textDecoration: `underline`
257
+
258
+ **Ghost**
259
+ - Background: `transparent` `{colors.surface-2}`
260
+ - Text: `#1b1dfe` `{colors.primary-hover}`
261
+ - Padding: 8px 16px
262
+ - Radius: 8px
263
+ - Font: 16px weight 500
264
+ - Use: Subtle action, toolbar, nav button
265
+ - Hover: outline: `rgb(27, 29, 254) none 0px`, textDecoration: `underline`
266
+ - Focus: outline: `rgb(16, 16, 16) auto 1px`, textDecoration: `underline`
267
+
268
+ **Pill**
269
+ - Background: `#fff6f0` `{colors.background}`
270
+ - Text: `#1b1dfe` `{colors.primary-hover}`
271
+ - Padding: 12px 32px
272
+ - Radius: 32px
273
+ - Font: 18px weight 500
274
+ - Use: Status pills, tags, chips
275
+ - Hover: outline: `rgb(27, 29, 254) none 0px`, textDecoration: `underline`
276
+ - Focus: outline: `rgb(16, 16, 16) auto 1px`, textDecoration: `underline`
277
+
278
+ ### Cards & Containers
279
+
280
+ **Standard Card**
281
+ - Background: `transparent` `{colors.surface-2}`
282
+ - Padding: 0px
283
+ - Radius: 40px
284
+ - Use: Content containers, listing items
285
+
286
+ ### Inputs & Forms
287
+
288
+ **Text Input**
289
+ - Background: `transparent` `{colors.surface-2}`
290
+ - Text: `#333333` `{colors.hairline}`
291
+ - Padding: 16px 16px 16px 32px
292
+ - Radius: 32px
293
+ - Border: 1px solid rgb(255, 246, 240)
294
+ - Font: 18px weight 500
295
+ - Use: Text fields, search inputs
296
+ - Focus: color: `rgb(27, 29, 254)`, outline: `rgb(27, 29, 254) none 0px`
297
+
298
+ ### Navigation
299
+
300
+ **Main Nav**
301
+ - Background: `#fff6f0` `{colors.background}`
302
+ - Padding: 16px 72px
303
+ - Radius: none
304
+ - Font: 16px weight 500
305
+ - Use: Fixed/sticky flex nav — N/A items
306
+
307
+
308
+ ## 4b. Component Behaviors (State Matrix)
309
+
310
+ ### Interaction State Narrative
311
+
312
+ - **Input**:
313
+ - **focus:** text #333333 → #1b1dfe
314
+
315
+ *State transitions extracted via Playwright simulation — exact values in the YAML matrix below.*
316
+
317
+ ```yaml
318
+ component-behaviors:
319
+ button:
320
+ default:
321
+ bg: "rgba(0, 0, 0, 0)"
322
+ fg: "rgb(27, 29, 254)"
323
+ border: "2px solid rgba(0, 0, 0, 0)"
324
+ hover:
325
+ bg: "rgba(0, 0, 0, 0)"
326
+ fg: "rgb(27, 29, 254)"
327
+ border: "2px solid rgba(0, 0, 0, 0)"
328
+ focus:
329
+ bg: "rgba(0, 0, 0, 0)"
330
+ fg: "rgb(27, 29, 254)"
331
+ border: "2px solid rgba(0, 0, 0, 0)"
332
+ input:
333
+ default:
334
+ bg: "rgba(0, 0, 0, 0)"
335
+ fg: "rgb(51, 51, 51)"
336
+ border: "1px solid rgb(255, 246, 240)"
337
+ focus:
338
+ bg: "rgba(0, 0, 0, 0)"
339
+ fg: "rgb(27, 29, 254)"
340
+ border: "1px solid rgb(255, 246, 240)"
341
+ link:
342
+ default:
343
+ bg: "rgba(0, 0, 0, 0)"
344
+ fg: "rgb(51, 51, 51)"
345
+ hover:
346
+ bg: "rgba(0, 0, 0, 0)"
347
+ fg: "rgb(51, 51, 51)"
348
+ card:
349
+ default:
350
+ bg: "rgba(0, 0, 0, 0)"
351
+ fg: "rgb(27, 29, 254)"
352
+ navLink:
353
+ default:
354
+ bg: "rgba(0, 0, 0, 0)"
355
+ fg: "rgb(27, 29, 254)"
356
+ badge:
357
+ default:
358
+ bg: "rgba(0, 0, 0, 0)"
359
+ fg: "rgb(27, 29, 254)"
360
+ ```
361
+
362
+ **Agent usage**: Validate generated components against this matrix. If your output's `:hover` state changes properties not listed here, you are off-brand.
363
+
364
+
365
+ ## 4c. Component Vocabulary (Closed System)
366
+
367
+ *This brand uses ONLY the following component vocabulary. Introducing new variants without justification breaks the system's tonal coherence.*
368
+
369
+ ### Buttons
370
+ - **3 shape(s)** in this system: `Ghost`, `Primary Brand`, `Pill`
371
+ - **DO NOT introduce new buttons variants** without justification
372
+
373
+ ### Cards & Containers
374
+ - **1 shape(s)** in this system: `Standard Card`
375
+ - **DO NOT introduce new cards & containers variants** without justification
376
+
377
+ ### Inputs & Forms
378
+ - **1 shape(s)** in this system: `Text Input`
379
+ - **DO NOT introduce new inputs & forms variants** without justification
380
+
381
+ ### Navigation
382
+ - **1 shape(s)** in this system: `Main Nav`
383
+ - **DO NOT introduce new navigation variants** without justification
384
+
385
+ ## 5. Layout Principles
386
+
387
+ ### Layout Type
388
+ **top-nav + content**
389
+
390
+ ### Grid
391
+ Single column, centered content
392
+
393
+ ### Max Width
394
+ 1200px
395
+
396
+ ### Spacing System
397
+ Generous spacing — editorial breathing room
398
+
399
+ | Token | Value |
400
+ |-------|-------|
401
+ | xxs | 2px |
402
+ | xs | 6px |
403
+ | sm | 10px |
404
+ | md | 12px |
405
+ | base | 16px |
406
+ | lg | 32px |
407
+ | xl | 72px |
408
+ | 2xl | 80px |
409
+ | 3xl | 88px |
410
+
411
+ ### Border Radius Scale
412
+ | Name | Value | Use |
413
+ |------|-------|-----|
414
+ | None | 0px | No rounding |
415
+ | Xs | 2px | Tiny corners (badges, micro elements) |
416
+ | Sm | 8px | Buttons, inputs, small elements |
417
+ | Md | 12px | Cards, containers |
418
+ | Lg | 20px | Large rounded elements, pill segments |
419
+ | Xl | 32px | Category strips, featured containers |
420
+ | Full | 9999px | Pills, avatars, circular elements |
421
+
422
+ ### Shape Language
423
+
424
+ | Component | Border Radius |
425
+ |-----------|---------------|
426
+ | Buttons | `0px` |
427
+ | Cards & Containers | `40px` |
428
+ | Inputs & Forms | `32px` |
429
+ | Navigation | `none` |
430
+ | Page Body | `0px` |
431
+ | Primary Input | `32px` |
432
+
433
+ **Shape Personality**: Generously Rounded — Soft, friendly corners (8px+). Approachable, consumer-facing feel.
434
+
435
+ **Full Radius Spectrum**: 0px, 2px, 8px, 12px, 16px, 20px, 24px, 28px (from `allBorderRadii` scan)
436
+
437
+
438
+ ## 5b. Spacing Rhythm Names
439
+
440
+ **Measured section rhythm**: bands use ~80px vertical padding (up to 128px) — **generous**. Reproduce this generous vertical breathing room; cramped spacing is the #1 tell of a cheap clone.
441
+
442
+ *Named spacing tokens with explicit use cases. Use these names in YOUR code instead of raw pixels for consistency.*
443
+
444
+ | Name | Value | Use case |
445
+ |------|-------|----------|
446
+ | **hero** | `88px` | Top/bottom of full-bleed hero sections |
447
+ | **section** | `72px` | Between major bands (color change, content shift) |
448
+ | **subsection** | `32px` | Within a section, between content groups |
449
+ | **card** | `12px` | Card padding, list-item spacing |
450
+ | **compact** | `10px` | Form fields, tight clusters, badge padding |
451
+ | **micro** | `6px` | Icon-text gap, tag inner padding |
452
+
453
+ **Agent rule**: NEVER hardcode raw pixel values for spacing in generated UI. Always reference these named tokens (`spacing-rhythm.section`, etc.).
454
+
455
+ ## 5c. Widget & Structure Library
456
+
457
+ Structural patterns extracted from the page DOM — these are the **blueprints** an agent should follow to reproduce the page architecture (not just CSS values).
458
+
459
+ **3/8 structural patterns detected.**
460
+
461
+ ### Navigation Pattern
462
+
463
+ - **Position:** static (scrolls with page)
464
+ - **Layout:** unknown — Layout not classified
465
+ - **Height:** 40px
466
+ - **Logo:** ✗ absent
467
+ - **Nav links:** 1 primary items
468
+ - **CTAs in nav:** 0 (no buttons — links only)
469
+ - **Clone instruction:** Build a static unknown navigation. Link-only — no button styling needed.
470
+
471
+ ### Card Grid Pattern
472
+
473
+ - **Card count:** 5 cards detected
474
+ - **Columns (desktop):** 5-up grid
475
+ - **Card dimensions:** 274×336px (aspect 0.81:1)
476
+ - **Gap:** 0px between cards
477
+ - **Content:** ✗ no image
478
+ - **Clone instruction:** Build a 5-column grid (desktop) with cards at ~0.81:1 aspect ratio. Text/icon-only cards (no photography).
479
+
480
+ ### Footer Pattern
481
+
482
+ - **Columns:** 5
483
+ - **Links:** 17 total
484
+ - **Height:** 304px
485
+ - **Includes:** ✗ no newsletter | ✓ social icons | ✓ copyright
486
+ - **Clone instruction:** Build a 5-column footer with ~3 links per column, social media links, and a copyright line.
487
+
488
+ ## 6. Depth & Elevation
489
+
490
+ | Level | Treatment | Use |
491
+ |-------|-----------|-----|
492
+ | Flat (Level 0) | No shadow | Page background, content blocks |
493
+ | Layered (Level 1) | <br>`rgba(6, 6, 61, 0.2) 0px 16px 32px 0px` | Cards, elevated surfaces |
494
+ | Layered (Level 2) | <br>`rgb(53, 55, 254) 0px 0px 0px 1px` | Cards, elevated surfaces |
495
+
496
+ **Shadow Philosophy**: Multi-layered shadow system creating natural, atmospheric depth. Each shadow level combines multiple layers for realistic elevation.
497
+
498
+ ## 7. Motion & Interaction
499
+
500
+ ### Duration Scale
501
+
502
+ | Value | Tier | Typical Use |
503
+ |-------|------|-------------|
504
+ | `200ms` | Normal | Panel open/close, navigation |
505
+ | `1s` | Cinematic | Splash, marketing reveals |
506
+
507
+ ### Copy-Paste Transition Snippets
508
+
509
+ **Transform**
510
+ ```css
511
+ transition: transform 1s, -webkit-transform 1s;
512
+ ```
513
+
514
+ **Opacity**
515
+ ```css
516
+ transition: opacity 0.2s;
517
+ ```
518
+
519
+ **Color / Background**
520
+ ```css
521
+ transition: color 0.2s, background-color 0.2s;
522
+ ```
523
+
524
+ **Background**
525
+ ```css
526
+ transition: background-color 0.2s;
527
+ ```
528
+
529
+ ### Motion Fingerprint
530
+
531
+ - **Speed Character**: Cinematic & Slow (median duration: `1s`)
532
+ - **Dominant Easing**: standard CSS easings
533
+
534
+ > This design moves with cinematic & slow timing using standard CSS easings, creating a UI that feels slow and cinematic.
535
+
536
+ ## 8. Do's and Don'ts
537
+
538
+ ### Do
539
+ - Use Warm Cream (`#fff6f0`) as the page background — it's intentionally not pure white
540
+ - Use Satoshi as the primary typeface — it defines the brand personality
541
+ - Use negative letter-spacing (-2px) at display sizes for compressed, editorial headlines
542
+ - Use the extracted shadow patterns for elevation — they are tuned to match the brand palette
543
+ - Use #fab68d (`#fab68d`) as the primary accent — it's the brand's signature interactive color
544
+ - Use 40px border-radius on cards — consistent with the grid card corners
545
+ - Style form inputs with a `1px solid rgb(255, 246, 240)` border — use border-based inputs, not floating labels or underline-only
546
+ - Maintain nav height at 40px — consistent vertical space for the navigation bar
547
+ - Respect the 6px–72px spacing range — the design uses a wide scale for visual breathing room
548
+ - Use a 5-column grid on desktop — density matters for this content type
549
+
550
+ ### Don't
551
+ - Don't use pure white (`#ffffff`) as a page background — the warm tone is part of the brand identity
552
+ - Don't substitute with generic sans-serif or serif — the custom font carries the brand
553
+ - Don't increase letter-spacing on headings — the type is designed to run tight at scale
554
+ - Don't invent new shadow values — use only the extracted shadow levels
555
+ - Don't introduce additional saturated accent colors — the palette is intentionally controlled
556
+ - Don't remove the input border — the border is the primary affordance indicator for form fields
557
+ - Don't collapse or hide the nav on scroll without an explicit scroll-triggered animation — the design uses fixed nav presence
558
+ - Don't make the nav sticky — this design lets it scroll away to maximize content focus
559
+ - Don't put a CTA button in the nav — this design uses links only at the top
560
+
561
+
562
+ ## 7b. Enforceable Brand Rules
563
+
564
+ *Structured Do/Don't with reasoning and validation tests. Agents can programmatically verify generated UI.*
565
+
566
+ ```yaml
567
+ rules:
568
+ - id: brand-canvas-001
569
+ type: do
570
+ rule: "Always use the page background `rgb(255, 246, 240)` as the base canvas"
571
+ why: "Every component is designed to composit against this exact tone"
572
+ test: "document.body.style.backgroundColor === 'rgb(255, 246, 240)'"
573
+ - id: brand-accent-001
574
+ type: do
575
+ rule: "Reserve `rgb(250, 182, 141)` for primary CTAs and brand-mark signals only"
576
+ why: "Single chromatic assertion device — overuse dilutes meaning"
577
+ test: "querySelectorAll('[style*=\"rgb(250, 182, 141)\"]').length <= 3 per fold"
578
+ ```
579
+
580
+ ## 9. Responsive Behavior
581
+
582
+ ### Breakpoints
583
+ | Name | Width | Key Changes |
584
+ |------|-------|-------------|
585
+ | Mobile | 640px | Single column layout |
586
+ | Tablet | 768px | 2-column grids |
587
+ | Desktop | 1024px | Full layout |
588
+ | Large Desktop | 1280px | Maximum width |
589
+
590
+ ### Token Diff — Desktop vs Mobile
591
+
592
+ | Element | Property | Desktop | Mobile |
593
+ |---------|----------|---------|--------|
594
+ | heading | font-size | `96px` | `64px` |
595
+ | heading | line-height | `81.6px` | `54.4px` |
596
+ | nav | display | `flex` | `none` |
597
+ | nav | height | `40px` | `844px` |
598
+ | button | width | `156.406px` | `159.406px` |
599
+
600
+ ### Collapsing Strategy
601
+ - Headlines: 96px → 64px on mobile
602
+ - Navigation: flex → none on mobile
603
+ - Cards: multi-column → stacked vertical on mobile
604
+ - Footer: multi-column → stacked single column on mobile
605
+
606
+ ### Touch Targets
607
+ - Buttons: 5.76px 11.52px padding
608
+ - Navigation: adequate spacing between items
609
+ - Interactive elements: minimum 44px touch target recommended
610
+
611
+ ### Collapsing Narrative
612
+
613
+ How the structural patterns adapt from desktop to mobile (extracted from both viewport extractions):
614
+
615
+ - **Card grid: 5-up → 1-up** — cards stack as viewport narrows, becoming a vertical list on mobile.
616
+
617
+
618
+ ## 7c. Visual Effects & Dynamic Behavior
619
+
620
+ *The live/dynamic layer beyond static CSS — reproduce these, not flat substitutes. This is often what separates a faithful clone from a wireframe.*
621
+
622
+ - **Clip-path shapes** — 1 non-rectangular cut(s).
623
+ - **Blend modes** — 3 mix-blend layer(s).
624
+
625
+ > **Motion fingerprint**: non-rectangular shapes (1), blend modes
626
+
627
+ ## 9b. Visual Tone & Photography
628
+
629
+ **Tone:** Mixed photography + illustration
630
+
631
+ A balanced mix of photographic content and vector graphics. Photos likely carry product/lifestyle context while SVG handles icons, logos, and decorative accents.
632
+
633
+ **Canonical Brand Image (OG):**
634
+ - https://cdn.prod.website-files.com/63033e66271cd889cf528da1/6321983756c2513356c19c1b_open-graph-switchco.jpg
635
+ *This is the image shown when the site is shared on social media — represents the brand visual essence.*
636
+
637
+ **Hero Image (above-fold dominant visual):**
638
+ - Aspect: 0.89:1 (square / portrait)
639
+ - Rendered size: 640×720px
640
+ - Alt text: "Photo Simon"
641
+ - *Use this aspect ratio + composition for your clone's hero — mimicking the proportion preserves the visual hierarchy.*
642
+
643
+ **Aspect Ratio Distribution:**
644
+ - Landscape (1.15–2.3): 4 (22%)
645
+ - Portrait (<0.87): 5 (28%)
646
+ - Square (0.87–1.15): 6 (33%)
647
+ - Ultra-wide (>2.3): 3 (17%)
648
+
649
+ **Media Format Mix:**
650
+ - JPG: 1 (typically photographic content)
651
+ - WebP: 8 (optimized photo/illustration hybrid)
652
+ - PNG: 2 (logos, transparent UI elements, mockups)
653
+ - SVG: 8 (icons, illustrations, decorative geometry)
654
+
655
+ **Average rendered image size:** 240×223px
656
+ **Above-fold image count:** 5 / 18
657
+
658
+ **Decorative Patterns Detected:**
659
+ - 22 multi-stop linear gradients (mesh-like, 3+ color stops) — the brand leans on rich color transitions for visual depth
660
+ - 1 large decorative SVG shape (≥200×200px, non-icon) — likely blob/illustration accents
661
+ - 2 background patterns (non-photo url() backgrounds) — textures/illustrations as backdrops
662
+
663
+ **Clone instruction for decorative work:** This is a gradient-rich design — invest in multi-stop CSS gradients (3+ color stops), not solid backgrounds.
664
+
665
+ **Imagery Guidance for clones:**
666
+ - Mix photography and illustration intentionally: photos for product/context, vectors for icons + decorative accents.
667
+ - Respect the format split — replacing JPGs with illustrations (or vice versa) will shift the brand tone.
668
+
669
+ ## 10. Agent Prompt Guide
670
+
671
+ ### Quick Reference
672
+ - Background: Warm Cream (`#fff6f0`)
673
+ - Primary text: #1b1dfe (`#1b1dfe`)
674
+ - Accent: #fab68d (`#fab68d`)
675
+ - Border: Charcoal (`#333333`)
676
+ - Font: Satoshi
677
+ - Body: 16px weight 500
678
+
679
+ ### Example Component Prompts
680
+ - "Create a hero section on Warm Cream background (#fff6f0). Headline at 96px Satoshi weight 500, line-height 0.85, letter-spacing -2px, color #1b1dfe."
681
+ - "Create the primary CTA button: `#fab68d` background, `#1b1dfe` text, 9999px border-radius, 5.76px 11.52px padding, 700 weight, Satoshi font."
682
+ - "Design a card on `transparent` background. Border: none. Radius: 40px. Shadow: none. Padding: 0px."
683
+ - "Build navigation: relative on `#fff6f0`. Satoshi 16px weight 500 for links."
684
+
685
+ ### Iteration Guide
686
+ 1. **Canvas**: Set the light canvas to Warm Cream (`#fff6f0`) — every component is composited against this exact base.
687
+ 2. **Typography**: All type in Satoshi, weight range 500–700. Never exceed 700 — heavier weights break the brand's tonal restraint.
688
+ 3. **Accent**: #fab68d (`#fab68d`) is the sole interactive color. On hover → #1b1dfe (`#1b1dfe`). Use CSS transitions, not opacity/brightness filters.
689
+ 4. **Shape**: CTAs at `0px`, cards at `40px`. Apply border-radius from the extracted scale only — don't invent intermediate values.
690
+ 5. **Spacing**: Use the `--ca-space-*` token scale (6px–72px). All padding, margin, and gap values are multiples from this scale — no magic numbers.
691
+ 6. **Tokens**: Import from §11 CSS Export (`--ca-*` vars). Never hardcode hex values — always reference a token so theming remains consistent.
692
+
693
+ ## 11. CSS Design Tokens Raw Export
694
+
695
+ *Copy-paste ready `:root {}` block — all values extracted directly from the live site.*
696
+
697
+ ```css
698
+ /* Colors */
699
+ :root {
700
+ --ca-background: #fff6f0;
701
+ --ca-surface-1: #ffffff;
702
+ --ca-surface-2: transparent;
703
+ --ca-primary-hover: #1b1dfe;
704
+ --ca-hairline: #333333;
705
+ --ca-primary: #fab68d;
706
+ --ca-on-primary: #111111;
707
+ --ca-primary-focus: #101010;
708
+ }
709
+
710
+ /* Typography */
711
+ :root {
712
+ --ca-font-primary: "Canela", system-ui, sans-serif;
713
+ --ca-text-display: 96px;
714
+ --ca-text-heading: 72px;
715
+ --ca-text-body: 16px;
716
+ --ca-text-button: 18px;
717
+ }
718
+
719
+ /* Spacing & Radius */
720
+ :root {
721
+ --ca-space-xxs: 2px;
722
+ --ca-space-xs: 6px;
723
+ --ca-space-sm: 10px;
724
+ --ca-space-md: 12px;
725
+ --ca-space-base: 16px;
726
+ --ca-space-lg: 32px;
727
+ --ca-space-xl: 72px;
728
+ --ca-space-2xl: 80px;
729
+ --ca-space-3xl: 88px;
730
+ --ca-radius-none: 0px;
731
+ --ca-radius-xs: 2px;
732
+ --ca-radius-sm: 8px;
733
+ --ca-radius-md: 12px;
734
+ --ca-radius-lg: 20px;
735
+ --ca-radius-xl: 32px;
736
+ --ca-radius-full: 9999px;
737
+ }
738
+ ```
739
+
740
+
741
+ ## 13. Page Structure Skeleton
742
+
743
+ *The actual layout the source site uses. Reproduce these sections in order to match the site structure.*
744
+
745
+ ```yaml
746
+ page-skeleton:
747
+ - section: hero
748
+ tag: div
749
+ classes: ["page-wrapper"]
750
+ height: 5481px
751
+ width: full-bleed
752
+ layout: block
753
+ children: 5
754
+ tone: dark
755
+ contains: chart/canvas (reproduce as live data-viz, not a flat image)
756
+ - section: header
757
+ tag: div
758
+ classes: ["w-nav"]
759
+ height: 128px
760
+ width: full-bleed
761
+ layout: flex-row justify=normal
762
+ children: 2
763
+ bg: "rgb(255, 246, 240)"
764
+ contains: chart/canvas (reproduce as live data-viz, not a flat image)
765
+ padding: "16px 72px"
766
+ - section: navigation
767
+ tag: div
768
+ height: 96px
769
+ width: 1280px
770
+ layout: flex-row justify=space-between
771
+ children: 2
772
+ tone: dark
773
+ contains: chart/canvas (reproduce as live data-viz, not a flat image)
774
+ - section: feature-section
775
+ tag: main
776
+ classes: ["main-wrapper"]
777
+ height: 4833px
778
+ width: full-bleed
779
+ layout: block
780
+ children: 14
781
+ tone: dark
782
+ - section: faq
783
+ tag: section
784
+ classes: ["section-home-accordion"]
785
+ height: 868px
786
+ width: 1408px
787
+ layout: block
788
+ children: 1
789
+ bg: "rgb(255, 255, 255)"
790
+ - section: feature-section
791
+ tag: div
792
+ classes: ["container-large"]
793
+ height: 868px
794
+ width: 1280px
795
+ layout: block
796
+ children: 1
797
+ tone: dark
798
+ vertical-padding: ~128px (airy)
799
+ - section: content-section
800
+ tag: div
801
+ classes: ["cc-type-opt-out", "cc-theme-block", "cc-left"]
802
+ height: 312px
803
+ width: 384px
804
+ layout: flex-column justify=normal
805
+ children: 2
806
+ bg: "rgb(255, 246, 240)"
807
+ vertical-padding: ~32px
808
+ padding: "32px"
809
+ - section: feature-section
810
+ tag: section
811
+ classes: ["section-home-re"]
812
+ height: 720px
813
+ width: 1408px
814
+ layout: block
815
+ children: 1
816
+ bg: "rgb(255, 246, 240)"
817
+ - section: content-section
818
+ tag: div
819
+ height: 720px
820
+ width: 640px
821
+ layout: block
822
+ children: 1
823
+ tone: dark
824
+ - section: pricing
825
+ tag: div
826
+ classes: ["section-home-formules"]
827
+ height: 1426px
828
+ width: 1408px
829
+ layout: block
830
+ children: 1
831
+ bg: "rgb(255, 255, 255)"
832
+ - section: feature-section
833
+ tag: div
834
+ classes: ["container-large"]
835
+ height: 1426px
836
+ width: 1280px
837
+ layout: block
838
+ children: 1
839
+ tone: dark
840
+ vertical-padding: ~80px (generous)
841
+ - section: pricing
842
+ tag: div
843
+ classes: ["formule_item_photo-wrapper"]
844
+ height: 360px
845
+ width: 480px
846
+ layout: block
847
+ children: 2
848
+ tone: dark
849
+ - section: header
850
+ tag: header
851
+ classes: ["section-home-switch-family", "vertical-gradient", "noisy"]
852
+ height: 900px
853
+ width: 1408px
854
+ layout: flex-row justify=center
855
+ children: 2
856
+ bg-treatment: mesh-gradient
857
+ tone: dark
858
+ - section: unknown
859
+ tag: div
860
+ classes: ["pola-wrapper"]
861
+ height: 900px
862
+ width: 1408px
863
+ layout: flex-row justify=flex-start
864
+ children: 5
865
+ tone: dark
866
+ - section: feature-section
867
+ tag: div
868
+ classes: ["container-large"]
869
+ height: 195px
870
+ width: 768px
871
+ layout: block
872
+ children: 1
873
+ tone: dark
874
+ - section: feature-section
875
+ tag: div
876
+ classes: ["section-home-newsletter"]
877
+ height: 583px
878
+ width: 1408px
879
+ layout: block
880
+ children: 1
881
+ bg: "rgb(255, 246, 240)"
882
+ - section: feature-section
883
+ tag: div
884
+ classes: ["container-large"]
885
+ height: 583px
886
+ width: 1280px
887
+ layout: block
888
+ children: 1
889
+ tone: dark
890
+ vertical-padding: ~128px (airy)
891
+ - section: unknown
892
+ tag: div
893
+ classes: ["newsletter_image-wrapper"]
894
+ height: 303px
895
+ width: 264px
896
+ layout: flex-row justify=center
897
+ children: 2
898
+ tone: dark
899
+ - section: footer
900
+ tag: div
901
+ classes: ["footer"]
902
+ height: 464px
903
+ width: 1408px
904
+ layout: block
905
+ children: 1
906
+ bg: "rgb(255, 255, 255)"
907
+ - section: unknown
908
+ tag: div
909
+ classes: ["container-large"]
910
+ height: 464px
911
+ width: 1280px
912
+ layout: block
913
+ children: 1
914
+ tone: dark
915
+ vertical-padding: ~80px (generous)
916
+ ```
917
+
918
+ **Agent rule**: rebuild sections in this order (sorted by vertical position). Match the layout primitive (grid N-col / flex direction / block).
919
+
920
+
921
+ ## 14. Copy Library (Real Content from Source)
922
+
923
+ *Actual text content extracted from the live page. Use these strings verbatim when reproducing the site — they carry the brand voice.*
924
+
925
+ ```yaml
926
+ copy:
927
+ section-headings:
928
+ - "Bien plus qu’un bilan de compétences"
929
+ - "Ré inventer"
930
+ - "Deux formules, un seul objectif"
931
+ - "La Switch newsletter"
932
+ sub-headings:
933
+ - "Formule Présentielle"
934
+ - "Formule En ligne"
935
+ - "Un accès à vie à la Switch family"
936
+ ctas:
937
+ - "Tout rejeter"
938
+ - "Allow cookies"
939
+ - "Le Bilan Switch
940
+ ↓"
941
+ navigation:
942
+ - "Le Bilan"
943
+ - "Ils ont switché"
944
+ - "Qui sommes-nous ?"
945
+ - "Notre équipe"
946
+ - "La Switch Family"
947
+ - "Financements"
948
+ - "Blog"
949
+ - "Test: Le bon moment pour switcher ?"
950
+ - "FAQ"
951
+ - "On en parle ?"
952
+ ```
953
+
954
+ **Agent rule**: reuse these exact strings when generating UI. Do NOT translate or rephrase — brand voice is preserved through the original wording.
955
+
956
+
957
+ ## 15. Asset Inventory (Image Roles & Ratios)
958
+
959
+ *Image inventory classified by role and aspect ratio. When reproducing the site, allocate this number of assets per role.*
960
+
961
+ ```yaml
962
+ assets:
963
+ product:
964
+ count: 1
965
+ avg-ratio: 0.89
966
+ common-aspect: "~1:1 square"
967
+ sample-alts:
968
+ - "Photo Simon"
969
+ thumbnail:
970
+ count: 7
971
+ avg-ratio: 0.98
972
+ common-aspect: "~1:1 square"
973
+ ```
974
+
975
+ **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`.
976
+
977
+
978
+ ## 16. Component HTML Templates
979
+
980
+ *Suggested HTML markup for reproducing the key components — based on what was detected in the source DOM.*
981
+
982
+ ### Button (primary action)
983
+ ```html
984
+ <button class="btn btn-primary">
985
+ Tout rejeter
986
+ </button>
987
+ ```
988
+ _Source pattern detected: padding `5.76px 11.52px` · radius `0px` · weight `700`_
989
+
990
+ **Agent rule**: use these markup skeletons as the structural baseline. Apply tokens from §2-3 for visual styling.
991
+
992
+
993
+ ## 12. Known Extraction Gaps
994
+
995
+ *Auto-detected limitations of this extraction — understand before building:*
996
+
997
+ - **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.
998
+ - **1 parasitic shadow(s) detected** — colored box-shadows (not near-black) found in allShadows. These likely originate from browser extensions or third-party injected widgets (e.g. Grammarly, chat overlays), not from the site's own design system. Discard them when building.
999
+
1000
+
1001
+ ---
1002
+ ## Extraction Completeness: 54/100 (D)
1003
+
1004
+ | Category | Score | Max | Detail |
1005
+ |----------|-------|-----|--------|
1006
+ | Colors & Palette | 19 | 25 | 14 named colors |
1007
+ | Typography | 15 | 20 | 6 roles defined |
1008
+ | Components | 16 | 20 | 4 specs extracted |
1009
+ | Motion & Interaction | 0 | 15 | No keyframes |
1010
+ | CSS Custom Properties | 0 | 10 | 0 vars |
1011
+ | Responsive Breakpoints | 4 | 5 | 4 breakpoints |
1012
+ | Variable Fonts | 0 | 5 | None detected |
1013
+
1014
+ ## 12. Known Gaps & Confidence
1015
+
1016
+ 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.
1017
+
1018
+ | Category | What's missing | Fallback strategy |
1019
+ |----------|----------------|-------------------|
1020
+ | **Keyframe animations** | No @keyframes declarations found (transitions only) | Use CSS transitions for state changes; avoid complex scroll-based animations |
1021
+ | **Dark mode** | No dark-mode CSS variables or media queries detected | Light mode is canonical; do not generate dark-mode variants unless explicitly requested |
1022
+ | **Design tokens** | Only 0 CSS custom properties (low signal for semantic naming) | Color names are nearest-neighbor approximations; verify against brand guidelines if available |
1023
+
1024
+ ### Per-section confidence
1025
+
1026
+ | Section | Confidence | Reason |
1027
+ |---------|------------|--------|
1028
+ | §1 Visual Theme | High | Body bg extracted via getComputedStyle() |
1029
+ | §2 Colors | Low | 0 CSS vars (semantic naming requires ≥20 for high) |
1030
+ | §3 Typography | High | 6 typography roles inferred |
1031
+ | §4 Components | Medium | 4 component variants captured |
1032
+ | §7 Motion | Medium | Transitions only |
1033
+ | §8 Do's/Don'ts | High | 19 rules generated; design-decisions.json has evidence per rule |
1034
+ | §9 Responsive | High | 4 breakpoints detected |
1035
+ | §9b Photography | High | 18 images, hero present |
1036
+
1037
+ ---
1038
+ *Generated by Prism — automated Playwright extraction + design analysis.*
1039
+ *Source: https://www.switchcollective.com | 2026-05-31T07:06:32.953Z*
1040
+ *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.*