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,1024 @@
1
+ ---
2
+ version: alpha
3
+ name: posthog.com
4
+ description: "Light product system built on #eeefe9 with #cd8407 as the primary CTA accent. Type anchored in IBM Plex Sans Variable at 24px / weight 800. Extracted automatically from https://posthog.com/ — rendered styles via getComputedStyle() + CSS custom properties (token-only values may not be painted)."
5
+ narrative: |
6
+ posthog.com is built on a warm, off-white canvas (rgb(238, 239, 233)).
7
+ The system uses rgb(205, 132, 7) as the high-saturation accent for primary actions.
8
+ Crisp CTAs (4px radius) reinforce a precise, technical aesthetic alongside IBM Plex Sans Variable as the primary typeface.
9
+ IBM Plex Sans Variable is paired with IBM Plex Sans for secondary roles.
10
+ A restrained elevation system (2 distinct shadows) — shadows reserved for the few elements that must lift off the page.
11
+ Motion is a first-class concern — 43 keyframe animations plus transition-driven interactions.
12
+
13
+ colors:
14
+ background: "#eeefe9"
15
+ surface-1: "#e5e7e0"
16
+ surface-2: "#ffffff"
17
+ ink-muted: "#23251d"
18
+ ink-subtle: "#23251d"
19
+ primary: "#cd8407"
20
+ on-primary: "#111111"
21
+ primary-hover: "#b17816"
22
+ hairline: "#bfc1b7"
23
+
24
+ typography:
25
+ display-xl:
26
+ fontFamily: "IBM Plex Sans Variable"
27
+ fontSize: 24px
28
+ fontWeight: 800
29
+ lineHeight: 1.33
30
+ letterSpacing: -0.6px
31
+ display-md:
32
+ fontFamily: "IBM Plex Sans Variable"
33
+ fontSize: 19.2857px
34
+ fontWeight: 600
35
+ lineHeight: 1.56
36
+ letterSpacing: -0.482143px
37
+ body:
38
+ fontFamily: "IBM Plex Sans Variable"
39
+ fontSize: 16px
40
+ fontWeight: 400
41
+ lineHeight: 1.5
42
+ letterSpacing: 0
43
+ body-sm:
44
+ fontFamily: "IBM Plex Sans Variable"
45
+ fontSize: 15px
46
+ fontWeight: 600
47
+ lineHeight: 1.71
48
+ letterSpacing: 0
49
+ button:
50
+ fontFamily: "IBM Plex Sans Variable"
51
+ fontSize: 13px
52
+ fontWeight: 500
53
+ lineHeight: 1
54
+ letterSpacing: 0
55
+
56
+ rounded:
57
+ none: 0px
58
+ xs: 4px
59
+ sm: 8px
60
+ md: 8px
61
+ lg: 8px
62
+ xl: 8px
63
+ xxl: 24px
64
+ pill: 9999px
65
+
66
+ spacing:
67
+ xxs: 2px
68
+ xs: 4px
69
+ sm: 8px
70
+ md: 16px
71
+ lg: 24px
72
+ xl: 32px
73
+ xxl: 64px
74
+ section: 80px
75
+
76
+ components:
77
+ button-ghost:
78
+ backgroundColor: "transparent"
79
+ textColor: "{colors.ink-subtle}"
80
+ typography: "{typography.button}"
81
+ rounded: "{rounded.xs}"
82
+ padding: 2px 8px
83
+ button-primary-brand:
84
+ backgroundColor: "{colors.primary}"
85
+ textColor: "{colors.ink-subtle}"
86
+ typography: "{typography.body}"
87
+ rounded: "{rounded.xs}"
88
+ button-ghost-2:
89
+ backgroundColor: "transparent"
90
+ textColor: "{colors.ink-subtle}"
91
+ typography: "{typography.button}"
92
+ rounded: "{rounded.xs}"
93
+ padding: 2px 4px
94
+ card-standard-card:
95
+ backgroundColor: "transparent"
96
+ typography: "{typography.body}"
97
+ rounded: "{rounded.none}"
98
+ padding: 16px 32px
99
+ tab-ghost-tab:
100
+ backgroundColor: "transparent"
101
+ textColor: "#65675e"
102
+ typography: "{typography.body-sm}"
103
+ rounded: "{rounded.xs}"
104
+ padding: 10px 12px
105
+ code-block-inline-code--pre:
106
+ backgroundColor: "transparent"
107
+ textColor: "transparent"
108
+ typography: "{typography.body-sm}"
109
+ rounded: "{rounded.xs}"
110
+ alert-alert-banner:
111
+ backgroundColor: "{colors.surface-2}"
112
+ textColor: "#4d4f46"
113
+ typography: "{typography.body}"
114
+ rounded: "{rounded.xs}"
115
+ padding: 16px
116
+
117
+ extracted_at: "2026-05-30T22:28:32.217Z"
118
+ completeness: 89
119
+ scoreVersion: "v2"
120
+
121
+ ---
122
+
123
+ # Design System — posthog.com
124
+ > Extracted automatically by Clone Architect from https://posthog.com
125
+ > Date: 2026-05-30
126
+ > Viewport: Desktop 1440x900 + Mobile 390x844
127
+ > 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).
128
+
129
+ > ⚠️ **LOW-CONFIDENCE CAPTURE** — this extraction likely sampled an app shell / interactive demo, **not** the marketing page. Signals: button labels look like filenames (home.mdx); editor-chrome labels (Ask a question, Switch to website mode); only 1 card component detected; footer has 0 links. Treat the component, color and copy values below with caution, and re-extract the canonical marketing URL if fidelity matters.
130
+
131
+ > **🤖 TL;DR for AI agents** (read this first — saves you scanning the full doc):
132
+ >
133
+ > - **Canvas**: `rgb(238, 239, 233)` is the page background. Every component composits against this.
134
+ > - **Accent**: `rgb(205, 132, 7)` for primary CTAs ONLY. Never decorative.
135
+ > - **Body type**: 16px (token: `typography.body`). Default for ALL text not in a heading role.
136
+ > - **Section rhythm**: 48px between major bands. Card padding: 24px.
137
+ > - **Default radius**: 8px on buttons/inputs. Pills (`9999px`) only for icon-buttons or status chips.
138
+ >
139
+ > **Before generating UI**: import this DESIGN.md, scan §2 (Color Palette) + §4 (Components) + §10 (Agent Guide). Skip §11–12 unless extending.
140
+
141
+ ## 1. Visual Theme & Atmosphere
142
+
143
+ posthog.com's canvas is a warm, intentionally-tinted surface (`#eeefe9`) — a refusal of the default white that immediately signals editorial intent. This isn't sterility, it's an invitation to read.
144
+
145
+ Typography is anchored in **IBM Plex Sans Variable**. Headlines use weight 800 for confident, assertive presence — the brand wants to be heard. Negative letter-spacing at display sizes (-0.6px at 24px) compresses headlines into engineered blocks, dense and precise.
146
+
147
+ Body text reads in Pure Black (`#000000`) (contrast ratio 19.7:1, well above WCAG AA). **#cd8407** (`#cd8407`) 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.
148
+ Border radius varies from pill-shaped (fully rounded) to moderately rounded elements, creating visual rhythm. Motion design uses smooth easing curves for polished state transitions. The site uses a variable font with WGHT axes, enabling precise weight/width control across the type hierarchy.
149
+
150
+ **Key Characteristics:**
151
+ - Background: Light Gray (`#eeefe9`)
152
+ - Primary typeface: Source Code Pro
153
+ - Accent: #cd8407 (`#cd8407`)
154
+ - Display: 24px weight 800, letter-spacing -0.6px
155
+ - Shadow system: 2 distinct elevation levels
156
+ - Custom fonts loaded: Source Code Pro, IBM Plex Sans Variable, Fairytale, Computer Modern, Squeak, Open Runde, Charter
157
+
158
+ ## 2. Color Palette & Roles
159
+
160
+ ### Background & Surface
161
+ - **Light Gray** (`#eeefe9`): Page background (primary)
162
+ - **Translucent Light Gray (75%)** (`rgba(229, 231, 224, 0.75)`): Surface / elevated background
163
+ - **Pure White** (`#ffffff`): Surface / elevated background
164
+ - **Cream** (`#fdfdf8`): Surface / elevated background
165
+ - **Pure White** (`#fffefe`): Surface / elevated background
166
+
167
+ ### Text & Content
168
+ - **Pure Black** (`#000000`): Primary body text
169
+ - **Warm Brown** (`#23251d`): Secondary text
170
+ - **Deep Navy** (`#111827`): Secondary text
171
+ - **Pure Black** (`#080807`): Secondary text
172
+ - **#0500ff** (`#0500ff`): Secondary text
173
+
174
+ ### Accent & Interactive
175
+ - **#cd8407** (`#cd8407`): Interactive / accent
176
+ - **Honey** (`#b17816`): Interactive / accent
177
+ - **#eb9d2a** (`#eb9d2a`): Interactive / accent
178
+ - **#e1d7c2** (`#e1d7c2`): Interactive / accent
179
+ - **Dark Gray** (`#374151`): Interactive / accent
180
+ - **#1d4aff** (`#1d4aff`): Interactive / accent
181
+ - **#f9bd2b** (`#f9bd2b`): Interactive / accent
182
+
183
+ ### Border & Divider
184
+ - **Silver** (`#bfc1b7`): Borders / dividers
185
+ - **Silver** (`#b6b7af`): Borders / dividers
186
+ - **Translucent Silver (50%)** (`rgba(210, 211, 204, 0.5)`): Borders / dividers
187
+ - **Silver** (`#d0d1c9`): Borders / dividers
188
+ - **#dad7d4** (`#dad7d4`): Borders / dividers
189
+
190
+ ### Full Extracted Palette
191
+ **266 colors rendered on the page** + **3** more declared in design tokens (CSS custom properties — not necessarily painted). (22 categorized above + 247 additional below.)
192
+ Rendered values are read via `getComputedStyle()`; token values come from CSS variable declarations. Third-party logo colors are filtered out.
193
+
194
+ - `#65675e` — Dim Gray
195
+ - `#4d4f46` — Dark Gray
196
+ - `#9ea096` — Cool Gray
197
+ - `#73756b` — Stone
198
+ - `#f54e00` — Bright Orange
199
+ - `rgba(47, 128, 250, 0.08)` — Translucent Ring Blue (8%)
200
+ - `#71736b` — Stone
201
+ - `rgba(41, 219, 187, 0.92)` — Translucent #29dbbb (92%)
202
+ - `#29d4c0` — #29d4c0
203
+ - `#2ea2d3` — Sky Bright
204
+ - `#b62ad9` — #b62ad9
205
+ - `#ff5a00` — Bright Orange
206
+ - `#4b73ff` — Ring Blue
207
+ - `#ff66f4` — Magenta
208
+ - `#ff0105` — Red
209
+ - `#fe7b02` — #fe7b02
210
+ - `#20c178` — Emerald
211
+ - `#40ba9b` — #40ba9b
212
+ - `#ab81e9` — #ab81e9
213
+ - `#00ba97` — Emerald
214
+ - `#128414` — Forest Green
215
+ - `#0079ff` — #0079ff
216
+ - `#00e1ff` — #00e1ff
217
+ - `#1f1f1f` — Near Black
218
+ - `#3ecf8e` — #3ecf8e
219
+ - `#f7d046` — #f7d046
220
+ - `#f2a73b` — #f2a73b
221
+ - `#ee792f` — Coral
222
+ - `#eb5829` — Vermillion
223
+ - `#ea3326` — M Tricolor Red
224
+ - `#1f40ec` — #1f40ec
225
+ - `#141414` — Jet Black
226
+ - *…+215 more in `raw-css.json` (`desktop.allColors`).*
227
+
228
+ ### CSS Custom Properties (Design Tokens)
229
+
230
+ **Shadow Token**
231
+ - `--tw-ring-offset-shadow`: `0 0 #0000`
232
+ - `--tw-ring-shadow`: `0 0 #0000`
233
+ - `--tw-shadow`: `0 0 #0000`
234
+ - `--tw-shadow-colored`: `0 0 #0000`
235
+
236
+ **Spacing Token**
237
+ - `--tw-numeric-spacing`: ``
238
+ - `--tw-border-spacing-x`: `0`
239
+ - `--tw-border-spacing-y`: `0`
240
+ - `--viewport-padding`: `25px`
241
+
242
+ **Other tokens**
243
+ - `--squeak-button-color`: `245,78,0`
244
+ - `--swiper-pagination-bullet-inactive-color`: `#000`
245
+ - `--squeak-primary-color`: `0,0,0`
246
+ - `--tw-ring-color`: `rgba(59,130,246,.5)`
247
+ - `--swiper-theme-color`: `#007aff`
248
+ - `--swiper-pagination-color`: `#f54e00`
249
+ - `--tw-ring-offset-color`: `#fff`
250
+ - `--tw-text-opacity`: `1`
251
+
252
+ ## 3. Typography Rules
253
+
254
+ ### Font Families
255
+ - **Primary**: `IBM Plex Sans Variable`
256
+ - **Secondary**: `Source Code Pro`
257
+ - **Font 3**: `Fairytale`
258
+ - **Font 4**: `Computer Modern`
259
+ - **Font 5**: `Squeak`
260
+
261
+ ### Custom Fonts Loaded
262
+ - **Source Code Pro** weight 400 (normal)
263
+ - **IBM Plex Sans Variable** weight 100 700 (normal)
264
+ - **Fairytale** weight 400 (normal)
265
+ - **Computer Modern** weight 400 (normal)
266
+ - **Squeak** weight 700 (normal)
267
+ - **Open Runde** weight 400 (normal)
268
+ - **Open Runde** weight 500 (normal)
269
+ - **Open Runde** weight 600 (normal)
270
+ - **Open Runde** weight 700 (normal)
271
+ - **Charter** weight 400 (normal)
272
+ - **Charter** weight 700 (normal)
273
+ - **swiper-icons** weight 400 (normal)
274
+
275
+ ### Typography Hierarchy
276
+
277
+ | Role | Font | Size | Weight | Line Height | Letter Spacing | Notes |
278
+ |------|------|------|--------|-------------|----------------|-------|
279
+ | Display Hero | IBM Plex Sans Variable | 24px | 800 | 1.33 | -0.6px | Main headline (h1) |
280
+ | Sub-heading | IBM Plex Sans Variable | 19.2857px | 600 | 1.56 | -0.482143px | Third-level heading (h3) |
281
+ | Body | IBM Plex Sans Variable | 16px | 400 | 1.5 | normal | Standard reading text |
282
+ | Card Title | IBM Plex Sans Variable | 15px | 400 | 1.71 | normal | Card headings |
283
+ | Link | IBM Plex Sans Variable | 15px | 600 | 1.71 | normal | Link (15px) — Decoration: none |
284
+ | Button | IBM Plex Sans Variable | 13px | 500 | 1 | normal | Button label (13px) |
285
+ | Button | IBM Plex Sans Variable | 13px | 400 | 1.5 | normal | Button label (13px) |
286
+
287
+ ### Full Font Size Scale
288
+
289
+ Sizes detected in the design (descending): `36px`, `24px`, `21.43px`, `20px`, `19.29px`, `18px`, `16px`, `15px`, `14px`, `13px`, `12px`
290
+
291
+ > 6 size(s) detected outside the sampled hierarchy (36px, 21.4286px, 20px, 18px, 14px, 12px). These appear on elements not in the sampled set — likely additional display sizes, marketing-section overrides, or third-party-widget styles.
292
+
293
+ ### OpenType & Variable Font Features
294
+
295
+ **Variable font axes:**
296
+ - WGHT axis
297
+
298
+ ## 4. Component Stylings
299
+
300
+ ### Buttons
301
+
302
+ **Ghost**
303
+ - Background: `transparent`
304
+ - Text: `#23251d` `{colors.ink-subtle}`
305
+ - Padding: 2px 8px
306
+ - Radius: 4px
307
+ - Font: 13px weight 500
308
+ - Use: Subtle action, toolbar, nav button
309
+ - Focus: backgroundColor: `rgb(200, 202, 193)`
310
+
311
+ **Primary Brand**
312
+ - Background: `#cd8407` `{colors.primary}`
313
+ - Text: `#23251d` `{colors.ink-subtle}`
314
+ - Padding: 0px
315
+ - Radius: 6px
316
+ - Border: 1px solid rgb(177, 120, 22)
317
+ - Font: 16px weight 400
318
+ - Use: Primary CTA / brand action
319
+ - Focus: backgroundColor: `rgb(200, 202, 193)`
320
+
321
+ **Ghost**
322
+ - Background: `transparent`
323
+ - Text: `#23251d` `{colors.ink-subtle}`
324
+ - Padding: 2px 4px
325
+ - Radius: 4px
326
+ - Border: 1px solid rgba(0, 0, 0, 0)
327
+ - Font: 13px weight 400
328
+ - Use: Subtle action, toolbar, nav button
329
+ - Focus: backgroundColor: `rgb(200, 202, 193)`
330
+
331
+ **Light / Invert**
332
+ - Background: `#e5e7e0` `{colors.surface-1}`
333
+ - Text: `#65675e`
334
+ - Padding: 4px 6px
335
+ - Radius: 4px
336
+ - Font: 16px weight 400
337
+ - Use: Bright CTA on dark sections
338
+ - Focus: backgroundColor: `rgb(200, 202, 193)`
339
+
340
+ **Subtle**
341
+ - Background: `rgba(210, 211, 204, 0.5)`
342
+ - Text: `#23251d` `{colors.ink-subtle}`
343
+ - Padding: 12px 8px 4px 20px
344
+ - Radius: 0px 0px 6px 6px
345
+ - Font: 12px weight 400
346
+ - Use: Quiet action against page bg
347
+ - Focus: backgroundColor: `rgb(200, 202, 193)`
348
+
349
+ ### Cards & Containers
350
+
351
+ **Standard Card**
352
+ - Background: `transparent`
353
+ - Padding: 16px 32px
354
+ - Radius: 0px
355
+ - Use: Content containers, listing items
356
+
357
+ ### Tabs
358
+
359
+ **Ghost Tab**
360
+ - Background: `transparent`
361
+ - Text: `#65675e`
362
+ - Padding: 10px 12px
363
+ - Radius: 6px 6px 0px 0px
364
+ - Font: 14px weight 600
365
+ - Use: Navigation tabs, filter tabs
366
+
367
+ ### Code Blocks
368
+
369
+ **Inline Code / Pre**
370
+ - Background: `transparent`
371
+ - Text: `transparent`
372
+ - Padding: 0px
373
+ - Radius: 4px
374
+ - Font: 14px weight 500 — "Source Code Pro"
375
+ - Use: Code samples, CLI commands, syntax highlighting blocks
376
+
377
+ ### Alerts
378
+
379
+ **Alert Banner**
380
+ - Background: `#ffffff` `{colors.surface-2}`
381
+ - Text: `#4d4f46`
382
+ - Padding: 16px
383
+ - Radius: 6px
384
+ - Border: 1px solid rgb(191, 193, 183)
385
+ - Font: 16px weight 400
386
+ - Use: System alert, banner notification, toast
387
+
388
+
389
+ ## 4b. Component Behaviors (State Matrix)
390
+
391
+ ### Interaction State Narrative
392
+
393
+ - **Button**:
394
+ - **focus:** bg transparent → #c8cac1
395
+
396
+ *State transitions extracted via Playwright simulation — exact values in the YAML matrix below.*
397
+
398
+ ```yaml
399
+ component-behaviors:
400
+ button:
401
+ default:
402
+ bg: "rgba(0, 0, 0, 0)"
403
+ fg: "rgb(35, 37, 29)"
404
+ focus:
405
+ bg: "rgb(200, 202, 193)"
406
+ fg: "rgb(35, 37, 29)"
407
+ link:
408
+ default:
409
+ bg: "rgba(0, 0, 0, 0)"
410
+ fg: "rgb(77, 79, 70)"
411
+ card:
412
+ default:
413
+ bg: "rgba(0, 0, 0, 0)"
414
+ fg: "rgb(55, 65, 81)"
415
+ navLink:
416
+ default:
417
+ bg: "rgba(0, 0, 0, 0)"
418
+ fg: "rgb(77, 79, 70)"
419
+ tab:
420
+ default:
421
+ bg: "rgba(0, 0, 0, 0)"
422
+ fg: "rgb(101, 103, 94)"
423
+ ```
424
+
425
+ **Agent usage**: Validate generated components against this matrix. If your output's `:hover` state changes properties not listed here, you are off-brand.
426
+
427
+
428
+ ## 4c. Component Vocabulary (Closed System)
429
+
430
+ *This brand uses ONLY the following component vocabulary. Introducing new variants without justification breaks the system's tonal coherence.*
431
+
432
+ ### Buttons
433
+ - **4 shape(s)** in this system: `Ghost`, `Primary Brand`, `Light / Invert`, `Subtle`
434
+ - **DO NOT introduce new buttons variants** without justification
435
+
436
+ ### Cards & Containers
437
+ - **1 shape(s)** in this system: `Standard Card`
438
+ - **DO NOT introduce new cards & containers variants** without justification
439
+
440
+ ### Tabs
441
+ - **1 shape(s)** in this system: `Ghost Tab`
442
+ - **DO NOT introduce new tabs variants** without justification
443
+
444
+ ### Code Blocks
445
+ - **1 shape(s)** in this system: `Inline Code / Pre`
446
+ - **DO NOT introduce new code blocks variants** without justification
447
+
448
+ ### Alerts
449
+ - **1 shape(s)** in this system: `Alert Banner`
450
+ - **DO NOT introduce new alerts variants** without justification
451
+
452
+ ## 5. Layout Principles
453
+
454
+ ### Layout Type
455
+ **top-nav + content**
456
+
457
+ ### Grid
458
+ Flexbox column
459
+
460
+ ### Max Width
461
+ 1200px
462
+
463
+ ### Spacing System
464
+ Compact spacing — information density prioritized
465
+
466
+ | Token | Value |
467
+ |-------|-------|
468
+ | xxs | 2px |
469
+ | xs | 4px |
470
+ | sm | 8px |
471
+ | md | 16px |
472
+ | base | 32px |
473
+ | lg | 24px |
474
+ | xl | 32px |
475
+ | 2xl | 48px |
476
+ | 3xl | 64px |
477
+
478
+ ### Border Radius Scale
479
+ | Name | Value | Use |
480
+ |------|-------|-----|
481
+ | None | 0px | No rounding |
482
+ | Xs | 4px | Tiny corners (badges, micro elements) |
483
+ | Sm | 8px | Buttons, inputs, small elements |
484
+ | Md | 8px | Cards, containers |
485
+ | Lg | 8px | Large rounded elements, pill segments |
486
+ | Xl | 8px | Category strips, featured containers |
487
+ | Full | 9999px | Pills, avatars, circular elements |
488
+
489
+ ### Shape Language
490
+
491
+ | Component | Border Radius |
492
+ |-----------|---------------|
493
+ | Buttons | `4px` |
494
+ | Cards & Containers | `0px` |
495
+ | Tabs | `6px 6px 0px 0px` |
496
+ | Code Blocks | `4px` |
497
+ | Alerts | `6px` |
498
+ | Page Body | `0px` |
499
+ | Navigation | `0px` |
500
+
501
+ **Shape Personality**: Moderate Rounding — Medium corners (4–12px). Modern SaaS standard, neither sharp nor pill.
502
+
503
+ **Full Radius Spectrum**: 0px, 2px, 4px, 5px, 6px, 8px, full/pill (from `allBorderRadii` scan)
504
+
505
+
506
+ ## 5b. Spacing Rhythm Names
507
+
508
+ *Named spacing tokens with explicit use cases. Use these names in YOUR code instead of raw pixels for consistency.*
509
+
510
+ | Name | Value | Use case |
511
+ |------|-------|----------|
512
+ | **hero** | `64px` | Top/bottom of full-bleed hero sections |
513
+ | **section** | `32px` | Between major bands (color change, content shift) |
514
+ | **subsection** | `24px` | Within a section, between content groups |
515
+ | **card** | `16px` | Card padding, list-item spacing |
516
+ | **compact** | `8px` | Form fields, tight clusters, badge padding |
517
+ | **micro** | `4px` | Icon-text gap, tag inner padding |
518
+
519
+ **Agent rule**: NEVER hardcode raw pixel values for spacing in generated UI. Always reference these named tokens (`spacing-rhythm.section`, etc.).
520
+
521
+ ## 5c. Widget & Structure Library
522
+
523
+ Structural patterns extracted from the page DOM — these are the **blueprints** an agent should follow to reproduce the page architecture (not just CSS values).
524
+
525
+ **4/8 structural patterns detected.**
526
+
527
+ ### Hero Pattern
528
+
529
+ - **Composition:** split-left-text — Split layout, text-left/media-right — heading + body in left column, image/illustration in right column. Common for product showcases.
530
+ - **Viewport coverage:** full-viewport hero (≥70% screen height)
531
+ - **Heading:** "" — 24px left-aligned
532
+ - **Subheading:** "The new way to build productsProduct development used to mean manually writing code, running analysis, diagnosing bugs, and rolling out changes using "
533
+ - **Media:** present, positioned right
534
+ - **CTAs:** 13 (primary: "Get started - free")
535
+ - **Clone instruction:** Reproduce the **split-left-text** layout. Use the heading font-size token at the documented size. Place media right of text.
536
+
537
+ ### Card Grid Pattern
538
+
539
+ - **Card count:** 4 cards detected
540
+ - **Columns (desktop):** 4-up grid
541
+ - **Card dimensions:** 384×108px (aspect 3.55:1)
542
+ - **Gap:** 16px between cards
543
+ - **Content:** ✗ no image + icon
544
+ - **Clone instruction:** Build a 4-column grid (desktop) with cards at ~3.55:1 aspect ratio. Text/icon-only cards (no photography).
545
+
546
+ ### Pricing Table Pattern
547
+
548
+ - **Tier count:** 2 pricing tiers
549
+ - **Layout:** vertical stacked
550
+ - **Columns (desktop):** 2-up
551
+ - **Feature list:** ✓ (median ~10 feature points per tier)
552
+ - **Clone instruction:** Build a 2-column vertical-stack pricing comparison.
553
+
554
+ ### Footer Pattern
555
+
556
+ - **Columns:** 1
557
+ - **Links:** 0 total
558
+ - **Height:** 6px
559
+ - **Includes:** ✗ no newsletter | ✗ no social |
560
+ - **Clone instruction:** Build a 1-column footer with ~0 links per column.
561
+
562
+ ## 6. Depth & Elevation
563
+
564
+ | Level | Treatment | Use |
565
+ |-------|-----------|-----|
566
+ | Flat (Level 0) | No shadow | Page background, content blocks |
567
+ | Layered (Level 1) | <br>`rgba(0, 0, 0, 0) 0px 0px 0px 0px`,<br>`rgba(0, 0, 0, 0) 0px 0px 0px 0px`,<br>`rgba(0, 0, 0, 0.25) 0px 25px 50px -12px` | Cards, elevated surfaces |
568
+ | Layered (Level 2) | <br>`rgba(0, 0, 0, 0) 0px 0px 0px 0px`,<br>`rgba(0, 0, 0, 0) 0px 0px 0px 0px`,<br>`rgba(255, 255, 255, 0.4) 0px 0px 6px 2px` | Cards, elevated surfaces |
569
+
570
+ **Shadow Philosophy**: Multi-layered shadow system creating natural, atmospheric depth. Each shadow level combines multiple layers for realistic elevation.
571
+
572
+ ## 7. Motion & Interaction
573
+
574
+ ### Dominant Easing Curves
575
+
576
+ | Curve | Semantic Name |
577
+ |-------|---------------|
578
+ | `cubic-bezier(0.4,0,0.2,1)` | Material Standard — Balanced |
579
+
580
+ ### Duration Scale
581
+
582
+ | Value | Tier | Typical Use |
583
+ |-------|------|-------------|
584
+ | `150ms` | Fast | Hover states, micro-interactions |
585
+ | `300ms` | Normal | Panel open/close, navigation |
586
+
587
+ ### Copy-Paste Transition Snippets
588
+
589
+ **All Props**
590
+ ```css
591
+ transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
592
+ ```
593
+
594
+ **Color / Background**
595
+ ```css
596
+ transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.15s cub...;
597
+ ```
598
+
599
+ **All Props**
600
+ ```css
601
+ transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
602
+ ```
603
+
604
+ ### Keyframe Animation Catalog
605
+
606
+ | Animation Name | Type | Animated Props | Use Hint |
607
+ |----------------|------|----------------|----------|
608
+ | `slideRight` | Slide | transform | UI transition |
609
+ | `rcSliderTooltipZoomDownIn` | Fade + Move | opacity, transform, transform-origin | Focus / emphasis |
610
+ | `rcSliderTooltipZoomDownOut` | Fade + Move | transform, transform-origin, opacity | Focus / emphasis |
611
+ | `wobble` | Rotate / Spin | transform | UI transition |
612
+ | `breathe` | Scale | transform | UI transition |
613
+ | `develop` | Fade | filter, opacity | UI transition |
614
+ | `flash` | Scale | transform | UI transition |
615
+ | `float` | Slide | transform | UI transition |
616
+ | `gradient-rotate` | Custom | background-position-x, background-position-y | Loading indicator |
617
+ | `grow` | Scale | transform | UI transition |
618
+ | `grow-sm` | Scale | transform | UI transition |
619
+ | `hogfather-jump` | Custom | margin-top | UI transition |
620
+ | `hogfather-roll` | Scale | left, transform | UI transition |
621
+ | `jump-out` | Scale | transform | UI transition |
622
+ | `ping` | Fade + Move | opacity, transform | Attention / status |
623
+ | `pulse` | Fade | opacity | Attention / status |
624
+ | `shimmer` | Custom | background-position-x, background-position-y | Loading placeholder |
625
+ | `slideUpFadeIn` | Fade + Move | opacity, transform | Element entrance |
626
+ | `spin` | Rotate / Spin | transform | Loading indicator |
627
+ | `wiggle` | Rotate / Spin | transform | Playful feedback |
628
+
629
+ > *23 additional animations omitted (repetitive variants). See raw keyframes in `raw-css.json`.*
630
+
631
+ ### Motion Fingerprint
632
+
633
+ - **Speed Character**: Deliberate & Calm (median duration: `300ms`)
634
+ - **Dominant Easing**: custom cubic-bezier curves
635
+ - **Animation Library**: 43 unique animations (43 total including variants)
636
+
637
+ > This design moves with deliberate & calm timing using custom cubic-bezier curves, creating a UI that feels calm and controlled.
638
+
639
+ ## 8. Do's and Don'ts
640
+
641
+ ### Do
642
+ - Use Light Gray (`#eeefe9`) as the page background — it's intentionally not pure white
643
+ - Use IBM Plex Sans Variable as the primary typeface — it defines the brand personality
644
+ - Use negative letter-spacing (-0.6px) at display sizes for compressed, editorial headlines
645
+ - Use the extracted shadow patterns for elevation — they are tuned to match the brand palette
646
+ - Use full-pill radius (9999px) only for specific elements (avatars, pills, toggles)
647
+ - Use #cd8407 (`#cd8407`) as the primary accent — it's the brand's signature interactive color
648
+ - Use 6px border-radius on buttons — the standard corner rounding for interactive elements
649
+ - Apply 16px 32px padding inside cards — matches the design system's content breathing room
650
+ - Respect the 4px–32px spacing range — the design uses a wide scale for visual breathing room
651
+ - Make the hero full-viewport (≥70% screen height) — this design uses an immersive hero, not a tall navbar
652
+ - Build the hero as a split layout with media on the left — text and visual share equal weight
653
+ - Include exactly 13 CTAs in the hero (primary + secondary) — this design pattern is multi-action, not single-purpose
654
+ - Each card uses an icon (not photo) — the visual language is illustrative, not photographic
655
+ - Use a 4-column grid on desktop — density matters for this content type
656
+
657
+ ### Don't
658
+ - Don't use pure white (`#ffffff`) as a page background — the warm tone is part of the brand identity
659
+ - Don't substitute with generic sans-serif or serif — the custom font carries the brand
660
+ - Don't increase letter-spacing on headings — the type is designed to run tight at scale
661
+ - Don't invent new shadow values — use only the extracted shadow levels
662
+ - Don't apply pill radius on rectangular buttons or cards — it's reserved for specific interactive elements
663
+ - Don't introduce additional saturated accent colors — the palette is intentionally controlled
664
+ - Don't over-build the footer — this design keeps it minimal (1 cols, 0 links)
665
+
666
+
667
+ ## 7b. Enforceable Brand Rules
668
+
669
+ *Structured Do/Don't with reasoning and validation tests. Agents can programmatically verify generated UI.*
670
+
671
+ ```yaml
672
+ rules:
673
+ - id: brand-canvas-001
674
+ type: do
675
+ rule: "Always use the page background `rgb(238, 239, 233)` as the base canvas"
676
+ why: "Every component is designed to composit against this exact tone"
677
+ test: "document.body.style.backgroundColor === 'rgb(238, 239, 233)'"
678
+ - id: brand-accent-001
679
+ type: do
680
+ rule: "Reserve `rgb(205, 132, 7)` for primary CTAs and brand-mark signals only"
681
+ why: "Single chromatic assertion device — overuse dilutes meaning"
682
+ test: "querySelectorAll('[style*=\"rgb(205, 132, 7)\"]').length <= 3 per fold"
683
+ ```
684
+
685
+ ## 9. Responsive Behavior
686
+
687
+ ### Breakpoints
688
+ | Name | Width | Key Changes |
689
+ |------|-------|-------------|
690
+ | Mobile | 425px | Single column, compact spacing |
691
+ | Mobile Large | 482px | Expanded mobile layout |
692
+ | Mobile Large | 640px | Expanded mobile layout |
693
+ | Mobile Large | 767px | Expanded mobile layout |
694
+ | Tablet | 1024px | Multi-column grids begin |
695
+ | Desktop | 1280px | Full feature layout |
696
+
697
+ ### Token Diff — Desktop vs Mobile
698
+
699
+ | Element | Property | Desktop | Mobile |
700
+ |---------|----------|---------|--------|
701
+ | nav | display | `block` | `flex` |
702
+ | button | width | `40px` | `80px` |
703
+ | card | padding | `16px 32px` | `16px` |
704
+ | card | width | `896px` | `388px` |
705
+ | sidebar | width | `267px` | `237px` |
706
+
707
+ ### Collapsing Strategy
708
+ - Navigation: block → flex on mobile
709
+ - Cards: multi-column → stacked vertical on mobile
710
+ - Footer: multi-column → stacked single column on mobile
711
+
712
+ ### Touch Targets
713
+ - Buttons: 2px 8px padding
714
+ - Navigation: adequate spacing between items
715
+ - Interactive elements: minimum 44px touch target recommended
716
+
717
+ ### Collapsing Narrative
718
+
719
+ How the structural patterns adapt from desktop to mobile (extracted from both viewport extractions):
720
+
721
+ - **Hero collapses split-left-text → centered** — the side-by-side layout stacks vertically, with media moving above the text.
722
+ - **Card grid: 4-up → 1-up** — cards stack as viewport narrows, becoming a vertical list on mobile.
723
+
724
+ ## 9b. Visual Tone & Photography
725
+
726
+ **Tone:** Mixed photography + illustration
727
+
728
+ A balanced mix of photographic content and vector graphics. Photos likely carry product/lifestyle context while SVG handles icons, logos, and decorative accents.
729
+
730
+ **Canonical Brand Image (OG):**
731
+ - https://posthog.com/images/og/default.png
732
+ *This is the image shown when the site is shared on social media — represents the brand visual essence.*
733
+
734
+ **Hero Image (above-fold dominant visual):**
735
+ - Aspect: 1:1 (square / portrait)
736
+ - Rendered size: 700×700px
737
+ - *Use this aspect ratio + composition for your clone's hero — mimicking the proportion preserves the visual hierarchy.*
738
+
739
+ **Aspect Ratio Distribution:**
740
+ - Landscape (1.15–2.3): 4 (44%)
741
+ - Portrait (<0.87): 1 (11%)
742
+ - Square (0.87–1.15): 4 (44%)
743
+
744
+ **Media Format Mix:**
745
+ - SVG: 1 (icons, illustrations, decorative geometry)
746
+
747
+ **Average rendered image size:** 286×241px
748
+ **Above-fold image count:** 4 / 9
749
+
750
+ **Decorative Patterns Detected:**
751
+ - 1 multi-stop linear gradient (mesh-like, 3+ color stops) — the brand leans on rich color transitions for visual depth
752
+ - 1 large decorative SVG shape (≥200×200px, non-icon) — likely blob/illustration accents
753
+ - **Glassmorphism** detected (`backdrop-filter: blur`) — layered transparent surfaces with blur, modern OS-like aesthetic
754
+
755
+ **Clone instruction for decorative work:** Glassmorphism is a brand signature — use `backdrop-filter: blur(20px)` on overlapping surfaces.
756
+
757
+ **Imagery Guidance for clones:**
758
+ - Mix photography and illustration intentionally: photos for product/context, vectors for icons + decorative accents.
759
+ - Respect the format split — replacing JPGs with illustrations (or vice versa) will shift the brand tone.
760
+
761
+ ## 10. Agent Prompt Guide
762
+
763
+ ### Quick Reference
764
+ - Background: Light Gray (`#eeefe9`)
765
+ - Primary text: Pure Black (`#000000`)
766
+ - Accent: #cd8407 (`#cd8407`)
767
+ - Border: Silver (`#bfc1b7`)
768
+ - Font: IBM Plex Sans Variable
769
+ - Body: 16px weight 400
770
+
771
+ ### Example Component Prompts
772
+ - "Create a hero section on Light Gray background (#eeefe9). Headline at 24px IBM Plex Sans Variable weight 800, line-height 1.33, letter-spacing -0.6px, color #000000."
773
+ - "Create the primary CTA button: `#cd8407` background, `#23251d` text, 6px border-radius, 12px 24px padding, 700 weight, IBM Plex Sans Variable font."
774
+ - "Design a card on `transparent` background. Border: none. Radius: 0px. Shadow: none. Padding: 16px 32px."
775
+ - "Build navigation: static on `#eeefe9`. IBM Plex Sans Variable 16px weight 400 for links."
776
+
777
+ ### Iteration Guide
778
+ 1. **Canvas**: Set the light canvas to Light Gray (`#eeefe9`) — every component is composited against this exact base.
779
+ 2. **Typography**: All type in IBM Plex Sans Variable, weight range 400–800. Never exceed 800 — heavier weights break the brand's tonal restraint.
780
+ 3. **Accent**: #cd8407 (`#cd8407`) is the sole interactive color. On hover → Honey (`#b17816`). Use CSS transitions, not opacity/brightness filters.
781
+ 4. **Motion**: All transitions use `cubic-bezier(0.4,0,0.2,1)`. Never use linear for UI transitions — preserve the brand's easing personality.
782
+ 5. **Shape**: CTAs at `4px`, cards at `0px`. Apply border-radius from the extracted scale only — don't invent intermediate values.
783
+ 6. **Spacing**: Use the `--ca-space-*` token scale (4px–32px). All padding, margin, and gap values are multiples from this scale — no magic numbers.
784
+ 7. **Tokens**: Import from §11 CSS Export (`--ca-*` vars). Never hardcode hex values — always reference a token so theming remains consistent.
785
+
786
+ ## 11. CSS Design Tokens Raw Export
787
+
788
+ *Copy-paste ready `:root {}` block — all values extracted directly from the live site.*
789
+
790
+ ```css
791
+ /* Colors */
792
+ :root {
793
+ --ca-background: #eeefe9;
794
+ --ca-surface-1: #e5e7e0;
795
+ --ca-surface-2: #ffffff;
796
+ --ca-ink-subtle: #23251d;
797
+ --ca-primary: #cd8407;
798
+ --ca-on-primary: #111111;
799
+ --ca-primary-hover: #b17816;
800
+ --ca-hairline: #bfc1b7;
801
+ }
802
+
803
+ /* Typography */
804
+ :root {
805
+ --ca-font-primary: "IBM Plex Sans Variable", system-ui, sans-serif;
806
+ --ca-text-display: 24px;
807
+ --ca-text-body: 16px;
808
+ --ca-text-small: 15px;
809
+ --ca-text-button: 13px;
810
+ }
811
+
812
+ /* Spacing & Radius */
813
+ :root {
814
+ --ca-space-xxs: 2px;
815
+ --ca-space-xs: 4px;
816
+ --ca-space-sm: 8px;
817
+ --ca-space-md: 16px;
818
+ --ca-space-base: 32px;
819
+ --ca-space-lg: 24px;
820
+ --ca-space-xl: 32px;
821
+ --ca-space-2xl: 48px;
822
+ --ca-space-3xl: 64px;
823
+ --ca-radius-none: 0px;
824
+ --ca-radius-xs: 4px;
825
+ --ca-radius-sm: 8px;
826
+ --ca-radius-md: 8px;
827
+ --ca-radius-lg: 8px;
828
+ --ca-radius-xl: 8px;
829
+ --ca-radius-full: 9999px;
830
+ }
831
+ ```
832
+
833
+
834
+ ## 13. Page Structure Skeleton
835
+
836
+ *The actual layout the source site uses. Reproduce these sections in order to match the site structure.*
837
+
838
+ ```yaml
839
+ page-skeleton:
840
+ - section: unknown
841
+ tag: div
842
+ classes: ["@container", "absolute", "!select-auto", "flex"]
843
+ height: 810px
844
+ width: 960px
845
+ layout: flex-column justify=normal
846
+ children: 7
847
+ - section: unknown
848
+ tag: div
849
+ classes: ["@container", "w-full", "h-full", "flex"]
850
+ height: 771px
851
+ width: 958px
852
+ layout: flex-column justify=normal
853
+ children: 2
854
+ - section: main-content
855
+ tag: main
856
+ classes: ["@container/editor", "flex-1", "relative", "h-full"]
857
+ height: 714px
858
+ width: 958px
859
+ layout: flex-column justify=normal
860
+ children: 1
861
+ bg: "rgb(253, 253, 248)"
862
+ - section: unknown
863
+ tag: div
864
+ classes: ["@container"]
865
+ height: 487px
866
+ width: 832px
867
+ layout: block
868
+ children: 1
869
+ - section: hero
870
+ tag: div
871
+ classes: ["data-[state=active]:animate-[hero-carousel-fade-in_300ms_ease-out]", "flex-1"]
872
+ height: 431px
873
+ width: 816px
874
+ layout: block
875
+ children: 1
876
+ - section: unknown
877
+ tag: div
878
+ classes: ["OSTable", "md:@2xs/not-full-width:mx-0", "mb-2", "-mx-4"]
879
+ height: 245px
880
+ width: 864px
881
+ layout: block
882
+ children: 1
883
+ - section: unknown
884
+ tag: div
885
+ classes: ["md:@2xs/not-full-width:px-0", "flex", "px-4", "@md/reader-content-container:px-6"]
886
+ height: 245px
887
+ width: 864px
888
+ layout: flex-row justify=normal
889
+ children: 1
890
+ padding: "0px 16px"
891
+ - section: section-1
892
+ tag: section
893
+ classes: ["pt-8", "@xl:pt-0", "px-5", "lg:px-0"]
894
+ height: 512px
895
+ width: 832px
896
+ layout: block
897
+ children: 2
898
+ ```
899
+
900
+ **Agent rule**: rebuild sections in this order (sorted by vertical position). Match the layout primitive (grid N-col / flex direction / block).
901
+
902
+
903
+ ## 14. Copy Library (Real Content from Source)
904
+
905
+ *Actual text content extracted from the live page. Use these strings verbatim when reproducing the site — they carry the brand voice.*
906
+
907
+ ```yaml
908
+ copy:
909
+ section-headings:
910
+ - "Build better products with better data"
911
+ sub-headings:
912
+ - "Install with AI in a single prompt"
913
+ ctas:
914
+ - "Get started – free"
915
+ - "Ask a question"
916
+ - "Switch to website mode"
917
+ - "home.mdx"
918
+ navigation:
919
+ - "home.mdx"
920
+ - "Product OS"
921
+ - "Pricing"
922
+ - "customers.mdx"
923
+ - "demo.mov"
924
+ - "Docs"
925
+ - "Talk to a human"
926
+ - "Sign up ↗"
927
+ - "Why PostHog?"
928
+ - "Changelog"
929
+ ```
930
+
931
+ **Agent rule**: reuse these exact strings when generating UI. Do NOT translate or rephrase — brand voice is preserved through the original wording.
932
+
933
+
934
+ ## 15. Asset Inventory (Image Roles & Ratios)
935
+
936
+ *Image inventory classified by role and aspect ratio. When reproducing the site, allocate this number of assets per role.*
937
+
938
+ ```yaml
939
+ assets:
940
+ logo:
941
+ count: 1
942
+ avg-ratio: 2.22
943
+ common-aspect: "~16:9 landscape"
944
+ sample-alts:
945
+ - "Ursula von der Leyen, President of the European Commission"
946
+ product:
947
+ count: 4
948
+ avg-ratio: 1.01
949
+ common-aspect: "~1:1 square"
950
+ thumbnail:
951
+ count: 23
952
+ avg-ratio: 1.00
953
+ common-aspect: "~1:1 square"
954
+ sample-alts:
955
+ - "Postgres"
956
+ - "Snowflake"
957
+ - "Salesforce"
958
+ ```
959
+
960
+ **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`.
961
+
962
+
963
+ ## 16. Component HTML Templates
964
+
965
+ *Suggested HTML markup for reproducing the key components — based on what was detected in the source DOM.*
966
+
967
+ ### Button (primary action)
968
+ ```html
969
+ <button class="btn btn-primary">
970
+ Action
971
+ </button>
972
+ ```
973
+ _Source pattern detected: padding `2px 8px` · radius `4px` · weight `500`_
974
+
975
+ ### Generic Card
976
+ ```html
977
+ <div class="card">
978
+ <!-- content -->
979
+ </div>
980
+ ```
981
+ _Source pattern detected: padding `16px 32px` · radius `0px` · shadow `none`_
982
+
983
+ **Agent rule**: use these markup skeletons as the structural baseline. Apply tokens from §2-3 for visual styling.
984
+
985
+
986
+ ---
987
+ ## Extraction Completeness: 89/100 (B)
988
+
989
+ | Category | Score | Max | Detail |
990
+ |----------|-------|-----|--------|
991
+ | Colors & Palette | 25 | 25 | 22 named colors |
992
+ | Typography | 18 | 20 | 7 roles defined |
993
+ | Components | 20 | 20 | 5 specs extracted |
994
+ | Motion & Interaction | 12 | 15 | Keyframes present |
995
+ | CSS Custom Properties | 5 | 10 | 99 vars |
996
+ | Responsive Breakpoints | 5 | 5 | 6 breakpoints |
997
+ | Variable Fonts | 5 | 5 | WGHT axes |
998
+
999
+ ## 12. Known Gaps & Confidence
1000
+
1001
+ 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.
1002
+
1003
+ | Category | What's missing | Fallback strategy |
1004
+ |----------|----------------|-------------------|
1005
+ | **Dark mode** | No dark-mode CSS variables or media queries detected | Light mode is canonical; do not generate dark-mode variants unless explicitly requested |
1006
+ | **Form inputs** | No text input fields detected on this page | Use the documented border-radius + accent border on focus; 12-16px padding inside |
1007
+
1008
+ ### Per-section confidence
1009
+
1010
+ | Section | Confidence | Reason |
1011
+ |---------|------------|--------|
1012
+ | §1 Visual Theme | High | Body bg extracted via getComputedStyle() |
1013
+ | §2 Colors | High | 99 CSS vars (semantic naming requires ≥20 for high) |
1014
+ | §3 Typography | High | 7 typography roles inferred |
1015
+ | §4 Components | High | 5 component variants captured |
1016
+ | §7 Motion | High | Keyframes + transitions |
1017
+ | §8 Do's/Don'ts | High | 21 rules generated; design-decisions.json has evidence per rule |
1018
+ | §9 Responsive | High | 6 breakpoints detected |
1019
+ | §9b Photography | High | 9 images, hero present |
1020
+
1021
+ ---
1022
+ *Generated by Clone Architect — automated Playwright extraction + design analysis.*
1023
+ *Source: https://posthog.com | 2026-05-30T22:28:32.237Z*
1024
+ *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.*