prism-design 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +292 -0
- package/LICENSE +21 -0
- package/README.md +203 -0
- package/bin/clone-architect.mjs +476 -0
- package/bin/prism.mjs +467 -0
- package/catalog/index.json +1155 -0
- package/extractions/airbnb.com/DESIGN.md +1068 -0
- package/extractions/airbnb.com/tokens.json +507 -0
- package/extractions/attio.com/DESIGN.md +1295 -0
- package/extractions/attio.com/tokens.json +438 -0
- package/extractions/auroxdashboard.com/DESIGN.md +724 -0
- package/extractions/auroxdashboard.com/tokens.json +195 -0
- package/extractions/careerexplorer.com/DESIGN.md +1178 -0
- package/extractions/careerexplorer.com/tokens.json +141 -0
- package/extractions/chance.co/DESIGN.md +1209 -0
- package/extractions/chance.co/tokens.json +160 -0
- package/extractions/choisis-ton-avenir.com/DESIGN.md +1265 -0
- package/extractions/choisis-ton-avenir.com/tokens.json +227 -0
- package/extractions/example.com/DESIGN.md +436 -0
- package/extractions/example.com/tokens.json +91 -0
- package/extractions/getdesign.md/DESIGN.md +1009 -0
- package/extractions/getdesign.md/tokens.json +219 -0
- package/extractions/github.com/DESIGN.md +1130 -0
- package/extractions/github.com/tokens.json +2092 -0
- package/extractions/hello-charly.com/DESIGN.md +1146 -0
- package/extractions/hello-charly.com/tokens.json +322 -0
- package/extractions/hyperliquid.xyz/DESIGN.md +779 -0
- package/extractions/hyperliquid.xyz/tokens.json +598 -0
- package/extractions/instagram.com/DESIGN.md +996 -0
- package/extractions/instagram.com/tokens.json +1240 -0
- package/extractions/jobirl.com/DESIGN.md +1160 -0
- package/extractions/jobirl.com/tokens.json +139 -0
- package/extractions/life360.com/DESIGN.md +1133 -0
- package/extractions/life360.com/tokens.json +491 -0
- package/extractions/lifesum.com/DESIGN.md +965 -0
- package/extractions/lifesum.com/tokens.json +170 -0
- package/extractions/linear.app/DESIGN.md +1301 -0
- package/extractions/linear.app/tokens.json +732 -0
- package/extractions/mavoie.org/DESIGN.md +1148 -0
- package/extractions/mavoie.org/tokens.json +128 -0
- package/extractions/miro.com/DESIGN.md +1237 -0
- package/extractions/miro.com/tokens.json +401 -0
- package/extractions/notion.so/DESIGN.md +1319 -0
- package/extractions/notion.so/tokens.json +906 -0
- package/extractions/onetonline.org/DESIGN.md +909 -0
- package/extractions/onetonline.org/tokens.json +280 -0
- package/extractions/posthog.com/DESIGN.md +1024 -0
- package/extractions/posthog.com/tokens.json +197 -0
- package/extractions/revolut.com/DESIGN.md +1080 -0
- package/extractions/revolut.com/tokens.json +401 -0
- package/extractions/stripe.com/DESIGN.md +1272 -0
- package/extractions/stripe.com/tokens.json +794 -0
- package/extractions/switchcollective.com/DESIGN.md +1040 -0
- package/extractions/switchcollective.com/tokens.json +98 -0
- package/extractions/truity.com/DESIGN.md +970 -0
- package/extractions/truity.com/tokens.json +166 -0
- package/extractions/uniquekicks.be/DESIGN.md +1171 -0
- package/extractions/uniquekicks.be/tokens.json +237 -0
- package/package.json +122 -0
- package/scripts/analyze.ts +281 -0
- package/scripts/bank-register.ts +379 -0
- package/scripts/bank.ts +374 -0
- package/scripts/browser-stealth.ts +189 -0
- package/scripts/clone.ts +198 -0
- package/scripts/compare-vs-gd-final.ts +273 -0
- package/scripts/compare-vs-gd.ts +269 -0
- package/scripts/compare.ts +405 -0
- package/scripts/deploy-site.ts +181 -0
- package/scripts/diff-snapshots.ts +340 -0
- package/scripts/enrich-catalog.ts +212 -0
- package/scripts/extract.ts +2038 -0
- package/scripts/extractors/advanced.ts +524 -0
- package/scripts/extractors/widgets.ts +711 -0
- package/scripts/generate-design-md.ts +5775 -0
- package/scripts/generate-final-pdf.ts +274 -0
- package/scripts/generate-og-image.ts +87 -0
- package/scripts/generate-showcase.ts +1588 -0
- package/scripts/generate-site.ts +847 -0
- package/scripts/mass-extract.sh +91 -0
- package/scripts/post-process-all.sh +55 -0
- package/scripts/regen-catalog.ts +203 -0
- package/scripts/shared/cache.ts +149 -0
- package/scripts/shared/css-helpers.ts +263 -0
- package/scripts/shared/logger.ts +57 -0
- package/scripts/shared/named-colors.ts +355 -0
- package/scripts/shared/types.ts +220 -0
- package/scripts/sync-catalog.ts +105 -0
- package/scripts/tokenize.ts +988 -0
- package/templates/layout-template.md +52 -0
- package/templates/tokens-template.json +34 -0
|
@@ -0,0 +1,1133 @@
|
|
|
1
|
+
---
|
|
2
|
+
version: alpha
|
|
3
|
+
name: life360.com
|
|
4
|
+
description: "Light product system built on #ffffff with #762eeb as the primary CTA accent. Type anchored in Twemoji Country Flags at 60px / weight 900. Extracted automatically from https://life360.com/ — rendered styles via getComputedStyle() + CSS custom properties (token-only values may not be painted)."
|
|
5
|
+
narrative: |
|
|
6
|
+
life360.com is built on a pure-white canvas (rgb(255, 255, 255)).
|
|
7
|
+
The system uses rgb(118, 46, 235) as the high-saturation accent for primary actions.
|
|
8
|
+
Crisp CTAs (4px radius) reinforce a precise, technical aesthetic alongside Twemoji Country Flags as the primary typeface.
|
|
9
|
+
A restrained elevation system (1 distinct shadow) — shadows reserved for the few elements that must lift off the page.
|
|
10
|
+
Motion is a first-class concern — 40 keyframe animations plus transition-driven interactions.
|
|
11
|
+
|
|
12
|
+
colors:
|
|
13
|
+
background: "#ffffff"
|
|
14
|
+
surface-1: "#e5e7eb"
|
|
15
|
+
surface-2: "#f3f4f6"
|
|
16
|
+
ink: "#31302e"
|
|
17
|
+
ink-subtle: "#31302e"
|
|
18
|
+
primary: "#762eeb"
|
|
19
|
+
on-primary: "#ffffff"
|
|
20
|
+
primary-hover: "#9a66ff"
|
|
21
|
+
hairline: "#31302e"
|
|
22
|
+
primary-focus: "rgba(0, 65, 198, 0.8)"
|
|
23
|
+
semantic-error: "#e94641"
|
|
24
|
+
semantic-success: "#07bc0c"
|
|
25
|
+
semantic-warning: "#f1c40f"
|
|
26
|
+
semantic-info: "#9a66ff"
|
|
27
|
+
|
|
28
|
+
typography:
|
|
29
|
+
display-xl:
|
|
30
|
+
fontFamily: "Twemoji Country Flags"
|
|
31
|
+
fontSize: 96px
|
|
32
|
+
fontWeight: 900
|
|
33
|
+
lineHeight: 1
|
|
34
|
+
letterSpacing: -0.8px
|
|
35
|
+
display-md:
|
|
36
|
+
fontFamily: "Twemoji Country Flags"
|
|
37
|
+
fontSize: 48px
|
|
38
|
+
fontWeight: 700
|
|
39
|
+
lineHeight: 1
|
|
40
|
+
letterSpacing: 0
|
|
41
|
+
headline:
|
|
42
|
+
fontFamily: "Twemoji Country Flags"
|
|
43
|
+
fontSize: 36px
|
|
44
|
+
fontWeight: 700
|
|
45
|
+
lineHeight: 1.11
|
|
46
|
+
letterSpacing: -0.9px
|
|
47
|
+
body:
|
|
48
|
+
fontFamily: "Twemoji Country Flags"
|
|
49
|
+
fontSize: 16px
|
|
50
|
+
fontWeight: 400
|
|
51
|
+
lineHeight: 1.5
|
|
52
|
+
letterSpacing: 0
|
|
53
|
+
body-sm:
|
|
54
|
+
fontFamily: "Twemoji Country Flags"
|
|
55
|
+
fontSize: 14px
|
|
56
|
+
fontWeight: 400
|
|
57
|
+
lineHeight: 1.43
|
|
58
|
+
letterSpacing: 0
|
|
59
|
+
button:
|
|
60
|
+
fontFamily: "Twemoji Country Flags"
|
|
61
|
+
fontSize: 16px
|
|
62
|
+
fontWeight: 700
|
|
63
|
+
lineHeight: 1
|
|
64
|
+
letterSpacing: 0
|
|
65
|
+
|
|
66
|
+
rounded:
|
|
67
|
+
none: 0px
|
|
68
|
+
xs: 4px
|
|
69
|
+
sm: 6px
|
|
70
|
+
md: 12px
|
|
71
|
+
lg: 16px
|
|
72
|
+
xl: 24px
|
|
73
|
+
pill: 9999px
|
|
74
|
+
|
|
75
|
+
spacing:
|
|
76
|
+
xxs: 2px
|
|
77
|
+
xs: 4px
|
|
78
|
+
sm: 8px
|
|
79
|
+
md: 12px
|
|
80
|
+
lg: 24px
|
|
81
|
+
xl: 32px
|
|
82
|
+
xxl: 64px
|
|
83
|
+
section: 80px
|
|
84
|
+
|
|
85
|
+
components:
|
|
86
|
+
button-primary-brand:
|
|
87
|
+
backgroundColor: "#8652ff"
|
|
88
|
+
textColor: "{colors.on-primary}"
|
|
89
|
+
typography: "{typography.body}"
|
|
90
|
+
rounded: "{rounded.xs}"
|
|
91
|
+
padding: 8px 12px
|
|
92
|
+
button-icon-button:
|
|
93
|
+
backgroundColor: "transparent"
|
|
94
|
+
textColor: "{colors.on-primary}"
|
|
95
|
+
typography: "{typography.body}"
|
|
96
|
+
rounded: "{rounded.none}"
|
|
97
|
+
button-pill:
|
|
98
|
+
backgroundColor: "transparent"
|
|
99
|
+
textColor: "{colors.hairline}"
|
|
100
|
+
typography: "{typography.body}"
|
|
101
|
+
rounded: "{rounded.pill}"
|
|
102
|
+
padding: 8px 20px
|
|
103
|
+
input-text-input:
|
|
104
|
+
backgroundColor: "{colors.on-primary}"
|
|
105
|
+
textColor: "#51504b"
|
|
106
|
+
typography: "{typography.body}"
|
|
107
|
+
rounded: "{rounded.sm}"
|
|
108
|
+
padding: 8px
|
|
109
|
+
cta-banner-full-width-cta:
|
|
110
|
+
backgroundColor: "{colors.primary}"
|
|
111
|
+
textColor: "{colors.on-primary}"
|
|
112
|
+
typography: "{typography.body}"
|
|
113
|
+
rounded: "{rounded.md}"
|
|
114
|
+
padding: 8px 24px
|
|
115
|
+
|
|
116
|
+
extracted_at: "2026-05-30T21:32:57.296Z"
|
|
117
|
+
completeness: 82
|
|
118
|
+
scoreVersion: "v2"
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
# Design System — life360.com
|
|
123
|
+
> Extracted automatically by Clone Architect from https://www.life360.com/
|
|
124
|
+
> Date: 2026-05-30
|
|
125
|
+
> Viewport: Desktop 1440x900 + Mobile 390x844
|
|
126
|
+
> 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).
|
|
127
|
+
|
|
128
|
+
> **🤖 TL;DR for AI agents** (read this first — saves you scanning the full doc):
|
|
129
|
+
>
|
|
130
|
+
> - **Canvas**: `rgb(255, 255, 255)` is the page background. Every component composits against this.
|
|
131
|
+
> - **Accent**: `rgb(118, 46, 235)` for primary CTAs ONLY. Never decorative.
|
|
132
|
+
> - **Body type**: 16px (token: `typography.body`). Default for ALL text not in a heading role.
|
|
133
|
+
> - **Section rhythm**: 48px between major bands. Card padding: 24px.
|
|
134
|
+
> - **Default radius**: 6px on buttons/inputs. Pills (`9999px`) only for icon-buttons or status chips.
|
|
135
|
+
>
|
|
136
|
+
> **Before generating UI**: import this DESIGN.md, scan §2 (Color Palette) + §4 (Components) + §10 (Agent Guide). Skip §11–12 unless extending.
|
|
137
|
+
|
|
138
|
+
## 1. Visual Theme & Atmosphere
|
|
139
|
+
|
|
140
|
+
life360.com adopts the classic pure-white canvas (`#ffffff`) — a deliberate choice that recedes into transparency, letting typography, color and product imagery carry the entire visual weight.
|
|
141
|
+
|
|
142
|
+
Typography is anchored in **Twemoji Country Flags**. Headlines use weight 900 for confident, assertive presence — the brand wants to be heard. Negative letter-spacing at display sizes (-0.8px at 60px) compresses headlines into engineered blocks, dense and precise.
|
|
143
|
+
|
|
144
|
+
Body text reads in Black (`#31302e`) — softened from pure black, a small but deliberate detail that lowers reading friction. **Violet** (`#762eeb`) 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 the way light actually falls on stacked surfaces, not the simulated drop-shadow of cheap interfaces.
|
|
145
|
+
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.
|
|
146
|
+
|
|
147
|
+
**Key Characteristics:**
|
|
148
|
+
- Background: Pure White (`#ffffff`)
|
|
149
|
+
- Primary typeface: centraNo2
|
|
150
|
+
- Primary text: Black (`#31302e`)
|
|
151
|
+
- Accent: Violet (`#762eeb`)
|
|
152
|
+
- Display: 60px weight 900, letter-spacing -0.8px
|
|
153
|
+
- Shadow system: 1 distinct elevation levels
|
|
154
|
+
- Custom fonts loaded: centraNo2, centraNo2 Fallback
|
|
155
|
+
|
|
156
|
+
## 2. Color Palette & Roles
|
|
157
|
+
|
|
158
|
+
### Background & Surface
|
|
159
|
+
- **Primary** (`#ffffff`): Page background (primary)
|
|
160
|
+
- **Light Gray** (`#e5e7eb`): Surface / elevated background
|
|
161
|
+
- **Light Gray** (`#f3f4f6`): Surface / elevated background
|
|
162
|
+
- **Off-Cream** (`#f9f7f3`): Surface / elevated background
|
|
163
|
+
- **Beige** (`#fff5de`): Surface / elevated background
|
|
164
|
+
|
|
165
|
+
### Text & Content
|
|
166
|
+
- **Black** (`#31302e`): Primary body text
|
|
167
|
+
- **Text Placeholder** (`#666666`): Text (CSS var)
|
|
168
|
+
- **Pure Black** (`#000000`): Secondary text
|
|
169
|
+
- **Translucent Cobalt Blue (80%)** (`rgba(0, 65, 198, 0.8)`): Secondary text
|
|
170
|
+
- **Navy Blue** (`#180d43`): Secondary text
|
|
171
|
+
|
|
172
|
+
### Accent & Interactive
|
|
173
|
+
- **Brand 30** (`#dabbfa`): Accent / interactive (CSS var)
|
|
174
|
+
- **Brand 40** (`#c599f7`): Accent / interactive (CSS var)
|
|
175
|
+
- **Primary 2** (`#efefef`): Accent / interactive (CSS var)
|
|
176
|
+
- **Brand 10** (`#f6eefe`): Accent / interactive (CSS var)
|
|
177
|
+
- **Brand 20** (`#e9d5fd`): Accent / interactive (CSS var)
|
|
178
|
+
- **Brand 70** (`#5a27ab`): Accent / interactive (CSS var)
|
|
179
|
+
- **Brand 60** (`#762eeb`): Accent / interactive (CSS var)
|
|
180
|
+
|
|
181
|
+
### Border & Divider
|
|
182
|
+
- **Silver** (`#c5c4bf`): Borders / dividers
|
|
183
|
+
|
|
184
|
+
### Full Extracted Palette
|
|
185
|
+
**26 colors rendered on the page** + **128** more declared in design tokens (CSS custom properties — not necessarily painted). (18 categorized above + 136 additional below.)
|
|
186
|
+
Rendered values are read via `getComputedStyle()`; token values come from CSS variable declarations. Third-party logo colors are filtered out.
|
|
187
|
+
|
|
188
|
+
- `#9a66ff` — #9a66ff
|
|
189
|
+
- `#8652ff` — Violet
|
|
190
|
+
- `#ffce19` — Gold
|
|
191
|
+
- `#1f1e1d` — Near Black
|
|
192
|
+
- `#f7776b` — Coral
|
|
193
|
+
- `#f4f0e7` — Warm Cream
|
|
194
|
+
- `#5dceff` — #5dceff
|
|
195
|
+
- `#89ec7e` — Mint
|
|
196
|
+
- `#f16ee5` — Magenta
|
|
197
|
+
- `#ffce5b` — #ffce5b
|
|
198
|
+
- `#51504b` — Dark Gray
|
|
199
|
+
- `#1e1f1d` — Near Black
|
|
200
|
+
- `#ffe7ad` — Vibrant Yellow
|
|
201
|
+
- `#29246a` — #29246a
|
|
202
|
+
- `#37cd8f` — #37cd8f
|
|
203
|
+
- `#f1c40f` — Amber *(token)*
|
|
204
|
+
- `#bebebe` — Silver *(token)*
|
|
205
|
+
- `#00adbb` — #00adbb *(token)*
|
|
206
|
+
- `#562e9b` — #562e9b *(token)*
|
|
207
|
+
- `#616161` — Dim Gray *(token)*
|
|
208
|
+
- `#af2913` — #af2913 *(token)*
|
|
209
|
+
- `#ebebeb` — Light Gray *(token)*
|
|
210
|
+
- `#034a3e` — #034a3e *(token)*
|
|
211
|
+
- `#37cd84` — #37cd84 *(token)*
|
|
212
|
+
- `#acf0ff` — #acf0ff *(token)*
|
|
213
|
+
- `#f8f9fa` — Off-White *(token)*
|
|
214
|
+
- `#7661a6` — #7661a6 *(token)*
|
|
215
|
+
- `#0a7e80` — #0a7e80 *(token)*
|
|
216
|
+
- `#0c7074` — #0c7074 *(token)*
|
|
217
|
+
- `#d2d2d2` — Silver *(token)*
|
|
218
|
+
- `#243832` — Charcoal *(token)*
|
|
219
|
+
- `#868e96` — Medium Gray *(token)*
|
|
220
|
+
- *…+104 more in `raw-css.json` (`desktop.allColors`).*
|
|
221
|
+
|
|
222
|
+
### CSS Custom Properties (Design Tokens)
|
|
223
|
+
|
|
224
|
+
**Warning**
|
|
225
|
+
- `--toastify-color-warning`: `#f1c40f`
|
|
226
|
+
- `--toastify-text-color-warning`: `#fff`
|
|
227
|
+
- `--color-yellow-20`: `#fff5de`
|
|
228
|
+
- `--color-yellow-50`: `#ffe7ad`
|
|
229
|
+
|
|
230
|
+
**Primary Brand Color**
|
|
231
|
+
- `--color-brand-30`: `#dabbfa`
|
|
232
|
+
- `--color-brand-40`: `#c599f7`
|
|
233
|
+
- `--color-brand-10`: `#f6eefe`
|
|
234
|
+
- `--color-brand-20`: `#e9d5fd`
|
|
235
|
+
|
|
236
|
+
**Z-Index Token**
|
|
237
|
+
- `--toastify-z-index`: `9999`
|
|
238
|
+
|
|
239
|
+
**Error / Destructive**
|
|
240
|
+
- `--toastify-icon-color-error`: `#e74c3c`
|
|
241
|
+
- `--toastify-color-error`: `#e74c3c`
|
|
242
|
+
- `--toastify-text-color-error`: `#fff`
|
|
243
|
+
- `--color-red-20`: `#fde4e1`
|
|
244
|
+
|
|
245
|
+
**Spacing Token**
|
|
246
|
+
- `--tw-numeric-spacing`: ``
|
|
247
|
+
- `--tw-border-spacing-y`: `0`
|
|
248
|
+
- `--tw-border-spacing-x`: `0`
|
|
249
|
+
|
|
250
|
+
**Shadow Token**
|
|
251
|
+
- `--tw-drop-shadow`: ``
|
|
252
|
+
- `--tw-ring-shadow`: `0 0 #0000`
|
|
253
|
+
- `--tw-shadow-colored`: `0 0 #0000`
|
|
254
|
+
- `--tw-ring-offset-shadow`: `0 0 #0000`
|
|
255
|
+
|
|
256
|
+
**Font Family Token**
|
|
257
|
+
- `--toastify-font-family`: `sans-serif`
|
|
258
|
+
|
|
259
|
+
**Border Radius Token**
|
|
260
|
+
- `--toastify-toast-bd-radius`: `6px`
|
|
261
|
+
|
|
262
|
+
**Success**
|
|
263
|
+
- `--color-green-100`: `#89ec7e`
|
|
264
|
+
- `--color-green-50`: `#c4f5be`
|
|
265
|
+
- `--toastify-icon-color-success`: `#07bc0c`
|
|
266
|
+
- `--toastify-text-color-success`: `#fff`
|
|
267
|
+
|
|
268
|
+
**Other tokens**
|
|
269
|
+
- `--osano-link-color-contrast`: `#9a66ff`
|
|
270
|
+
- `--text-placeholder`: `#666`
|
|
271
|
+
- `--osano-button-background-color-hover`: `#9a66ff`
|
|
272
|
+
- `--osano-focus-outline-color`: `Highlight`
|
|
273
|
+
- `--osano-info-dialog-toggle-off-track-color-hover`: `#bebebe`
|
|
274
|
+
- `--osano-button-deny-background-color-hover`: `#9a66ff`
|
|
275
|
+
- `--toastify-spinner-color`: `#616161`
|
|
276
|
+
- `--osano-toggle-on-thumb-color`: `#FFFFFF`
|
|
277
|
+
|
|
278
|
+
## 3. Typography Rules
|
|
279
|
+
|
|
280
|
+
### Font Families
|
|
281
|
+
- **Primary**: `Twemoji Country Flags`
|
|
282
|
+
- **Secondary**: `centraNo2`
|
|
283
|
+
- **Font 3**: `centraNo2 Fallback`
|
|
284
|
+
- **Font 4**: `ui-sans-serif`
|
|
285
|
+
|
|
286
|
+
### Custom Fonts Loaded
|
|
287
|
+
- **centraNo2** weight 100 300 (normal)
|
|
288
|
+
- **centraNo2** weight 400 (normal)
|
|
289
|
+
- **centraNo2** weight 700 (normal)
|
|
290
|
+
- **centraNo2** weight 900 (normal)
|
|
291
|
+
- **centraNo2 Fallback** weight normal (normal)
|
|
292
|
+
|
|
293
|
+
### Typography Hierarchy
|
|
294
|
+
|
|
295
|
+
| Role | Font | Size | Weight | Line Height | Letter Spacing | Notes |
|
|
296
|
+
|------|------|------|--------|-------------|----------------|-------|
|
|
297
|
+
| Display Hero | Twemoji Country Flags | 96px | 900 | 1 | -0.8px | Main headline (h2) |
|
|
298
|
+
| Sub-heading | Twemoji Country Flags | 48px | 700 | 1 | normal | Third-level heading (h3) |
|
|
299
|
+
| Label Heading | Twemoji Country Flags | 36px | 700 | 1.11 | -0.9px | Small heading (H5) |
|
|
300
|
+
| Label Heading | Twemoji Country Flags | 18px | 400 | 1.39 | -0.18px | Small heading (H4) |
|
|
301
|
+
| Card Title | Twemoji Country Flags | 16px | 400 | 1.5 | normal | Card headings |
|
|
302
|
+
| Button Large | Twemoji Country Flags | 16px | 700 | 1 | normal | Button label (16px) |
|
|
303
|
+
| Link | Twemoji Country Flags | 14px | 400 | 1.43 | normal | Link (14px) — Decoration: none |
|
|
304
|
+
|
|
305
|
+
### Full Font Size Scale
|
|
306
|
+
|
|
307
|
+
Sizes detected in the design (descending): `96px`, `72px`, `60px`, `48px`, `36px`, `32px`, `30px`, `26px`, `24px`, `20px`, `18px`, `16px`, `14px`, `13px`, `12px`
|
|
308
|
+
|
|
309
|
+
> 9 size(s) detected outside the sampled hierarchy (72px, 60px, 32px, 30px, 26px, 24px, 20px, 13px, 12px). These appear on elements not in the sampled set — likely additional display sizes, marketing-section overrides, or third-party-widget styles.
|
|
310
|
+
|
|
311
|
+
### OpenType & Variable Font Features
|
|
312
|
+
|
|
313
|
+
The typography uses these OpenType features intentionally — this is a sophisticated type system, not a default fallback:
|
|
314
|
+
|
|
315
|
+
- **contextual alternates** (`calt`) — connections between letters refined contextually
|
|
316
|
+
- **case-sensitive forms** (`case`) — punctuation height adjusted for uppercase contexts
|
|
317
|
+
|
|
318
|
+
**Clone instruction:** Enable these in your CSS:
|
|
319
|
+
```css
|
|
320
|
+
body {
|
|
321
|
+
font-feature-settings: "case", "rlig", "calt";
|
|
322
|
+
}
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
## 4. Component Stylings
|
|
326
|
+
|
|
327
|
+
### Buttons
|
|
328
|
+
|
|
329
|
+
**Primary Brand**
|
|
330
|
+
- Background: `#8652ff`
|
|
331
|
+
- Text: `#ffffff` `{colors.on-primary}`
|
|
332
|
+
- Padding: 8px 12px
|
|
333
|
+
- Radius: 4px
|
|
334
|
+
- Border: 1px solid rgb(255, 255, 255)
|
|
335
|
+
- Font: 16px weight 700
|
|
336
|
+
- Use: Primary CTA / brand action
|
|
337
|
+
- Focus: outline: `rgba(0, 65, 198, 0.8) solid 3px`
|
|
338
|
+
|
|
339
|
+
**Icon Button**
|
|
340
|
+
- Background: `transparent`
|
|
341
|
+
- Text: `#ffffff` `{colors.on-primary}`
|
|
342
|
+
- Padding: 0px
|
|
343
|
+
- Radius: 50%
|
|
344
|
+
- Border: 2px solid rgba(0, 0, 0, 0)
|
|
345
|
+
- Font: 16px weight 400
|
|
346
|
+
- Use: Toolbar/UI icons
|
|
347
|
+
- Focus: outline: `rgba(0, 65, 198, 0.8) solid 3px`
|
|
348
|
+
|
|
349
|
+
**Pill**
|
|
350
|
+
- Background: `transparent`
|
|
351
|
+
- Text: `#31302e` `{colors.hairline}`
|
|
352
|
+
- Padding: 8px 20px
|
|
353
|
+
- Radius: 9999px
|
|
354
|
+
- Font: 16px weight 400
|
|
355
|
+
- Use: Status pills, tags, chips
|
|
356
|
+
- Focus: outline: `rgba(0, 65, 198, 0.8) solid 3px`
|
|
357
|
+
|
|
358
|
+
**Primary Brand**
|
|
359
|
+
- Background: `#762eeb` `{colors.primary}`
|
|
360
|
+
- Text: `#ffffff` `{colors.on-primary}`
|
|
361
|
+
- Padding: 8px 24px
|
|
362
|
+
- Radius: 6px
|
|
363
|
+
- Border: 2px solid rgb(118, 46, 235)
|
|
364
|
+
- Font: 16px weight 700
|
|
365
|
+
- Use: Primary CTA / brand action
|
|
366
|
+
- Focus: outline: `rgba(0, 65, 198, 0.8) solid 3px`
|
|
367
|
+
|
|
368
|
+
**Light / Invert**
|
|
369
|
+
- Background: `#ffffff` `{colors.on-primary}`
|
|
370
|
+
- Text: `#762eeb` `{colors.primary}`
|
|
371
|
+
- Padding: 8px 24px
|
|
372
|
+
- Radius: 6px
|
|
373
|
+
- Border: 2px solid rgb(118, 46, 235)
|
|
374
|
+
- Font: 16px weight 700
|
|
375
|
+
- Use: Bright CTA on dark sections
|
|
376
|
+
- Focus: outline: `rgba(0, 65, 198, 0.8) solid 3px`
|
|
377
|
+
|
|
378
|
+
**Pill**
|
|
379
|
+
- Background: `#51504b`
|
|
380
|
+
- Text: `#ffffff` `{colors.on-primary}`
|
|
381
|
+
- Padding: 8px
|
|
382
|
+
- Radius: 9999px
|
|
383
|
+
- Font: 16px weight 400
|
|
384
|
+
- Use: Status pills, tags, chips
|
|
385
|
+
- Focus: outline: `rgba(0, 65, 198, 0.8) solid 3px`
|
|
386
|
+
|
|
387
|
+
### Inputs & Forms
|
|
388
|
+
|
|
389
|
+
**Text Input**
|
|
390
|
+
- Background: `#ffffff` `{colors.on-primary}`
|
|
391
|
+
- Text: `#51504b`
|
|
392
|
+
- Padding: 8px
|
|
393
|
+
- Radius: 6px
|
|
394
|
+
- Border: 1px solid rgb(255, 255, 255)
|
|
395
|
+
- Font: 16px weight 400
|
|
396
|
+
- Use: Text fields, search inputs
|
|
397
|
+
- Focus: boxShadow: `rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0`, outline: `rgba(0, 0, 0, 0) solid 2px`
|
|
398
|
+
|
|
399
|
+
### CTA Banners
|
|
400
|
+
|
|
401
|
+
**Full-width CTA**
|
|
402
|
+
- Background: `#762eeb` `{colors.primary}`
|
|
403
|
+
- Text: `#ffffff` `{colors.on-primary}`
|
|
404
|
+
- Padding: 8px 24px
|
|
405
|
+
- Radius: 12px
|
|
406
|
+
- Font: 18px weight 700
|
|
407
|
+
- Use: Full-width conversion strip with headline + button
|
|
408
|
+
- Focus: outline: `rgba(0, 65, 198, 0.8) solid 3px`
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
## 4b. Component Behaviors (State Matrix)
|
|
412
|
+
|
|
413
|
+
### Interaction State Narrative
|
|
414
|
+
|
|
415
|
+
- **Input**:
|
|
416
|
+
- **focus:** shadow added
|
|
417
|
+
|
|
418
|
+
*State transitions extracted via Playwright simulation — exact values in the YAML matrix below.*
|
|
419
|
+
|
|
420
|
+
```yaml
|
|
421
|
+
component-behaviors:
|
|
422
|
+
button:
|
|
423
|
+
default:
|
|
424
|
+
bg: "rgb(134, 82, 255)"
|
|
425
|
+
fg: "rgb(255, 255, 255)"
|
|
426
|
+
border: "1px solid rgb(255, 255, 255)"
|
|
427
|
+
focus:
|
|
428
|
+
bg: "rgb(134, 82, 255)"
|
|
429
|
+
fg: "rgb(255, 255, 255)"
|
|
430
|
+
border: "1px solid rgb(255, 255, 255)"
|
|
431
|
+
input:
|
|
432
|
+
default:
|
|
433
|
+
bg: "rgb(255, 255, 255)"
|
|
434
|
+
fg: "rgb(81, 80, 75)"
|
|
435
|
+
border: "1px solid rgb(255, 255, 255)"
|
|
436
|
+
focus:
|
|
437
|
+
bg: "rgb(255, 255, 255)"
|
|
438
|
+
fg: "rgb(81, 80, 75)"
|
|
439
|
+
border: "1px solid rgb(255, 255, 255)"
|
|
440
|
+
shadow: "rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0"
|
|
441
|
+
link:
|
|
442
|
+
default:
|
|
443
|
+
bg: "rgba(0, 0, 0, 0)"
|
|
444
|
+
fg: "rgb(151, 99, 255)"
|
|
445
|
+
card:
|
|
446
|
+
default:
|
|
447
|
+
bg: "rgba(0, 0, 0, 0)"
|
|
448
|
+
fg: "rgb(49, 48, 46)"
|
|
449
|
+
navLink:
|
|
450
|
+
default:
|
|
451
|
+
bg: "rgba(0, 0, 0, 0)"
|
|
452
|
+
fg: "rgb(49, 48, 46)"
|
|
453
|
+
badge:
|
|
454
|
+
default:
|
|
455
|
+
bg: "rgba(0, 0, 0, 0)"
|
|
456
|
+
fg: "rgb(255, 255, 255)"
|
|
457
|
+
footerLink:
|
|
458
|
+
default:
|
|
459
|
+
bg: "rgba(0, 0, 0, 0)"
|
|
460
|
+
fg: "rgb(134, 82, 255)"
|
|
461
|
+
```
|
|
462
|
+
|
|
463
|
+
**Agent usage**: Validate generated components against this matrix. If your output's `:hover` state changes properties not listed here, you are off-brand.
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
## 4c. Component Vocabulary (Closed System)
|
|
467
|
+
|
|
468
|
+
*This brand uses ONLY the following component vocabulary. Introducing new variants without justification breaks the system's tonal coherence.*
|
|
469
|
+
|
|
470
|
+
### Buttons
|
|
471
|
+
- **4 shape(s)** in this system: `Primary Brand`, `Icon Button`, `Pill`, `Light / Invert`
|
|
472
|
+
- **DO NOT introduce new buttons variants** without justification
|
|
473
|
+
|
|
474
|
+
### Inputs & Forms
|
|
475
|
+
- **1 shape(s)** in this system: `Text Input`
|
|
476
|
+
- **DO NOT introduce new inputs & forms variants** without justification
|
|
477
|
+
|
|
478
|
+
### CTA Banners
|
|
479
|
+
- **1 shape(s)** in this system: `Full-width CTA`
|
|
480
|
+
- **DO NOT introduce new cta banners variants** without justification
|
|
481
|
+
|
|
482
|
+
## 5. Layout Principles
|
|
483
|
+
|
|
484
|
+
### Layout Type
|
|
485
|
+
**top-nav + content**
|
|
486
|
+
|
|
487
|
+
### Grid
|
|
488
|
+
Single column, centered content
|
|
489
|
+
|
|
490
|
+
### Max Width
|
|
491
|
+
1200px
|
|
492
|
+
|
|
493
|
+
### Spacing System
|
|
494
|
+
Compact spacing — information density prioritized
|
|
495
|
+
|
|
496
|
+
| Token | Value |
|
|
497
|
+
|-------|-------|
|
|
498
|
+
| xxs | 2px |
|
|
499
|
+
| xs | 4px |
|
|
500
|
+
| sm | 8px |
|
|
501
|
+
| md | 12px |
|
|
502
|
+
| base | 16px |
|
|
503
|
+
| lg | 24px |
|
|
504
|
+
| xl | 32px |
|
|
505
|
+
| 2xl | 48px |
|
|
506
|
+
| 3xl | 64px |
|
|
507
|
+
|
|
508
|
+
### Border Radius Scale
|
|
509
|
+
| Name | Value | Use |
|
|
510
|
+
|------|-------|-----|
|
|
511
|
+
| None | 0px | No rounding |
|
|
512
|
+
| Xs | 4px | Tiny corners (badges, micro elements) |
|
|
513
|
+
| Sm | 6px | Buttons, inputs, small elements |
|
|
514
|
+
| Md | 12px | Cards, containers |
|
|
515
|
+
| Lg | 16px | Large rounded elements, pill segments |
|
|
516
|
+
| Xl | 24px | Category strips, featured containers |
|
|
517
|
+
| Full | 9999px | Pills, avatars, circular elements |
|
|
518
|
+
|
|
519
|
+
### Shape Language
|
|
520
|
+
|
|
521
|
+
| Component | Border Radius |
|
|
522
|
+
|-----------|---------------|
|
|
523
|
+
| Buttons | `4px` |
|
|
524
|
+
| Inputs & Forms | `6px` |
|
|
525
|
+
| CTA Banners | `12px` |
|
|
526
|
+
| Page Body | `0px` |
|
|
527
|
+
| Navigation | `0px` |
|
|
528
|
+
| Primary Input | `6px` |
|
|
529
|
+
|
|
530
|
+
**Shape Personality**: Moderate Rounding — Medium corners (4–12px). Modern SaaS standard, neither sharp nor pill.
|
|
531
|
+
|
|
532
|
+
**Full Radius Spectrum**: 0px, 2px, 4px, 6px, 12px, 16px, 24px, full/pill (from `allBorderRadii` scan)
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
## 5b. Spacing Rhythm Names
|
|
536
|
+
|
|
537
|
+
*Named spacing tokens with explicit use cases. Use these names in YOUR code instead of raw pixels for consistency.*
|
|
538
|
+
|
|
539
|
+
| Name | Value | Use case |
|
|
540
|
+
|------|-------|----------|
|
|
541
|
+
| **hero** | `64px` | Top/bottom of full-bleed hero sections |
|
|
542
|
+
| **section** | `32px` | Between major bands (color change, content shift) |
|
|
543
|
+
| **subsection** | `24px` | Within a section, between content groups |
|
|
544
|
+
| **card** | `12px` | Card padding, list-item spacing |
|
|
545
|
+
| **compact** | `8px` | Form fields, tight clusters, badge padding |
|
|
546
|
+
| **micro** | `4px` | Icon-text gap, tag inner padding |
|
|
547
|
+
|
|
548
|
+
**Agent rule**: NEVER hardcode raw pixel values for spacing in generated UI. Always reference these named tokens (`spacing-rhythm.section`, etc.).
|
|
549
|
+
|
|
550
|
+
## 5c. Widget & Structure Library
|
|
551
|
+
|
|
552
|
+
Structural patterns extracted from the page DOM — these are the **blueprints** an agent should follow to reproduce the page architecture (not just CSS values).
|
|
553
|
+
|
|
554
|
+
**4/8 structural patterns detected.**
|
|
555
|
+
|
|
556
|
+
### Hero Pattern
|
|
557
|
+
|
|
558
|
+
- **Composition:** centered — Centered composition — heading + subheading + CTAs stacked vertically, content centered horizontally. Common for SaaS marketing pages.
|
|
559
|
+
- **Viewport coverage:** 334px tall (not full-viewport)
|
|
560
|
+
- **Heading:** "When they’re okay, you’re okay." — 60px left-aligned
|
|
561
|
+
- **Subheading:** "Track your people, pets, and things with Life360 and let the peace of mind wash over you."
|
|
562
|
+
- **CTAs:** none detected in hero (unusual — agent should verify)
|
|
563
|
+
- **Clone instruction:** Reproduce the **centered** layout. Use the heading font-size token at the documented size. No imagery needed for hero — text-driven.
|
|
564
|
+
|
|
565
|
+
### Card Grid Pattern
|
|
566
|
+
|
|
567
|
+
- **Card count:** 6 cards detected
|
|
568
|
+
- **Columns (desktop):** 1-up grid
|
|
569
|
+
- **Card dimensions:** 1435×781px (aspect 1.84:1)
|
|
570
|
+
- **Gap:** 92px between cards
|
|
571
|
+
- **Content:** ✓ image + CTA
|
|
572
|
+
- **Image position:** top
|
|
573
|
+
- **Clone instruction:** Build a 1-column grid (desktop) with cards at ~1.84:1 aspect ratio. Each card has an image at the top.
|
|
574
|
+
|
|
575
|
+
### Pricing Table Pattern
|
|
576
|
+
|
|
577
|
+
- **Tier count:** 3 pricing tiers
|
|
578
|
+
- **Layout:** vertical stacked
|
|
579
|
+
- **Columns (desktop):** 3-up
|
|
580
|
+
- **Feature list:** ✓ (median ~7 feature points per tier)
|
|
581
|
+
- **Clone instruction:** Build a 3-column vertical-stack pricing comparison.
|
|
582
|
+
|
|
583
|
+
### Footer Pattern
|
|
584
|
+
|
|
585
|
+
- **Columns:** 3
|
|
586
|
+
- **Links:** 32 total
|
|
587
|
+
- **Height:** 592px
|
|
588
|
+
- **Includes:** ✗ no newsletter | ✓ social icons | ✓ copyright
|
|
589
|
+
- **Clone instruction:** Build a 3-column footer with ~11 links per column, social media links, and a copyright line.
|
|
590
|
+
|
|
591
|
+
## 6. Depth & Elevation
|
|
592
|
+
|
|
593
|
+
| Level | Treatment | Use |
|
|
594
|
+
|-------|-----------|-----|
|
|
595
|
+
| Flat (Level 0) | No shadow | Page background, content blocks |
|
|
596
|
+
| Layered (Level 1) | <br>`rgb(204, 204, 204) 0px 0px 2px 2px` | Cards, elevated surfaces |
|
|
597
|
+
|
|
598
|
+
**Shadow Philosophy**: Multi-layered shadow system creating natural, atmospheric depth. Each shadow level combines multiple layers for realistic elevation.
|
|
599
|
+
|
|
600
|
+
## 7. Motion & Interaction
|
|
601
|
+
|
|
602
|
+
### Dominant Easing Curves
|
|
603
|
+
|
|
604
|
+
| Curve | Semantic Name |
|
|
605
|
+
|-------|---------------|
|
|
606
|
+
| `cubic-bezier(0.4,0,0.2,1)` | Material Standard — Balanced |
|
|
607
|
+
| `linear` | Linear — No Easing |
|
|
608
|
+
| `ease-out` | Ease Out — Decelerating |
|
|
609
|
+
|
|
610
|
+
### Duration Scale
|
|
611
|
+
|
|
612
|
+
| Value | Tier | Typical Use |
|
|
613
|
+
|-------|------|-------------|
|
|
614
|
+
| `100ms` | Fast | Hover states, micro-interactions |
|
|
615
|
+
| `150ms` | Fast | Hover states, micro-interactions |
|
|
616
|
+
| `200ms` | Normal | Panel open/close, navigation |
|
|
617
|
+
| `250ms` | Normal | Panel open/close, navigation |
|
|
618
|
+
| `300ms` | Normal | Panel open/close, navigation |
|
|
619
|
+
| `400ms` | Slow | Hero animations, page transitions |
|
|
620
|
+
| `500ms` | Slow | Hero animations, page transitions |
|
|
621
|
+
| `700ms` | Cinematic | Splash, marketing reveals |
|
|
622
|
+
|
|
623
|
+
### Copy-Paste Transition Snippets
|
|
624
|
+
|
|
625
|
+
**Opacity**
|
|
626
|
+
```css
|
|
627
|
+
transition: opacity 0.7s, visibility;
|
|
628
|
+
```
|
|
629
|
+
|
|
630
|
+
**Color / Background**
|
|
631
|
+
```css
|
|
632
|
+
transition: color 0.2s ease-out;
|
|
633
|
+
```
|
|
634
|
+
|
|
635
|
+
**Background**
|
|
636
|
+
```css
|
|
637
|
+
transition: background-color 0.2s ease-out;
|
|
638
|
+
```
|
|
639
|
+
|
|
640
|
+
**Transform**
|
|
641
|
+
```css
|
|
642
|
+
transition: transform 0.1s linear, opacity 0.2s linear, visibility linear;
|
|
643
|
+
```
|
|
644
|
+
|
|
645
|
+
### Keyframe Animation Catalog
|
|
646
|
+
|
|
647
|
+
| Animation Name | Type | Animated Props | Use Hint |
|
|
648
|
+
|----------------|------|----------------|----------|
|
|
649
|
+
| `delay-overflow` | Custom | overflow-x, overflow-y | UI transition |
|
|
650
|
+
| `osano-load-scale` | Fade + Move | transform, opacity | Focus / emphasis |
|
|
651
|
+
| `swiper-preloader-spin` | Rotate / Spin | transform | Loading indicator |
|
|
652
|
+
| `fa-beat` | Scale | transform | UI transition |
|
|
653
|
+
| `fa-bounce` | Scale | transform | Playful feedback |
|
|
654
|
+
| `fa-fade` | Fade | opacity | UI transition |
|
|
655
|
+
| `fa-beat-fade` | Fade + Move | opacity, transform | UI transition |
|
|
656
|
+
| `fa-flip` | Rotate / Spin | transform | UI transition |
|
|
657
|
+
| `fa-shake` | Rotate / Spin | transform | Error feedback |
|
|
658
|
+
| `fa-spin` | Rotate / Spin | transform | Loading indicator |
|
|
659
|
+
| `fade-in` | Fade | opacity | Element entrance |
|
|
660
|
+
| `pulse` | Fade | opacity | Attention / status |
|
|
661
|
+
| `spin` | Rotate / Spin | transform | Loading indicator |
|
|
662
|
+
| `Toastify__trackProgress` | Scale | transform | UI transition |
|
|
663
|
+
| `Toastify__bounceInRight` | Fade + Move | animation-timing-function, opacity, transform | Playful feedback |
|
|
664
|
+
| `Toastify__bounceOutRight` | Fade + Move | opacity, transform | Playful feedback |
|
|
665
|
+
| `Toastify__bounceInLeft` | Fade + Move | animation-timing-function, opacity, transform | Playful feedback |
|
|
666
|
+
| `Toastify__bounceOutLeft` | Fade + Move | opacity, transform | Playful feedback |
|
|
667
|
+
| `Toastify__bounceInUp` | Fade + Move | animation-timing-function, opacity, transform | Playful feedback |
|
|
668
|
+
| `Toastify__bounceOutUp` | Fade + Move | transform, opacity | Playful feedback |
|
|
669
|
+
|
|
670
|
+
> *20 additional animations omitted (repetitive variants). See raw keyframes in `raw-css.json`.*
|
|
671
|
+
|
|
672
|
+
### Motion Fingerprint
|
|
673
|
+
|
|
674
|
+
- **Speed Character**: Deliberate & Calm (median duration: `300ms`)
|
|
675
|
+
- **Dominant Easing**: custom cubic-bezier curves
|
|
676
|
+
- **Animation Library**: 40 unique animations (40 total including variants)
|
|
677
|
+
|
|
678
|
+
> This design moves with deliberate & calm timing using custom cubic-bezier curves, creating a UI that feels calm and controlled.
|
|
679
|
+
|
|
680
|
+
## 8. Do's and Don'ts
|
|
681
|
+
|
|
682
|
+
### Do
|
|
683
|
+
- Use Black (`#31302e`) for text — not pure black, it's warmer and more readable
|
|
684
|
+
- Use Twemoji Country Flags as the primary typeface — it defines the brand personality
|
|
685
|
+
- Use negative letter-spacing (-0.8px) at display sizes for compressed, editorial headlines
|
|
686
|
+
- Use the extracted shadow patterns for elevation — they are tuned to match the brand palette
|
|
687
|
+
- Use full-pill radius (9999px) only for specific elements (avatars, pills, toggles)
|
|
688
|
+
- Use Violet (`#762eeb`) as the primary accent — it's the brand's signature interactive color
|
|
689
|
+
- Use small 4px radius for buttons — this design system uses subtle rounding, not pill shapes
|
|
690
|
+
- Style form inputs with a `1px solid rgb(255, 255, 255)` border — use border-based inputs, not floating labels or underline-only
|
|
691
|
+
- Maintain nav height at 56px — consistent vertical space for the navigation bar
|
|
692
|
+
- Respect the 4px–32px spacing range — the design uses a wide scale for visual breathing room
|
|
693
|
+
- Keep the hero centered and text-driven — no decorative media, typography carries the message
|
|
694
|
+
- Each card includes a top image — imagery is part of the card identity, not optional
|
|
695
|
+
|
|
696
|
+
### Don't
|
|
697
|
+
- Don't use pure black (`#000000`) for text — the near-black adds warmth
|
|
698
|
+
- Don't substitute with generic sans-serif or serif — the custom font carries the brand
|
|
699
|
+
- Don't increase letter-spacing on headings — the type is designed to run tight at scale
|
|
700
|
+
- Don't invent new shadow values — use only the extracted shadow levels
|
|
701
|
+
- Don't apply pill radius on rectangular buttons or cards — it's reserved for specific interactive elements
|
|
702
|
+
- Don't introduce additional saturated accent colors — the palette is intentionally controlled
|
|
703
|
+
- Don't over-round buttons with pill or large radius — the system uses restrained, sharp-ish corners
|
|
704
|
+
- Don't remove the input border — the border is the primary affordance indicator for form fields
|
|
705
|
+
- Don't collapse or hide the nav on scroll without an explicit scroll-triggered animation — the design uses fixed nav presence
|
|
706
|
+
- Don't add hero illustrations or photos — they'll break the typographic restraint
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
## 7b. Enforceable Brand Rules
|
|
710
|
+
|
|
711
|
+
*Structured Do/Don't with reasoning and validation tests. Agents can programmatically verify generated UI.*
|
|
712
|
+
|
|
713
|
+
```yaml
|
|
714
|
+
rules:
|
|
715
|
+
- id: brand-canvas-001
|
|
716
|
+
type: do
|
|
717
|
+
rule: "Always use the page background `rgb(255, 255, 255)` as the base canvas"
|
|
718
|
+
why: "Every component is designed to composit against this exact tone"
|
|
719
|
+
test: "document.body.style.backgroundColor === 'rgb(255, 255, 255)'"
|
|
720
|
+
- id: brand-accent-001
|
|
721
|
+
type: do
|
|
722
|
+
rule: "Reserve `rgb(118, 46, 235)` for primary CTAs and brand-mark signals only"
|
|
723
|
+
why: "Single chromatic assertion device — overuse dilutes meaning"
|
|
724
|
+
test: "querySelectorAll('[style*=\"rgb(118, 46, 235)\"]').length <= 3 per fold"
|
|
725
|
+
```
|
|
726
|
+
|
|
727
|
+
## 9. Responsive Behavior
|
|
728
|
+
|
|
729
|
+
### Breakpoints
|
|
730
|
+
| Name | Width | Key Changes |
|
|
731
|
+
|------|-------|-------------|
|
|
732
|
+
| Mobile | 375px | Single column, compact spacing |
|
|
733
|
+
| Mobile | 480px | Single column, compact spacing |
|
|
734
|
+
| Mobile Large | 550px | Expanded mobile layout |
|
|
735
|
+
| Mobile Large | 767px | Expanded mobile layout |
|
|
736
|
+
| Tablet | 1023px | Multi-column grids begin |
|
|
737
|
+
| Desktop | 1280px | Full feature layout |
|
|
738
|
+
|
|
739
|
+
### Token Diff — Desktop vs Mobile
|
|
740
|
+
|
|
741
|
+
| Element | Property | Desktop | Mobile |
|
|
742
|
+
|---------|----------|---------|--------|
|
|
743
|
+
| heading | font-size | `60px` | `36px` |
|
|
744
|
+
| heading | line-height | `69px` | `41.4px` |
|
|
745
|
+
| heading | letter-spacing | `-0.8px` | `-0.4px` |
|
|
746
|
+
| button | width | `240px` | `273.594px` |
|
|
747
|
+
|
|
748
|
+
### Collapsing Strategy
|
|
749
|
+
- Headlines: 60px → 36px on mobile
|
|
750
|
+
- Navigation: horizontal links → hamburger menu on mobile
|
|
751
|
+
- Cards: multi-column → stacked vertical on mobile
|
|
752
|
+
- Footer: multi-column → stacked single column on mobile
|
|
753
|
+
|
|
754
|
+
### Touch Targets
|
|
755
|
+
- Buttons: 8px 12px padding
|
|
756
|
+
- Navigation: adequate spacing between items
|
|
757
|
+
- Interactive elements: minimum 44px touch target recommended
|
|
758
|
+
|
|
759
|
+
### Collapsing Narrative
|
|
760
|
+
|
|
761
|
+
How the structural patterns adapt from desktop to mobile (extracted from both viewport extractions):
|
|
762
|
+
|
|
763
|
+
- **Footer columns collapse:** 3 columns (desktop) → 1 column (mobile).
|
|
764
|
+
|
|
765
|
+
## 9b. Visual Tone & Photography
|
|
766
|
+
|
|
767
|
+
**Tone:** Photography-driven
|
|
768
|
+
|
|
769
|
+
The site is dominated by photography (JPG/WebP). Photos carry the brand voice as much as the typography. Use authentic, brand-appropriate imagery — generic stock will degrade quality.
|
|
770
|
+
|
|
771
|
+
**Canonical Brand Image (OG):**
|
|
772
|
+
- https://www.life360.com/images/life360-og-image.jpg (1200×630px)
|
|
773
|
+
*This is the image shown when the site is shared on social media — represents the brand visual essence.*
|
|
774
|
+
|
|
775
|
+
**Hero Image (above-fold dominant visual):**
|
|
776
|
+
- Aspect: 1.96:1 (landscape (16:9-ish))
|
|
777
|
+
- Rendered size: 1408×720px
|
|
778
|
+
- Alt text: "INTL Life360 Hero - 3369x1515"
|
|
779
|
+
- *Use this aspect ratio + composition for your clone's hero — mimicking the proportion preserves the visual hierarchy.*
|
|
780
|
+
|
|
781
|
+
**Aspect Ratio Distribution:**
|
|
782
|
+
- Landscape (1.15–2.3): 3 (13%)
|
|
783
|
+
- Portrait (<0.87): 3 (13%)
|
|
784
|
+
- Square (0.87–1.15): 14 (58%)
|
|
785
|
+
- Ultra-wide (>2.3): 4 (17%)
|
|
786
|
+
|
|
787
|
+
**Media Format Mix:**
|
|
788
|
+
- JPG: 7 (typically photographic content)
|
|
789
|
+
- WebP: 9 (optimized photo/illustration hybrid)
|
|
790
|
+
- PNG: 4 (logos, transparent UI elements, mockups)
|
|
791
|
+
- SVG: 4 (icons, illustrations, decorative geometry)
|
|
792
|
+
|
|
793
|
+
**Average rendered image size:** 355×317px
|
|
794
|
+
**Above-fold image count:** 8 / 24
|
|
795
|
+
|
|
796
|
+
**Imagery Guidance for clones:**
|
|
797
|
+
- Source authentic photography (or licensed stock that matches the brand mood) — placeholders will visibly degrade the clone.
|
|
798
|
+
- Match the dominant aspect ratio (see above) so card grids and hero compositions hold.
|
|
799
|
+
|
|
800
|
+
## 10. Agent Prompt Guide
|
|
801
|
+
|
|
802
|
+
### Quick Reference
|
|
803
|
+
- Background: Pure White (`#ffffff`)
|
|
804
|
+
- Primary text: Black (`#31302e`)
|
|
805
|
+
- Accent: Violet (`#762eeb`)
|
|
806
|
+
- Border: Black (`#31302e`)
|
|
807
|
+
- Font: Twemoji Country Flags
|
|
808
|
+
- Body: 16px weight 400
|
|
809
|
+
|
|
810
|
+
### Example Component Prompts
|
|
811
|
+
- "Create a hero section on Pure White background (#ffffff). Headline at 60px Twemoji Country Flags weight 900, line-height 1.15, letter-spacing -0.8px, color #31302e."
|
|
812
|
+
- "Create the primary CTA button: `#762eeb` background, `#ffffff` text, 4px border-radius, 8px 12px padding, 700 weight, Twemoji Country Flags font."
|
|
813
|
+
- "Design a card on `transparent` background. Border: none. Radius: 0px. Shadow: none. Padding: 0px."
|
|
814
|
+
- "Build navigation: static on `#ffffff`. Twemoji Country Flags 16px weight 400 for links."
|
|
815
|
+
|
|
816
|
+
### Iteration Guide
|
|
817
|
+
1. **Canvas**: Set the light canvas to Pure White (`#ffffff`) — every component is composited against this exact base.
|
|
818
|
+
2. **Typography**: All type in Twemoji Country Flags, weight range 400–900. Never exceed 900 — heavier weights break the brand's tonal restraint.
|
|
819
|
+
3. **Accent**: Violet (`#762eeb`) is the sole interactive color. On hover → #9a66ff (`#9a66ff`). Use CSS transitions, not opacity/brightness filters.
|
|
820
|
+
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.
|
|
821
|
+
5. **Shape**: CTAs at `4px`, cards at `0px`. Apply border-radius from the extracted scale only — don't invent intermediate values.
|
|
822
|
+
6. **Spacing**: Use the `--ca-space-*` token scale (4px–32px). All padding, margin, and gap values are multiples from this scale — no magic numbers.
|
|
823
|
+
7. **Tokens**: Import from §11 CSS Export (`--ca-*` vars). Never hardcode hex values — always reference a token so theming remains consistent.
|
|
824
|
+
|
|
825
|
+
## 11. CSS Design Tokens Raw Export
|
|
826
|
+
|
|
827
|
+
*Copy-paste ready `:root {}` block — all values extracted directly from the live site.*
|
|
828
|
+
|
|
829
|
+
```css
|
|
830
|
+
/* Colors */
|
|
831
|
+
:root {
|
|
832
|
+
--ca-on-primary: #ffffff;
|
|
833
|
+
--ca-surface-1: #e5e7eb;
|
|
834
|
+
--ca-surface-2: #f3f4f6;
|
|
835
|
+
--ca-hairline: #31302e;
|
|
836
|
+
--ca-primary: #762eeb;
|
|
837
|
+
--ca-semantic-info: #9a66ff;
|
|
838
|
+
--ca-primary-focus: #0041c6;
|
|
839
|
+
--ca-semantic-error: #e94641;
|
|
840
|
+
--ca-semantic-success: #07bc0c;
|
|
841
|
+
--ca-semantic-warning: #f1c40f;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
/* Typography */
|
|
845
|
+
:root {
|
|
846
|
+
--ca-font-primary: "Twemoji Country Flags", system-ui, sans-serif;
|
|
847
|
+
--ca-text-display: 96px;
|
|
848
|
+
--ca-text-body: 16px;
|
|
849
|
+
--ca-text-small: 14px;
|
|
850
|
+
--ca-text-button: 16px;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
/* Spacing & Radius */
|
|
854
|
+
:root {
|
|
855
|
+
--ca-space-xxs: 2px;
|
|
856
|
+
--ca-space-xs: 4px;
|
|
857
|
+
--ca-space-sm: 8px;
|
|
858
|
+
--ca-space-md: 12px;
|
|
859
|
+
--ca-space-base: 16px;
|
|
860
|
+
--ca-space-lg: 24px;
|
|
861
|
+
--ca-space-xl: 32px;
|
|
862
|
+
--ca-space-2xl: 48px;
|
|
863
|
+
--ca-space-3xl: 64px;
|
|
864
|
+
--ca-radius-none: 0px;
|
|
865
|
+
--ca-radius-xs: 4px;
|
|
866
|
+
--ca-radius-sm: 6px;
|
|
867
|
+
--ca-radius-md: 12px;
|
|
868
|
+
--ca-radius-lg: 16px;
|
|
869
|
+
--ca-radius-xl: 24px;
|
|
870
|
+
--ca-radius-full: 9999px;
|
|
871
|
+
}
|
|
872
|
+
```
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
## 13. Page Structure Skeleton
|
|
876
|
+
|
|
877
|
+
*The actual layout the source site uses. Reproduce these sections in order to match the site structure.*
|
|
878
|
+
|
|
879
|
+
```yaml
|
|
880
|
+
page-skeleton:
|
|
881
|
+
- section: unknown
|
|
882
|
+
tag: div
|
|
883
|
+
height: 5674px
|
|
884
|
+
width: full-bleed
|
|
885
|
+
layout: block
|
|
886
|
+
children: 4
|
|
887
|
+
- section: main-content
|
|
888
|
+
tag: main
|
|
889
|
+
height: 5674px
|
|
890
|
+
width: full-bleed
|
|
891
|
+
layout: block
|
|
892
|
+
children: 1
|
|
893
|
+
- section: main-content
|
|
894
|
+
tag: main
|
|
895
|
+
height: 5082px
|
|
896
|
+
width: full-bleed
|
|
897
|
+
layout: block
|
|
898
|
+
children: 1
|
|
899
|
+
padding: "146px 0px 0px"
|
|
900
|
+
- section: header
|
|
901
|
+
tag: div
|
|
902
|
+
classes: ["flex"]
|
|
903
|
+
height: 720px
|
|
904
|
+
width: 1408px
|
|
905
|
+
layout: flex-column justify=center
|
|
906
|
+
children: 3
|
|
907
|
+
bg: "rgb(244, 240, 231)"
|
|
908
|
+
padding: "0px 72px"
|
|
909
|
+
- section: unknown
|
|
910
|
+
tag: div
|
|
911
|
+
classes: ["swiper-wrapper"]
|
|
912
|
+
height: 430px
|
|
913
|
+
width: full-bleed
|
|
914
|
+
layout: flex-row justify=normal
|
|
915
|
+
children: 10
|
|
916
|
+
- section: unknown
|
|
917
|
+
tag: div
|
|
918
|
+
classes: ["swiper-wrapper"]
|
|
919
|
+
height: 620px
|
|
920
|
+
width: 1408px
|
|
921
|
+
layout: flex-row justify=normal
|
|
922
|
+
children: 3
|
|
923
|
+
- section: section-4
|
|
924
|
+
tag: section
|
|
925
|
+
height: 948px
|
|
926
|
+
width: full-bleed
|
|
927
|
+
layout: block
|
|
928
|
+
children: 1
|
|
929
|
+
padding: "0px 0px 50px"
|
|
930
|
+
- section: unknown
|
|
931
|
+
tag: div
|
|
932
|
+
classes: ["container", "lg:px-6", "px-4"]
|
|
933
|
+
height: 898px
|
|
934
|
+
width: full-bleed
|
|
935
|
+
layout: block
|
|
936
|
+
children: 3
|
|
937
|
+
padding: "0px 24px"
|
|
938
|
+
- section: section-5
|
|
939
|
+
tag: section
|
|
940
|
+
height: 999px
|
|
941
|
+
width: full-bleed
|
|
942
|
+
layout: block
|
|
943
|
+
children: 1
|
|
944
|
+
padding: "50px 0px 100px"
|
|
945
|
+
- section: unknown
|
|
946
|
+
tag: div
|
|
947
|
+
classes: ["container", "lg:px-6"]
|
|
948
|
+
height: 849px
|
|
949
|
+
width: full-bleed
|
|
950
|
+
layout: block
|
|
951
|
+
children: 1
|
|
952
|
+
padding: "0px 24px"
|
|
953
|
+
- section: header
|
|
954
|
+
tag: div
|
|
955
|
+
height: 547px
|
|
956
|
+
width: full-bleed
|
|
957
|
+
layout: block
|
|
958
|
+
children: 2
|
|
959
|
+
- section: unknown
|
|
960
|
+
tag: div
|
|
961
|
+
height: 547px
|
|
962
|
+
width: 896px
|
|
963
|
+
layout: flex-row justify=normal
|
|
964
|
+
children: 2
|
|
965
|
+
- section: footer
|
|
966
|
+
tag: footer
|
|
967
|
+
classes: ["bg-gray-80", "text-white", "p-4", "md:py-8"]
|
|
968
|
+
height: 592px
|
|
969
|
+
width: full-bleed
|
|
970
|
+
layout: flex-column justify=normal
|
|
971
|
+
children: 4
|
|
972
|
+
bg: "rgb(49, 48, 46)"
|
|
973
|
+
padding: "32px 16px"
|
|
974
|
+
```
|
|
975
|
+
|
|
976
|
+
**Agent rule**: rebuild sections in this order (sorted by vertical position). Match the layout primitive (grid N-col / flex direction / block).
|
|
977
|
+
|
|
978
|
+
|
|
979
|
+
## 14. Copy Library (Real Content from Source)
|
|
980
|
+
|
|
981
|
+
*Actual text content extracted from the live page. Use these strings verbatim when reproducing the site — they carry the brand voice.*
|
|
982
|
+
|
|
983
|
+
```yaml
|
|
984
|
+
copy:
|
|
985
|
+
section-headings:
|
|
986
|
+
- "Location lowdown"
|
|
987
|
+
- "Loved by 96 million people"
|
|
988
|
+
sub-headings:
|
|
989
|
+
- "Find lost or stolen stuff"
|
|
990
|
+
- "Find bags"
|
|
991
|
+
- "Free"
|
|
992
|
+
ctas:
|
|
993
|
+
- "Personnalisez vos choix"
|
|
994
|
+
- "Tile Trackers"
|
|
995
|
+
- "🇫🇷
|
|
996
|
+
FR (EN)
|
|
997
|
+
Choose Your Country"
|
|
998
|
+
- "Try Life360 for free"
|
|
999
|
+
- "Shop trackers"
|
|
1000
|
+
- "Try 7 days free"
|
|
1001
|
+
navigation:
|
|
1002
|
+
- "Skip to main content"
|
|
1003
|
+
- "Homepage"
|
|
1004
|
+
- "Pet Safety"
|
|
1005
|
+
- "Membership Plans"
|
|
1006
|
+
- "Shop"
|
|
1007
|
+
- "Sale"
|
|
1008
|
+
- "Get started"
|
|
1009
|
+
- "Tile
|
|
1010
|
+
|
|
1011
|
+
Small size, big features"
|
|
1012
|
+
- "Tile Pro
|
|
1013
|
+
|
|
1014
|
+
Longest range"
|
|
1015
|
+
- "Tile Slim
|
|
1016
|
+
|
|
1017
|
+
Fits anywhere"
|
|
1018
|
+
footer-links:
|
|
1019
|
+
- "Life360 Terms of Service"
|
|
1020
|
+
- "About"
|
|
1021
|
+
- "Your Privacy Choices"
|
|
1022
|
+
```
|
|
1023
|
+
|
|
1024
|
+
**Agent rule**: reuse these exact strings when generating UI. Do NOT translate or rephrase — brand voice is preserved through the original wording.
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
## 15. Asset Inventory (Image Roles & Ratios)
|
|
1028
|
+
|
|
1029
|
+
*Image inventory classified by role and aspect ratio. When reproducing the site, allocate this number of assets per role.*
|
|
1030
|
+
|
|
1031
|
+
```yaml
|
|
1032
|
+
assets:
|
|
1033
|
+
logo:
|
|
1034
|
+
count: 6
|
|
1035
|
+
avg-ratio: 2.88
|
|
1036
|
+
common-aspect: "~16:6 banner"
|
|
1037
|
+
sample-alts:
|
|
1038
|
+
- "Life360 logo"
|
|
1039
|
+
- "App Store Button"
|
|
1040
|
+
- "Google Play"
|
|
1041
|
+
hero:
|
|
1042
|
+
count: 1
|
|
1043
|
+
avg-ratio: 1.96
|
|
1044
|
+
common-aspect: "~16:9 landscape"
|
|
1045
|
+
sample-alts:
|
|
1046
|
+
- "INTL Life360 Hero - 3369x1515"
|
|
1047
|
+
product:
|
|
1048
|
+
count: 9
|
|
1049
|
+
avg-ratio: 1.02
|
|
1050
|
+
common-aspect: "~1:1 square"
|
|
1051
|
+
sample-alts:
|
|
1052
|
+
- "found-keys"
|
|
1053
|
+
- "kids-having-fun"
|
|
1054
|
+
- "teens-studying"
|
|
1055
|
+
thumbnail:
|
|
1056
|
+
count: 5
|
|
1057
|
+
avg-ratio: 1.00
|
|
1058
|
+
common-aspect: "~1:1 square"
|
|
1059
|
+
sample-alts:
|
|
1060
|
+
- "Core Tile 1"
|
|
1061
|
+
- "Core Tile Pro 1"
|
|
1062
|
+
- "Core Tile Slim 1"
|
|
1063
|
+
```
|
|
1064
|
+
|
|
1065
|
+
**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`.
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
## 16. Component HTML Templates
|
|
1069
|
+
|
|
1070
|
+
*Suggested HTML markup for reproducing the key components — based on what was detected in the source DOM.*
|
|
1071
|
+
|
|
1072
|
+
### Button (primary action)
|
|
1073
|
+
```html
|
|
1074
|
+
<button class="btn btn-primary">
|
|
1075
|
+
Personnalisez vos choix
|
|
1076
|
+
</button>
|
|
1077
|
+
```
|
|
1078
|
+
_Source pattern detected: padding `8px 12px` · radius `4px` · weight `700`_
|
|
1079
|
+
|
|
1080
|
+
### Generic Card
|
|
1081
|
+
```html
|
|
1082
|
+
<div class="card">
|
|
1083
|
+
<!-- content -->
|
|
1084
|
+
</div>
|
|
1085
|
+
```
|
|
1086
|
+
_Source pattern detected: padding `0px` · radius `16px` · shadow `none`_
|
|
1087
|
+
|
|
1088
|
+
**Agent rule**: use these markup skeletons as the structural baseline. Apply tokens from §2-3 for visual styling.
|
|
1089
|
+
|
|
1090
|
+
|
|
1091
|
+
## 12. Known Extraction Gaps
|
|
1092
|
+
|
|
1093
|
+
*Auto-detected limitations of this extraction — understand before building:*
|
|
1094
|
+
|
|
1095
|
+
- **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.
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
---
|
|
1099
|
+
## Extraction Completeness: 82/100 (B)
|
|
1100
|
+
|
|
1101
|
+
| Category | Score | Max | Detail |
|
|
1102
|
+
|----------|-------|-----|--------|
|
|
1103
|
+
| Colors & Palette | 25 | 25 | 18 named colors |
|
|
1104
|
+
| Typography | 18 | 20 | 7 roles defined |
|
|
1105
|
+
| Components | 12 | 20 | 3 specs extracted |
|
|
1106
|
+
| Motion & Interaction | 12 | 15 | Keyframes present |
|
|
1107
|
+
| CSS Custom Properties | 10 | 10 | 387 vars |
|
|
1108
|
+
| Responsive Breakpoints | 5 | 5 | 6 breakpoints |
|
|
1109
|
+
| Variable Fonts | 0 | 5 | None detected |
|
|
1110
|
+
|
|
1111
|
+
## 12. Known Gaps & Confidence
|
|
1112
|
+
|
|
1113
|
+
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.
|
|
1114
|
+
|
|
1115
|
+
*✅ No critical extraction gaps detected — high-confidence reproduction expected.*
|
|
1116
|
+
|
|
1117
|
+
### Per-section confidence
|
|
1118
|
+
|
|
1119
|
+
| Section | Confidence | Reason |
|
|
1120
|
+
|---------|------------|--------|
|
|
1121
|
+
| §1 Visual Theme | High | Body bg extracted via getComputedStyle() |
|
|
1122
|
+
| §2 Colors | High | 387 CSS vars (semantic naming requires ≥20 for high) |
|
|
1123
|
+
| §3 Typography | High | 7 typography roles inferred |
|
|
1124
|
+
| §4 Components | Medium | 3 component variants captured |
|
|
1125
|
+
| §7 Motion | High | Keyframes + transitions |
|
|
1126
|
+
| §8 Do's/Don'ts | High | 22 rules generated; design-decisions.json has evidence per rule |
|
|
1127
|
+
| §9 Responsive | High | 6 breakpoints detected |
|
|
1128
|
+
| §9b Photography | High | 24 images, hero present |
|
|
1129
|
+
|
|
1130
|
+
---
|
|
1131
|
+
*Generated by Clone Architect — automated Playwright extraction + design analysis.*
|
|
1132
|
+
*Source: https://www.life360.com/ | 2026-05-30T21:32:57.388Z*
|
|
1133
|
+
*All values verified via getComputedStyle() — no approximation, no hallucination.*
|