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,227 @@
1
+ {
2
+ "meta": {
3
+ "source": "https://www.choisis-ton-avenir.com",
4
+ "domain": "choisis-ton-avenir.com",
5
+ "extractedAt": "2026-05-31T04:56:27.249Z",
6
+ "tokenizedAt": "2026-05-31T04:56:42.407Z"
7
+ },
8
+ "colors": {
9
+ "background": {
10
+ "primary": "rgb(255, 255, 255)",
11
+ "secondary": "rgb(243, 241, 253)",
12
+ "tertiary": "rgb(244, 241, 253)"
13
+ },
14
+ "text": {
15
+ "primary": "rgb(38, 38, 38)",
16
+ "secondary": "rgb(0, 0, 0)",
17
+ "muted": "#54595F"
18
+ },
19
+ "accent": {
20
+ "primary": "rgb(255, 228, 86)",
21
+ "secondary": "rgb(86, 60, 220)"
22
+ },
23
+ "border": "rgb(102, 102, 102)",
24
+ "shadow": "rgba(0,0,0,0.1)",
25
+ "semantic": {
26
+ "error": "#dc3545",
27
+ "success": "#198754",
28
+ "warning": "#ffc107",
29
+ "info": "#0dcaf0"
30
+ }
31
+ },
32
+ "typography": {
33
+ "fontFamily": {
34
+ "primary": "Poppins",
35
+ "secondary": "Merriweather",
36
+ "mono": "monospace"
37
+ },
38
+ "fontSize": {
39
+ "xs": "11px",
40
+ "sm": "15px",
41
+ "base": "16px",
42
+ "lg": "20px",
43
+ "xl": "25px",
44
+ "2xl": "28px",
45
+ "3xl": "35px",
46
+ "4xl": "44px"
47
+ },
48
+ "fontWeight": {
49
+ "normal": "400",
50
+ "medium": "500",
51
+ "semibold": "700",
52
+ "bold": "700"
53
+ },
54
+ "lineHeight": {
55
+ "tight": "1.27",
56
+ "normal": "1.5",
57
+ "relaxed": "1.5"
58
+ },
59
+ "letterSpacing": {
60
+ "tight": "-0.025em",
61
+ "normal": "0em",
62
+ "wide": "0.025em"
63
+ }
64
+ },
65
+ "spacing": {
66
+ "xxs": "2px",
67
+ "xs": "10px",
68
+ "sm": "15px",
69
+ "md": "20px",
70
+ "base": "24px",
71
+ "lg": "25px",
72
+ "xl": "30px",
73
+ "2xl": "50px",
74
+ "3xl": "64px"
75
+ },
76
+ "borderRadius": {
77
+ "none": "0px",
78
+ "xs": "4px",
79
+ "sm": "10px",
80
+ "md": "12px",
81
+ "lg": "20px",
82
+ "xl": "25px",
83
+ "full": "9999px"
84
+ },
85
+ "shadows": {
86
+ "shadow-1": "rgba(0, 0, 0, 0.19) 0px 10px 20px 0px, rgba(0, 0, 0, 0.23) 0px 6px 6px 0px",
87
+ "shadow-2": "rgba(0, 0, 0, 0.05) 0px -2px 3px 0px",
88
+ "shadow-3": "rgb(128, 128, 128) 0px 0px 5px 0px"
89
+ },
90
+ "transitions": {
91
+ "transition-1": "all",
92
+ "transition-2": "0.5s",
93
+ "transition-3": "0.3s",
94
+ "transition-4": "background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s, transform 0.4s",
95
+ "transition-5": "0.3s ease-in"
96
+ },
97
+ "layout": {
98
+ "maxWidth": "1200px",
99
+ "headerHeight": "82px",
100
+ "sidebarWidth": "0px",
101
+ "gap": "normal",
102
+ "containerPadding": "0px"
103
+ },
104
+ "cssCustomProperties": {
105
+ "--bs-yellow": "#ffc107",
106
+ "--bs-info": "#0dcaf0",
107
+ "--bs-orange": "#fd7e14",
108
+ "--wp--preset--gradient--midnight": "linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",
109
+ "--bs-gray": "#6c757d",
110
+ "--cmplz_category_header_title_font_size": "14px",
111
+ "--wp--preset--font-size--large": "36px",
112
+ "--wp--preset--shadow--outlined": "6px 6px 0px -3px rgb(255, 255, 255), 6px 6px rgb(0, 0, 0)",
113
+ "--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan": "linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",
114
+ "--bs-success": "#198754",
115
+ "--wp--preset--color--vivid-purple": "#9b51e0",
116
+ "--wp--preset--gradient--blush-light-purple": "linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",
117
+ "--cmplz_button_font_size": "15px",
118
+ "--wp--preset--aspect-ratio--16-9": "16/9",
119
+ "--wp--preset--color--pale-pink": "#f78da7",
120
+ "--cmplz_slider_inactive_color": "#F56E28",
121
+ "--bs-primary": "#0d6efd",
122
+ "--wp--preset--color--cyan-bluish-gray": "#abb8c3",
123
+ "--cmplz_text_font_size": "14px",
124
+ "--bs-font-monospace": "SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace",
125
+ "--wp--preset--gradient--electric-grass": "linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",
126
+ "--cmplz_text_color": "#222222",
127
+ "--cmplz_banner_border_width": "0px 0px 0px 0px",
128
+ "--cmplz_button_border_radius": "10px 10px 10px 10px",
129
+ "--wp--preset--gradient--blush-bordeaux": "linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",
130
+ "--wp--preset--spacing--60": "2.25rem",
131
+ "--cmplz_button_deny_text_color": "#ffffff",
132
+ "--wp--preset--color--vivid-green-cyan": "#00d084",
133
+ "--wp--preset--shadow--deep": "12px 12px 50px rgba(0, 0, 0, 0.4)",
134
+ "--cmplz_banner_border_radius": "12px 12px 12px 12px",
135
+ "--cmplz_button_deny_border_color": "#573ddb",
136
+ "--bs-cyan": "#0dcaf0",
137
+ "--bs-purple": "#6f42c1",
138
+ "--cmplz_button_settings_text_color": "#333333",
139
+ "--bs-green": "#198754",
140
+ "--cmplz_button_accept_text_color": "#ffffff",
141
+ "--cmplz_category_header_active_font_size": "12px",
142
+ "--cmplz_slider_bullet_color": "#ffffff",
143
+ "--cmplz_banner_width": "626px",
144
+ "--cmplz_button_settings_background_color": "#f9f9f9",
145
+ "--wp--preset--spacing--40": "1rem",
146
+ "--wp--preset--aspect-ratio--3-2": "3/2",
147
+ "--cmplz_slider_active_color": "#1e73be",
148
+ "--bs-secondary": "#6c757d",
149
+ "--page-title-display": "block",
150
+ "--wp--preset--color--luminous-vivid-orange": "#ff6900",
151
+ "--wp--preset--aspect-ratio--2-3": "2/3",
152
+ "--wp--preset--font-size--x-large": "42px",
153
+ "--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple": "linear-gradient(135deg,rgb(6,147,227) 0%,rgb(155,81,224) 100%)",
154
+ "--cmplz_categories-height": "216px",
155
+ "--bs-gray-dark": "#343a40",
156
+ "--bs-pink": "#d63384",
157
+ "--bs-red": "#dc3545",
158
+ "--cmplz_text_line_height": "calc(14px * 1.5)",
159
+ "--bs-white": "#fff",
160
+ "--cmplz_title_font_size": "15px",
161
+ "--cmplz-manage-consent-height": "50px",
162
+ "--bs-danger": "#dc3545",
163
+ "--wp--preset--color--vivid-cyan-blue": "#0693e3",
164
+ "--wp--preset--shadow--natural": "6px 6px 9px rgba(0, 0, 0, 0.2)",
165
+ "--cmplz_button_settings_border_color": "#f2f2f2",
166
+ "--wp--preset--spacing--30": "0.67rem",
167
+ "--wp--preset--aspect-ratio--4-3": "4/3",
168
+ "--cmplz_button_accept_background_color": "#573ddb",
169
+ "--wp--preset--spacing--50": "1.5rem",
170
+ "--wp--preset--color--pale-cyan-blue": "#8ed1fc",
171
+ "--bs-gradient": "linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0))",
172
+ "--wp--preset--font-size--small": "13px",
173
+ "--cmplz_category_header_always_active_color": "green",
174
+ "--wp--preset--spacing--70": "3.38rem",
175
+ "--cmplz_link_font_size": "14px",
176
+ "--cmplz_banner_background_color": "#ffffff",
177
+ "--bs-teal": "#20c997",
178
+ "--direction-multiplier": "1",
179
+ "--cmplz-manage-consent-offset": "-35px",
180
+ "--bs-indigo": "#6610f2",
181
+ "--cmplz_button_accept_border_color": "#573ddb",
182
+ "--wp--preset--gradient--luminous-dusk": "linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",
183
+ "--cmplz_banner_margin": "10px",
184
+ "--wp--preset--color--luminous-vivid-amber": "#fcb900",
185
+ "--bs-dark": "#212529",
186
+ "--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange": "linear-gradient(135deg,rgb(252,185,0) 0%,rgb(255,105,0) 100%)",
187
+ "--wp--preset--aspect-ratio--9-16": "9/16",
188
+ "--wp--preset--color--vivid-red": "#cf2e2e",
189
+ "--bs-font-sans-serif": "system-ui,-apple-system,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,\"Noto Sans\",\"Liberation Sans\",sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\"",
190
+ "--wp--preset--shadow--crisp": "6px 6px 0px rgb(0, 0, 0)",
191
+ "--wp--preset--color--light-green-cyan": "#7bdcb5",
192
+ "--wp--preset--aspect-ratio--square": "1",
193
+ "--cmplz_hyperlink_color": "#563cdc",
194
+ "--wp--preset--shadow--sharp": "6px 6px 0px rgba(0, 0, 0, 0.2)",
195
+ "--wp--preset--gradient--pale-ocean": "linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",
196
+ "--cmplz_banner_border_color": "#f2f2f2",
197
+ "--wp--preset--spacing--80": "5.06rem",
198
+ "--wp--preset--color--white": "#ffffff",
199
+ "--wp--preset--font-size--medium": "20px",
200
+ "--wp--preset--color--black": "#000000",
201
+ "--wp--preset--aspect-ratio--3-4": "3/4",
202
+ "--wp--preset--gradient--luminous-vivid-orange-to-vivid-red": "linear-gradient(135deg,rgb(255,105,0) 0%,rgb(207,46,46) 100%)",
203
+ "--bs-warning": "#ffc107",
204
+ "--wp--preset--spacing--20": "0.44rem",
205
+ "--bs-light": "#f8f9fa",
206
+ "--cmplz_button_deny_background_color": "#573ddb",
207
+ "--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray": "linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",
208
+ "--bs-blue": "#0d6efd",
209
+ "--wp--preset--gradient--cool-to-warm-spectrum": "linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",
210
+ "--cmplz_category_body_font_size": "14px",
211
+ "--e-global-color-primary": "#000000",
212
+ "--e-global-typography-secondary-font-weight": "400",
213
+ "--e-global-typography-accent-font-weight": "500",
214
+ "--e-global-typography-primary-font-family": "\"Poppins\"",
215
+ "--e-global-typography-primary-font-weight": "600",
216
+ "--e-global-color-bd976d2": "#EE5C52",
217
+ "--e-global-typography-secondary-font-family": "\"Tiro Bangla Italic\"",
218
+ "--e-global-typography-text-font-weight": "400",
219
+ "--e-global-color-text": "#000000",
220
+ "--e-global-color-accent": "#61CE70",
221
+ "--e-global-color-c4d8a40": "#563CDC",
222
+ "--e-global-color-7da9569": "#FFE456",
223
+ "--e-global-typography-text-font-family": "\"Poppins\"",
224
+ "--e-global-color-secondary": "#54595F",
225
+ "--e-global-typography-accent-font-family": "\"Poppins\""
226
+ }
227
+ }
@@ -0,0 +1,436 @@
1
+ ---
2
+ version: alpha
3
+ name: example.com
4
+ description: "Light product system built on #eeeeee with #334488 as the primary CTA accent. Type anchored in system-ui at 24px / weight 700. Extracted automatically from https://example.com/ — rendered styles via getComputedStyle() + CSS custom properties (token-only values may not be painted)."
5
+ narrative: |
6
+ example.com is built on a soft, near-white canvas (rgb(238, 238, 238)).
7
+ The system uses rgb(51, 68, 136) as the accent for primary actions and brand signals.
8
+ System-ui as the primary typeface.
9
+ Depth comes from borders and surface contrast rather than shadows — a flat, structural elevation model.
10
+ Motion is minimal — a few targeted transitions, no decorative animation.
11
+
12
+ colors:
13
+ background: "#eeeeee"
14
+ surface-1: "#eeeeee"
15
+ surface-2: "#eeeeee"
16
+ primary: "#334488"
17
+ on-primary: "#ffffff"
18
+ primary-hover: "#334488"
19
+ hairline: "#e5e7eb"
20
+
21
+ typography:
22
+ display-xl:
23
+ fontFamily: "system-ui"
24
+ fontSize: 24px
25
+ fontWeight: 700
26
+ lineHeight: normal
27
+ letterSpacing: 0
28
+ body:
29
+ fontFamily: "system-ui"
30
+ fontSize: 16px
31
+ fontWeight: 400
32
+ lineHeight: normal
33
+ letterSpacing: 0
34
+
35
+ rounded:
36
+ none: 0px
37
+ xs: 4px
38
+ sm: 8px
39
+ md: 14px
40
+ lg: 20px
41
+ xl: 32px
42
+ pill: 9999px
43
+
44
+ spacing:
45
+ xxs: 2px
46
+ xs: 16.08px
47
+ sm: 135px
48
+ md: 12px
49
+ lg: 24px
50
+ xl: 32px
51
+ xxl: 64px
52
+ section: 80px
53
+
54
+ components:
55
+
56
+
57
+ extracted_at: "2026-05-30T22:28:35.442Z"
58
+ completeness: 13
59
+ scoreVersion: "v2"
60
+
61
+ ---
62
+
63
+ # Design System — example.com
64
+ > Extracted automatically by Clone Architect from https://example.com
65
+ > Date: 2026-05-30
66
+ > Viewport: Desktop 1440x900 + Mobile 390x844
67
+ > 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).
68
+
69
+ > **🤖 TL;DR for AI agents** (read this first — saves you scanning the full doc):
70
+ >
71
+ > - **Canvas**: `rgb(238, 238, 238)` is the page background. Every component composits against this.
72
+ > - **Accent**: `rgb(51, 68, 136)` for primary CTAs ONLY. Never decorative.
73
+ > - **Body type**: 16px (token: `typography.body`). Default for ALL text not in a heading role.
74
+ > - **Section rhythm**: 48px between major bands. Card padding: 24px.
75
+ > - **Default radius**: 8px on buttons/inputs. Pills (`9999px`) only for icon-buttons or status chips.
76
+ > - **Forbidden**: Do NOT introduce heavy box-shadows — this system relies on borders for separation
77
+ >
78
+ > **Before generating UI**: import this DESIGN.md, scan §2 (Color Palette) + §4 (Components) + §10 (Agent Guide). Skip §11–12 unless extending.
79
+
80
+ ## 1. Visual Theme & Atmosphere
81
+
82
+ example.com sits on a light gray canvas (`#eeeeee`), a neutral foundation calibrated for sustained reading and component contrast.
83
+
84
+ The system font stack (system-ui) trades brand voice for performance and platform familiarity.
85
+
86
+ Body text reads in Pure Black (`#000000`) (contrast ratio 19.7:1, well above WCAG AA). **#334488** (`#334488`) provides interactive distinction without visual aggression. Shadow is absent by design — depth is conveyed through borders, spacing, and color differentiation rather than light simulation.
87
+
88
+
89
+ **Key Characteristics:**
90
+ - Background: Light Gray (`#eeeeee`)
91
+ - Accent: #334488 (`#334488`)
92
+
93
+ ## 2. Color Palette & Roles
94
+
95
+ ### Background & Surface
96
+ - **Light Gray** (`#eeeeee`): Page background (primary)
97
+
98
+ ### Text & Content
99
+ - **Pure Black** (`#000000`): Primary body text
100
+
101
+ ### Accent & Interactive
102
+ - **#334488** (`#334488`): Interactive / accent
103
+
104
+ ## 3. Typography Rules
105
+
106
+ ### Font Families
107
+ - **Primary**: `system-ui`
108
+
109
+ ### Typography Hierarchy
110
+
111
+ | Role | Font | Size | Weight | Line Height | Letter Spacing | Notes |
112
+ |------|------|------|--------|-------------|----------------|-------|
113
+ | Display Hero | system-ui | 24px | 700 | normal | normal | Main headline (h1) |
114
+ | Body | system-ui | 16px | 400 | normal | normal | Standard reading text |
115
+
116
+ ### Full Font Size Scale
117
+
118
+ Sizes detected in the design (descending): `24px`, `16px`
119
+
120
+ ## 4. Component Stylings
121
+
122
+
123
+ ## 4b. Component Behaviors (State Matrix)
124
+
125
+ ### Interaction State Narrative
126
+
127
+
128
+ *State transitions extracted via Playwright simulation — exact values in the YAML matrix below.*
129
+
130
+ ```yaml
131
+ component-behaviors:
132
+ link:
133
+ default:
134
+ bg: "rgba(0, 0, 0, 0)"
135
+ fg: "rgb(51, 68, 136)"
136
+ ```
137
+
138
+ **Agent usage**: Validate generated components against this matrix. If your output's `:hover` state changes properties not listed here, you are off-brand.
139
+
140
+ ## 5. Layout Principles
141
+
142
+ ### Layout Type
143
+ **top-nav + content**
144
+
145
+ ### Grid
146
+ Single column, centered content
147
+
148
+ ### Max Width
149
+ 1200px
150
+
151
+ ### Spacing System
152
+ Compact spacing — information density prioritized
153
+
154
+ | Token | Value |
155
+ |-------|-------|
156
+ | xxs | 2px |
157
+ | xs | 16.08px |
158
+ | sm | 135px |
159
+ | md | 12px |
160
+ | base | 16px |
161
+ | lg | 24px |
162
+ | xl | 32px |
163
+ | 2xl | 48px |
164
+ | 3xl | 64px |
165
+
166
+ ### Border Radius Scale
167
+ | Name | Value | Use |
168
+ |------|-------|-----|
169
+ | None | 0px | No rounding |
170
+ | Xs | 4px | Tiny corners (badges, micro elements) |
171
+ | Sm | 8px | Buttons, inputs, small elements |
172
+ | Md | 14px | Cards, containers |
173
+ | Lg | 20px | Large rounded elements, pill segments |
174
+ | Xl | 32px | Category strips, featured containers |
175
+ | Full | 9999px | Pills, avatars, circular elements |
176
+
177
+ ### Shape Language
178
+
179
+ | Component | Border Radius |
180
+ |-----------|---------------|
181
+ | Page Body | `0px` |
182
+
183
+ **Shape Personality**: Sharp & Angular — No rounding. Precise, editorial, enterprise feel.
184
+
185
+
186
+ ## 5b. Spacing Rhythm Names
187
+
188
+ *Named spacing tokens with explicit use cases. Use these names in YOUR code instead of raw pixels for consistency.*
189
+
190
+ | Name | Value | Use case |
191
+ |------|-------|----------|
192
+ | **hero** | `64px` | Top/bottom of full-bleed hero sections |
193
+ | **section** | `32px` | Between major bands (color change, content shift) |
194
+ | **subsection** | `24px` | Within a section, between content groups |
195
+ | **card** | `12px` | Card padding, list-item spacing |
196
+ | **compact** | `135px` | Form fields, tight clusters, badge padding |
197
+ | **micro** | `16.08px` | Icon-text gap, tag inner padding |
198
+
199
+ **Agent rule**: NEVER hardcode raw pixel values for spacing in generated UI. Always reference these named tokens (`spacing-rhythm.section`, etc.).
200
+
201
+ ## 5c. Widget & Structure Library
202
+
203
+ Structural patterns extracted from the page DOM — these are the **blueprints** an agent should follow to reproduce the page architecture (not just CSS values).
204
+
205
+ **2/8 structural patterns detected.**
206
+
207
+ ### Hero Pattern
208
+
209
+ - **Composition:** centered — Centered composition — heading + subheading + CTAs stacked vertically, content centered horizontally. Common for SaaS marketing pages.
210
+ - **Viewport coverage:** 98px tall (not full-viewport)
211
+ - **Heading:** "Example Domain" — 24px left-aligned
212
+ - **Subheading:** "This domain is for use in documentation examples without needing permission. Avoid use in operations."
213
+ - **CTAs:** none detected in hero (unusual — agent should verify)
214
+ - **Clone instruction:** Reproduce the **centered** layout. Use the heading font-size token at the documented size. No imagery needed for hero — text-driven.
215
+
216
+ ### Footer Pattern
217
+
218
+ - **Columns:** 1
219
+ - **Links:** 1 total
220
+ - **Height:** 98px
221
+ - **Includes:** ✗ no newsletter | ✗ no social |
222
+ - **Clone instruction:** Build a 1-column footer with ~1 links per column.
223
+
224
+ ## 6. Depth & Elevation
225
+
226
+ | Level | Treatment | Use |
227
+ |-------|-----------|-----|
228
+ | Flat (Level 0) | No shadow | Page background, content blocks |
229
+
230
+ **Shadow Philosophy**: Flat design — no shadows used. Borders and spacing define structure.
231
+
232
+ ## 8. Do's and Don'ts
233
+
234
+ ### Do
235
+ - Use Light Gray (`#eeeeee`) as the page background — it's intentionally not pure white
236
+ - Use #334488 (`#334488`) as the primary accent — it's the brand's signature interactive color
237
+ - Keep the hero centered and text-driven — no decorative media, typography carries the message
238
+
239
+ ### Don't
240
+ - Don't use pure white (`#ffffff`) as a page background — the warm tone is part of the brand identity
241
+ - Don't introduce additional saturated accent colors — the palette is intentionally controlled
242
+ - Don't add hero illustrations or photos — they'll break the typographic restraint
243
+ - Don't over-build the footer — this design keeps it minimal (1 cols, 1 links)
244
+
245
+
246
+ ## 7b. Enforceable Brand Rules
247
+
248
+ *Structured Do/Don't with reasoning and validation tests. Agents can programmatically verify generated UI.*
249
+
250
+ ```yaml
251
+ rules:
252
+ - id: brand-canvas-001
253
+ type: do
254
+ rule: "Always use the page background `rgb(238, 238, 238)` as the base canvas"
255
+ why: "Every component is designed to composit against this exact tone"
256
+ test: "document.body.style.backgroundColor === 'rgb(238, 238, 238)'"
257
+ - id: brand-accent-001
258
+ type: do
259
+ rule: "Reserve `rgb(51, 68, 136)` for primary CTAs and brand-mark signals only"
260
+ why: "Single chromatic assertion device — overuse dilutes meaning"
261
+ test: "querySelectorAll('[style*=\"rgb(51, 68, 136)\"]').length <= 3 per fold"
262
+ - id: brand-depth-001
263
+ type: dont
264
+ rule: "Do NOT introduce drop shadows on cards or sections"
265
+ why: "Containment is achieved via borders, not elevation — adding shadows breaks the depth contract"
266
+ test: "getComputedStyle(card).boxShadow === 'none'"
267
+ ```
268
+
269
+ ## 9. Responsive Behavior
270
+
271
+ ### Breakpoints
272
+ | Name | Width | Key Changes |
273
+ |------|-------|-------------|
274
+ | Mobile | 640px | Single column layout |
275
+ | Tablet | 768px | 2-column grids |
276
+ | Desktop | 1024px | Full layout |
277
+ | Large Desktop | 1280px | Maximum width |
278
+
279
+ ### Collapsing Strategy
280
+ - Navigation: horizontal links → hamburger menu on mobile
281
+ - Cards: multi-column → stacked vertical on mobile
282
+ - Footer: multi-column → stacked single column on mobile
283
+
284
+ ### Touch Targets
285
+ - Navigation: adequate spacing between items
286
+ - Interactive elements: minimum 44px touch target recommended
287
+
288
+ ### Collapsing Narrative
289
+
290
+ How the structural patterns adapt from desktop to mobile (extracted from both viewport extractions):
291
+
292
+ *No major structural differences detected between desktop and mobile widgets. The same blueprints scale rather than collapse — verify by inspecting actual mobile render.*
293
+
294
+ ## 9b. Visual Tone & Photography
295
+
296
+ **Tone:** No imagery
297
+
298
+ No detectable photographic content. The site composes entirely with typography, color blocks, and minimal vector graphics. Clone strategy: lean on type hierarchy + layout rhythm rather than visual media.
299
+
300
+ **Media Format Mix:**
301
+ - *No detectable images.*
302
+
303
+ **Imagery Guidance for clones:**
304
+ - Don't add stock imagery just to "fill space" — this site's clarity comes from typographic restraint.
305
+ - Use generous whitespace, strong type hierarchy, and color blocks for visual rhythm.
306
+
307
+ ## 10. Agent Prompt Guide
308
+
309
+ ### Quick Reference
310
+ - Background: Light Gray (`#eeeeee`)
311
+ - Primary text: Pure Black (`#000000`)
312
+ - Accent: #334488 (`#334488`)
313
+ - Border: Light Gray (`#e5e7eb`)
314
+ - Font: system-ui
315
+ - Body: 16px weight 400
316
+
317
+ ### Example Component Prompts
318
+ - "Create a hero section on Light Gray background (#eeeeee). Headline at 24px system-ui weight 700, line-height normal, color #000000."
319
+ - "Create the primary CTA button: `#334488` background, `#ffffff` text, 9999px border-radius, 11px 21px padding, 700 weight, system-ui font."
320
+ - "Build navigation: sticky on `#eeeeee`. system-ui 16px weight 400 for links."
321
+
322
+ ### Iteration Guide
323
+ 1. **Canvas**: Set the light canvas to Light Gray (`#eeeeee`) — every component is composited against this exact base.
324
+ 2. **Typography**: All type in system-ui, weight range 400–700. Never exceed 700 — heavier weights break the brand's tonal restraint.
325
+ 3. **Accent**: #334488 (`#334488`) is the sole interactive color. On hover → #334488 (`#334488`). Use CSS transitions, not opacity/brightness filters.
326
+ 4. **Spacing**: Use the `--ca-space-*` token scale (16px–32px). All padding, margin, and gap values are multiples from this scale — no magic numbers.
327
+ 5. **Tokens**: Import from §11 CSS Export (`--ca-*` vars). Never hardcode hex values — always reference a token so theming remains consistent.
328
+
329
+ ## 11. CSS Design Tokens Raw Export
330
+
331
+ *Copy-paste ready `:root {}` block — all values extracted directly from the live site.*
332
+
333
+ ```css
334
+ /* Colors */
335
+ :root {
336
+ --ca-surface-2: #eeeeee;
337
+ --ca-primary-hover: #334488;
338
+ --ca-on-primary: #ffffff;
339
+ --ca-hairline: #e5e7eb;
340
+ }
341
+
342
+ /* Typography */
343
+ :root {
344
+ --ca-font-primary: "system-ui", system-ui, sans-serif;
345
+ --ca-text-display: 24px;
346
+ --ca-text-body: 16px;
347
+ }
348
+
349
+ /* Spacing & Radius */
350
+ :root {
351
+ --ca-space-xxs: 2px;
352
+ --ca-space-xs: 16.08px;
353
+ --ca-space-sm: 135px;
354
+ --ca-space-md: 12px;
355
+ --ca-space-base: 16px;
356
+ --ca-space-lg: 24px;
357
+ --ca-space-xl: 32px;
358
+ --ca-space-2xl: 48px;
359
+ --ca-space-3xl: 64px;
360
+ --ca-radius-none: 0px;
361
+ --ca-radius-xs: 4px;
362
+ --ca-radius-sm: 8px;
363
+ --ca-radius-md: 14px;
364
+ --ca-radius-lg: 20px;
365
+ --ca-radius-xl: 32px;
366
+ --ca-radius-full: 9999px;
367
+ }
368
+ ```
369
+
370
+
371
+ ## 13. Page Structure Skeleton
372
+
373
+ *The actual layout the source site uses. Reproduce these sections in order to match the site structure.*
374
+
375
+ ```yaml
376
+ page-skeleton:
377
+ - section: unknown
378
+ tag: div
379
+ height: 98px
380
+ width: 864px
381
+ layout: block
382
+ children: 3
383
+ ```
384
+
385
+ **Agent rule**: rebuild sections in this order (sorted by vertical position). Match the layout primitive (grid N-col / flex direction / block).
386
+
387
+
388
+ ## 12. Known Extraction Gaps
389
+
390
+ *Auto-detected limitations of this extraction — understand before building:*
391
+
392
+ - **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.
393
+
394
+
395
+ ---
396
+ ## Extraction Completeness: 13/100 (D)
397
+
398
+ | Category | Score | Max | Detail |
399
+ |----------|-------|-----|--------|
400
+ | Colors & Palette | 4 | 25 | 3 named colors |
401
+ | Typography | 5 | 20 | 2 roles defined |
402
+ | Components | 0 | 20 | 0 specs extracted |
403
+ | Motion & Interaction | 0 | 15 | No keyframes |
404
+ | CSS Custom Properties | 0 | 10 | 0 vars |
405
+ | Responsive Breakpoints | 4 | 5 | 4 breakpoints |
406
+ | Variable Fonts | 0 | 5 | None detected |
407
+
408
+ ## 12. Known Gaps & Confidence
409
+
410
+ 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.
411
+
412
+ | Category | What's missing | Fallback strategy |
413
+ |----------|----------------|-------------------|
414
+ | **Photography** | No photographic content detected on this page | Don't add stock imagery; clarity comes from type + color blocks |
415
+ | **Keyframe animations** | No @keyframes declarations found (transitions only) | Use CSS transitions for state changes; avoid complex scroll-based animations |
416
+ | **Dark mode** | No dark-mode CSS variables or media queries detected | Light mode is canonical; do not generate dark-mode variants unless explicitly requested |
417
+ | **Form inputs** | No text input fields detected on this page | Use the documented border-radius + accent border on focus; 12-16px padding inside |
418
+ | **Design tokens** | Only 0 CSS custom properties (low signal for semantic naming) | Color names are nearest-neighbor approximations; verify against brand guidelines if available |
419
+
420
+ ### Per-section confidence
421
+
422
+ | Section | Confidence | Reason |
423
+ |---------|------------|--------|
424
+ | §1 Visual Theme | High | Body bg extracted via getComputedStyle() |
425
+ | §2 Colors | Low | 0 CSS vars (semantic naming requires ≥20 for high) |
426
+ | §3 Typography | Low | 2 typography roles inferred |
427
+ | §4 Components | Low | 0 component variants captured |
428
+ | §7 Motion | Medium | Transitions only |
429
+ | §8 Do's/Don'ts | Medium | 7 rules generated; design-decisions.json has evidence per rule |
430
+ | §9 Responsive | High | 4 breakpoints detected |
431
+ | §9b Photography | Low | 0 images, hero not detected |
432
+
433
+ ---
434
+ *Generated by Clone Architect — automated Playwright extraction + design analysis.*
435
+ *Source: https://example.com | 2026-05-30T22:28:35.448Z*
436
+ *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.*