heraspec 0.1.13 → 0.1.14

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 (129) hide show
  1. package/LICENSE +22 -22
  2. package/README.md +188 -119
  3. package/bin/heraspec.js +4800 -1126
  4. package/bin/heraspec.js.map +4 -4
  5. package/dist/core/templates/skills/CHANGELOG.md +117 -117
  6. package/dist/core/templates/skills/README-template.md +58 -58
  7. package/dist/core/templates/skills/README.md +38 -38
  8. package/dist/core/templates/skills/content-optimization-skill.md +104 -104
  9. package/dist/core/templates/skills/data/design-systems.csv +54 -0
  10. package/dist/core/templates/skills/data/pages-proposed.csv +21 -21
  11. package/dist/core/templates/skills/data/pages.csv +9 -9
  12. package/dist/core/templates/skills/data/typography.csv +57 -57
  13. package/dist/core/templates/skills/deploy-documentation-skill.md +408 -0
  14. package/dist/core/templates/skills/design-system-skill.md +176 -0
  15. package/dist/core/templates/skills/documents/templates/documentation-landing-page.html +63 -63
  16. package/dist/core/templates/skills/documents/templates/documentation.html +49 -49
  17. package/dist/core/templates/skills/documents/templates/landing-script.js +38 -38
  18. package/dist/core/templates/skills/documents/templates/landing-style.css +158 -158
  19. package/dist/core/templates/skills/documents/templates/script.js +56 -56
  20. package/dist/core/templates/skills/documents/templates/style.css +155 -155
  21. package/dist/core/templates/skills/documents/templates/technical-doc-template.md +16 -16
  22. package/dist/core/templates/skills/documents/templates/user-guide-template.md +16 -16
  23. package/dist/core/templates/skills/documents-skill.md +104 -104
  24. package/dist/core/templates/skills/e2e-test-skill.md +119 -119
  25. package/dist/core/templates/skills/git-embed-skill.md +57 -0
  26. package/dist/core/templates/skills/integration-test-skill.md +118 -118
  27. package/dist/core/templates/skills/knowledge/README.md +63 -0
  28. package/dist/core/templates/skills/knowledge/design-systems/airbnb/DESIGN.md +246 -0
  29. package/dist/core/templates/skills/knowledge/design-systems/airtable/DESIGN.md +89 -0
  30. package/dist/core/templates/skills/knowledge/design-systems/apple/DESIGN.md +313 -0
  31. package/dist/core/templates/skills/knowledge/design-systems/bmw/DESIGN.md +180 -0
  32. package/dist/core/templates/skills/knowledge/design-systems/cal/DESIGN.md +259 -0
  33. package/dist/core/templates/skills/knowledge/design-systems/claude/DESIGN.md +312 -0
  34. package/dist/core/templates/skills/knowledge/design-systems/clay/DESIGN.md +304 -0
  35. package/dist/core/templates/skills/knowledge/design-systems/clickhouse/DESIGN.md +281 -0
  36. package/dist/core/templates/skills/knowledge/design-systems/cohere/DESIGN.md +266 -0
  37. package/dist/core/templates/skills/knowledge/design-systems/coinbase/DESIGN.md +129 -0
  38. package/dist/core/templates/skills/knowledge/design-systems/composio/DESIGN.md +307 -0
  39. package/dist/core/templates/skills/knowledge/design-systems/cursor/DESIGN.md +309 -0
  40. package/dist/core/templates/skills/knowledge/design-systems/elevenlabs/DESIGN.md +265 -0
  41. package/dist/core/templates/skills/knowledge/design-systems/expo/DESIGN.md +281 -0
  42. package/dist/core/templates/skills/knowledge/design-systems/figma/DESIGN.md +220 -0
  43. package/dist/core/templates/skills/knowledge/design-systems/framer/DESIGN.md +246 -0
  44. package/dist/core/templates/skills/knowledge/design-systems/hashicorp/DESIGN.md +278 -0
  45. package/dist/core/templates/skills/knowledge/design-systems/ibm/DESIGN.md +332 -0
  46. package/dist/core/templates/skills/knowledge/design-systems/index.json +72 -0
  47. package/dist/core/templates/skills/knowledge/design-systems/intercom/DESIGN.md +146 -0
  48. package/dist/core/templates/skills/knowledge/design-systems/kraken/DESIGN.md +125 -0
  49. package/dist/core/templates/skills/knowledge/design-systems/linear.app/DESIGN.md +367 -0
  50. package/dist/core/templates/skills/knowledge/design-systems/lovable/DESIGN.md +298 -0
  51. package/dist/core/templates/skills/knowledge/design-systems/minimax/DESIGN.md +257 -0
  52. package/dist/core/templates/skills/knowledge/design-systems/mintlify/DESIGN.md +326 -0
  53. package/dist/core/templates/skills/knowledge/design-systems/miro/DESIGN.md +108 -0
  54. package/dist/core/templates/skills/knowledge/design-systems/mistral.ai/DESIGN.md +261 -0
  55. package/dist/core/templates/skills/knowledge/design-systems/mongodb/DESIGN.md +266 -0
  56. package/dist/core/templates/skills/knowledge/design-systems/notion/DESIGN.md +309 -0
  57. package/dist/core/templates/skills/knowledge/design-systems/nvidia/DESIGN.md +293 -0
  58. package/dist/core/templates/skills/knowledge/design-systems/ollama/DESIGN.md +267 -0
  59. package/dist/core/templates/skills/knowledge/design-systems/opencode.ai/DESIGN.md +281 -0
  60. package/dist/core/templates/skills/knowledge/design-systems/pinterest/DESIGN.md +230 -0
  61. package/dist/core/templates/skills/knowledge/design-systems/posthog/DESIGN.md +256 -0
  62. package/dist/core/templates/skills/knowledge/design-systems/raycast/DESIGN.md +268 -0
  63. package/dist/core/templates/skills/knowledge/design-systems/replicate/DESIGN.md +261 -0
  64. package/dist/core/templates/skills/knowledge/design-systems/resend/DESIGN.md +303 -0
  65. package/dist/core/templates/skills/knowledge/design-systems/revolut/DESIGN.md +185 -0
  66. package/dist/core/templates/skills/knowledge/design-systems/runwayml/DESIGN.md +244 -0
  67. package/dist/core/templates/skills/knowledge/design-systems/sanity/DESIGN.md +357 -0
  68. package/dist/core/templates/skills/knowledge/design-systems/sentry/DESIGN.md +262 -0
  69. package/dist/core/templates/skills/knowledge/design-systems/spacex/DESIGN.md +194 -0
  70. package/dist/core/templates/skills/knowledge/design-systems/spotify/DESIGN.md +246 -0
  71. package/dist/core/templates/skills/knowledge/design-systems/stripe/DESIGN.md +322 -0
  72. package/dist/core/templates/skills/knowledge/design-systems/supabase/DESIGN.md +255 -0
  73. package/dist/core/templates/skills/knowledge/design-systems/superhuman/DESIGN.md +252 -0
  74. package/dist/core/templates/skills/knowledge/design-systems/together.ai/DESIGN.md +263 -0
  75. package/dist/core/templates/skills/knowledge/design-systems/uber/DESIGN.md +295 -0
  76. package/dist/core/templates/skills/knowledge/design-systems/vercel/DESIGN.md +310 -0
  77. package/dist/core/templates/skills/knowledge/design-systems/voltagent/DESIGN.md +323 -0
  78. package/dist/core/templates/skills/knowledge/design-systems/warp/DESIGN.md +253 -0
  79. package/dist/core/templates/skills/knowledge/design-systems/webflow/DESIGN.md +92 -0
  80. package/dist/core/templates/skills/knowledge/design-systems/wise/DESIGN.md +173 -0
  81. package/dist/core/templates/skills/knowledge/design-systems/x.ai/DESIGN.md +257 -0
  82. package/dist/core/templates/skills/knowledge/design-systems/zapier/DESIGN.md +328 -0
  83. package/dist/core/templates/skills/knowledge/frameworks/php/codeigniter/rise-cms/profile.json +27 -0
  84. package/dist/core/templates/skills/knowledge/frameworks/php/codeigniter/rise-cms/structure.md +137 -0
  85. package/dist/core/templates/skills/knowledge/frameworks/php/laravel/botble/profile.json +39 -0
  86. package/dist/core/templates/skills/knowledge/frameworks/php/laravel/botble/structure.md +208 -0
  87. package/dist/core/templates/skills/knowledge/frameworks/php/wordpress/core/profile.json +51 -0
  88. package/dist/core/templates/skills/knowledge/frameworks/php/wordpress/core/structure.md +369 -0
  89. package/dist/core/templates/skills/knowledge/index.json +65 -0
  90. package/dist/core/templates/skills/module-codebase-skill.md +110 -110
  91. package/dist/core/templates/skills/plugin-directory-skill.md +396 -396
  92. package/dist/core/templates/skills/project-memory-skill.md +222 -0
  93. package/dist/core/templates/skills/project-memory-skill.vi.md +223 -0
  94. package/dist/core/templates/skills/scripts/CODE_EXPLANATION.md +394 -394
  95. package/dist/core/templates/skills/scripts/SEARCH_ALGORITHMS_COMPARISON.md +421 -421
  96. package/dist/core/templates/skills/scripts/SEARCH_MODES_GUIDE.md +238 -238
  97. package/dist/core/templates/skills/scripts/__pycache__/core.cpython-311.pyc +0 -0
  98. package/dist/core/templates/skills/scripts/core.py +391 -385
  99. package/dist/core/templates/skills/scripts/search.py +1 -1
  100. package/dist/core/templates/skills/smart-explore-skill.md +141 -0
  101. package/dist/core/templates/skills/sourcecode-analyzer-skill.md +210 -0
  102. package/dist/core/templates/skills/sourcecode-analyzer-skill.vi.md +210 -0
  103. package/dist/core/templates/skills/suggestion-skill.md +118 -118
  104. package/dist/core/templates/skills/templates/accessibility-checklist.md +40 -40
  105. package/dist/core/templates/skills/templates/example-prompt-full-theme.md +333 -333
  106. package/dist/core/templates/skills/templates/page-types-guide.md +338 -338
  107. package/dist/core/templates/skills/templates/pages-proposed-summary.md +273 -273
  108. package/dist/core/templates/skills/templates/pre-delivery-checklist.md +42 -42
  109. package/dist/core/templates/skills/templates/prompt-template-full-theme.md +313 -313
  110. package/dist/core/templates/skills/templates/responsive-design.md +40 -40
  111. package/dist/core/templates/skills/ui-ux-skill.md +595 -584
  112. package/dist/core/templates/skills/unit-test-skill.md +111 -111
  113. package/dist/core/templates/skills/ux-element/templates/Controller.php +50 -50
  114. package/dist/core/templates/skills/ux-element/templates/Shortcode.php +23 -23
  115. package/dist/core/templates/skills/ux-element/templates/Template.html +20 -20
  116. package/dist/core/templates/skills/ux-element/templates/Thumbnail.svg +8 -8
  117. package/dist/core/templates/skills/ux-element/templates/View.php +21 -21
  118. package/dist/core/templates/skills/ux-element-skill.md +83 -83
  119. package/dist/core/templates/skills/wordpress-plugin-check-skill.md +151 -151
  120. package/dist/core/templates/skills/wordpress-plugin-standard/templates/admin-dashboard.php +47 -47
  121. package/dist/core/templates/skills/wordpress-plugin-standard/templates/admin-settings.php +60 -60
  122. package/dist/core/templates/skills/wordpress-plugin-standard/templates/assets/admin-css.css +22 -22
  123. package/dist/core/templates/skills/wordpress-plugin-standard/templates/assets/admin-js.js +15 -15
  124. package/dist/core/templates/skills/wordpress-plugin-standard/templates/plugin-main.php +169 -169
  125. package/dist/core/templates/skills/wordpress-plugin-standard/templates/readme.txt +41 -41
  126. package/dist/core/templates/skills/wordpress-plugin-standard/templates/uninstall.php +21 -21
  127. package/dist/core/templates/skills/wordpress-plugin-standard-skill.md +100 -100
  128. package/dist/index.js +4068 -278
  129. package/package.json +75 -72
@@ -0,0 +1,313 @@
1
+ # Design System: Apple
2
+
3
+ ## 1. Visual Theme & Atmosphere
4
+
5
+ Apple's website is a masterclass in controlled drama — vast expanses of pure black and near-white serve as cinematic backdrops for products that are photographed as if they were sculptures in a gallery. The design philosophy is reductive to its core: every pixel exists in service of the product, and the interface itself retreats until it becomes invisible. This is not minimalism as aesthetic preference; it is minimalism as reverence for the object.
6
+
7
+ The typography anchors everything. San Francisco (SF Pro Display for large sizes, SF Pro Text for body) is Apple's proprietary typeface, engineered with optical sizing that automatically adjusts letterforms depending on point size. At display sizes (56px), weight 600 with a tight line-height of 1.07 and subtle negative letter-spacing (-0.28px) creates headlines that feel machined rather than typeset — precise, confident, and unapologetically direct. At body sizes (17px), the tracking loosens slightly (-0.374px) and line-height opens to 1.47, creating a reading rhythm that is comfortable without ever feeling slack.
8
+
9
+ The color story is starkly binary. Product sections alternate between pure black (`#000000`) backgrounds with white text and light gray (`#f5f5f7`) backgrounds with near-black text (`#1d1d1f`). This creates a cinematic pacing — dark sections feel immersive and premium, light sections feel open and informational. The only chromatic accent is Apple Blue (`#0071e3`), reserved exclusively for interactive elements: links, buttons, and focus states. This singular accent color in a sea of neutrals gives every clickable element unmistakable visibility.
10
+
11
+ **Key Characteristics:**
12
+ - SF Pro Display/Text with optical sizing — letterforms adapt automatically to size context
13
+ - Binary light/dark section rhythm: black (`#000000`) alternating with light gray (`#f5f5f7`)
14
+ - Single accent color: Apple Blue (`#0071e3`) reserved exclusively for interactive elements
15
+ - Product-as-hero photography on solid color fields — no gradients, no textures, no distractions
16
+ - Extremely tight headline line-heights (1.07-1.14) creating compressed, billboard-like impact
17
+ - Full-width section layout with centered content — the viewport IS the canvas
18
+ - Pill-shaped CTAs (980px radius) creating soft, approachable action buttons
19
+ - Generous whitespace between sections allowing each product moment to breathe
20
+
21
+ ## 2. Color Palette & Roles
22
+
23
+ ### Primary
24
+ - **Pure Black** (`#000000`): Hero section backgrounds, immersive product showcases. The darkest canvas for the brightest products.
25
+ - **Light Gray** (`#f5f5f7`): Alternate section backgrounds, informational areas. Not white — the slight blue-gray tint prevents sterility.
26
+ - **Near Black** (`#1d1d1f`): Primary text on light backgrounds, dark button fills. Slightly warmer than pure black for comfortable reading.
27
+
28
+ ### Interactive
29
+ - **Apple Blue** (`#0071e3`): `--sk-focus-color`, primary CTA backgrounds, focus rings. The ONLY chromatic color in the interface.
30
+ - **Link Blue** (`#0066cc`): `--sk-body-link-color`, inline text links. Slightly darker than Apple Blue for text-level readability.
31
+ - **Bright Blue** (`#2997ff`): Links on dark backgrounds. Higher luminance for contrast on black sections.
32
+
33
+ ### Text
34
+ - **White** (`#ffffff`): Text on dark backgrounds, button text on blue/dark CTAs.
35
+ - **Near Black** (`#1d1d1f`): Primary body text on light backgrounds.
36
+ - **Black 80%** (`rgba(0, 0, 0, 0.8)`): Secondary text, nav items on light backgrounds. Slightly softened.
37
+ - **Black 48%** (`rgba(0, 0, 0, 0.48)`): Tertiary text, disabled states, carousel controls.
38
+
39
+ ### Surface & Dark Variants
40
+ - **Dark Surface 1** (`#272729`): Card backgrounds in dark sections.
41
+ - **Dark Surface 2** (`#262628`): Subtle surface variation in dark contexts.
42
+ - **Dark Surface 3** (`#28282a`): Elevated cards on dark backgrounds.
43
+ - **Dark Surface 4** (`#2a2a2d`): Highest dark surface elevation.
44
+ - **Dark Surface 5** (`#242426`): Deepest dark surface tone.
45
+
46
+ ### Button States
47
+ - **Button Active** (`#ededf2`): Active/pressed state for light buttons.
48
+ - **Button Default Light** (`#fafafc`): Search/filter button backgrounds.
49
+ - **Overlay** (`rgba(210, 210, 215, 0.64)`): Media control scrims, overlays.
50
+ - **White 32%** (`rgba(255, 255, 255, 0.32)`): Hover state on dark modal close buttons.
51
+
52
+ ### Shadows
53
+ - **Card Shadow** (`rgba(0, 0, 0, 0.22) 3px 5px 30px 0px`): Soft, diffused elevation for product cards. Offset and wide blur create a natural, photographic shadow.
54
+
55
+ ## 3. Typography Rules
56
+
57
+ ### Font Family
58
+ - **Display**: `SF Pro Display`, with fallbacks: `SF Pro Icons, Helvetica Neue, Helvetica, Arial, sans-serif`
59
+ - **Body**: `SF Pro Text`, with fallbacks: `SF Pro Icons, Helvetica Neue, Helvetica, Arial, sans-serif`
60
+ - SF Pro Display is used at 20px and above; SF Pro Text is optimized for 19px and below.
61
+
62
+ ### Hierarchy
63
+
64
+ | Role | Font | Size | Weight | Line Height | Letter Spacing | Notes |
65
+ |------|------|------|--------|-------------|----------------|-------|
66
+ | Display Hero | SF Pro Display | 56px (3.50rem) | 600 | 1.07 (tight) | -0.28px | Product launch headlines, maximum impact |
67
+ | Section Heading | SF Pro Display | 40px (2.50rem) | 600 | 1.10 (tight) | normal | Feature section titles |
68
+ | Tile Heading | SF Pro Display | 28px (1.75rem) | 400 | 1.14 (tight) | 0.196px | Product tile headlines |
69
+ | Card Title | SF Pro Display | 21px (1.31rem) | 700 | 1.19 (tight) | 0.231px | Bold card headings |
70
+ | Sub-heading | SF Pro Display | 21px (1.31rem) | 400 | 1.19 (tight) | 0.231px | Regular card headings |
71
+ | Nav Heading | SF Pro Text | 34px (2.13rem) | 600 | 1.47 | -0.374px | Large navigation headings |
72
+ | Sub-nav | SF Pro Text | 24px (1.50rem) | 300 | 1.50 | normal | Light sub-navigation text |
73
+ | Body | SF Pro Text | 17px (1.06rem) | 400 | 1.47 | -0.374px | Standard reading text |
74
+ | Body Emphasis | SF Pro Text | 17px (1.06rem) | 600 | 1.24 (tight) | -0.374px | Emphasized body text, labels |
75
+ | Button Large | SF Pro Text | 18px (1.13rem) | 300 | 1.00 (tight) | normal | Large button text, light weight |
76
+ | Button | SF Pro Text | 17px (1.06rem) | 400 | 2.41 (relaxed) | normal | Standard button text |
77
+ | Link | SF Pro Text | 14px (0.88rem) | 400 | 1.43 | -0.224px | Body links, "Learn more" |
78
+ | Caption | SF Pro Text | 14px (0.88rem) | 400 | 1.29 (tight) | -0.224px | Secondary text, descriptions |
79
+ | Caption Bold | SF Pro Text | 14px (0.88rem) | 600 | 1.29 (tight) | -0.224px | Emphasized captions |
80
+ | Micro | SF Pro Text | 12px (0.75rem) | 400 | 1.33 | -0.12px | Fine print, footnotes |
81
+ | Micro Bold | SF Pro Text | 12px (0.75rem) | 600 | 1.33 | -0.12px | Bold fine print |
82
+ | Nano | SF Pro Text | 10px (0.63rem) | 400 | 1.47 | -0.08px | Legal text, smallest size |
83
+
84
+ ### Principles
85
+ - **Optical sizing as philosophy**: SF Pro automatically switches between Display and Text optical sizes. Display versions have wider letter spacing and thinner strokes optimized for large sizes; Text versions are tighter and sturdier for small sizes. This means the font literally changes its DNA based on context.
86
+ - **Weight restraint**: The scale spans 300 (light) to 700 (bold) but most text lives at 400 (regular) and 600 (semibold). Weight 300 appears only on large decorative text. Weight 700 is rare, used only for bold card titles.
87
+ - **Negative tracking at all sizes**: Unlike most systems that only track headlines, Apple applies subtle negative letter-spacing even at body sizes (-0.374px at 17px, -0.224px at 14px, -0.12px at 12px). This creates universally tight, efficient text.
88
+ - **Extreme line-height range**: Headlines compress to 1.07 while body text opens to 1.47, and some button contexts stretch to 2.41. This dramatic range creates clear visual hierarchy through rhythm alone.
89
+
90
+ ## 4. Component Stylings
91
+
92
+ ### Buttons
93
+
94
+ **Primary Blue (CTA)**
95
+ - Background: `#0071e3` (Apple Blue)
96
+ - Text: `#ffffff`
97
+ - Padding: 8px 15px
98
+ - Radius: 8px
99
+ - Border: 1px solid transparent
100
+ - Font: SF Pro Text, 17px, weight 400
101
+ - Hover: background brightens slightly
102
+ - Active: `#ededf2` background shift
103
+ - Focus: `2px solid var(--sk-focus-color, #0071E3)` outline
104
+ - Use: Primary call-to-action ("Buy", "Shop iPhone")
105
+
106
+ **Primary Dark**
107
+ - Background: `#1d1d1f`
108
+ - Text: `#ffffff`
109
+ - Padding: 8px 15px
110
+ - Radius: 8px
111
+ - Font: SF Pro Text, 17px, weight 400
112
+ - Use: Secondary CTA, dark variant
113
+
114
+ **Pill Link (Learn More / Shop)**
115
+ - Background: transparent
116
+ - Text: `#0066cc` (light bg) or `#2997ff` (dark bg)
117
+ - Radius: 980px (full pill)
118
+ - Border: 1px solid `#0066cc`
119
+ - Font: SF Pro Text, 14px-17px
120
+ - Hover: underline decoration
121
+ - Use: "Learn more" and "Shop" links — the signature Apple inline CTA
122
+
123
+ **Filter / Search Button**
124
+ - Background: `#fafafc`
125
+ - Text: `rgba(0, 0, 0, 0.8)`
126
+ - Padding: 0px 14px
127
+ - Radius: 11px
128
+ - Border: 3px solid `rgba(0, 0, 0, 0.04)`
129
+ - Focus: `2px solid var(--sk-focus-color, #0071E3)` outline
130
+ - Use: Search bars, filter controls
131
+
132
+ **Media Control**
133
+ - Background: `rgba(210, 210, 215, 0.64)`
134
+ - Text: `rgba(0, 0, 0, 0.48)`
135
+ - Radius: 50% (circular)
136
+ - Active: scale(0.9), background shifts
137
+ - Focus: `2px solid var(--sk-focus-color, #0071e3)` outline, white bg, black text
138
+ - Use: Play/pause, carousel arrows
139
+
140
+ ### Cards & Containers
141
+ - Background: `#f5f5f7` (light) or `#272729`-`#2a2a2d` (dark)
142
+ - Border: none (borders are rare in Apple's system)
143
+ - Radius: 5px-8px
144
+ - Shadow: `rgba(0, 0, 0, 0.22) 3px 5px 30px 0px` for elevated product cards
145
+ - Content: centered, generous padding
146
+ - Hover: no standard hover state — cards are static, links within them are interactive
147
+
148
+ ### Navigation
149
+ - Background: `rgba(0, 0, 0, 0.8)` (translucent dark) with `backdrop-filter: saturate(180%) blur(20px)`
150
+ - Height: 48px (compact)
151
+ - Text: `#ffffff` at 12px, weight 400
152
+ - Active: underline on hover
153
+ - Logo: Apple logomark (SVG) centered or left-aligned, 17x48px viewport
154
+ - Mobile: collapses to hamburger with full-screen overlay menu
155
+ - The nav floats above content, maintaining its dark translucent glass regardless of section background
156
+
157
+ ### Image Treatment
158
+ - Products on solid-color fields (black or white) — no backgrounds, no context, just the object
159
+ - Full-bleed section images that span the entire viewport width
160
+ - Product photography at extremely high resolution with subtle shadows
161
+ - Lifestyle images confined to rounded-corner containers (12px+ radius)
162
+
163
+ ### Distinctive Components
164
+
165
+ **Product Hero Module**
166
+ - Full-viewport-width section with solid background (black or `#f5f5f7`)
167
+ - Product name as the primary headline (SF Pro Display, 56px, weight 600)
168
+ - One-line descriptor below in lighter weight
169
+ - Two pill CTAs side by side: "Learn more" (outline) and "Buy" / "Shop" (filled)
170
+
171
+ **Product Grid Tile**
172
+ - Square or near-square card on contrasting background
173
+ - Product image dominating 60-70% of the tile
174
+ - Product name + one-line description below
175
+ - "Learn more" and "Shop" link pair at bottom
176
+
177
+ **Feature Comparison Strip**
178
+ - Horizontal scroll of product variants
179
+ - Each variant as a vertical card with image, name, and key specs
180
+ - Minimal chrome — the products speak for themselves
181
+
182
+ ## 5. Layout Principles
183
+
184
+ ### Spacing System
185
+ - Base unit: 8px
186
+ - Scale: 2px, 4px, 5px, 6px, 7px, 8px, 9px, 10px, 11px, 14px, 15px, 17px, 20px, 24px
187
+ - Notable characteristic: the scale is dense at small sizes (2-11px) with granular 1px increments, then jumps in larger steps. This allows precise micro-adjustments for typography and icon alignment.
188
+
189
+ ### Grid & Container
190
+ - Max content width: approximately 980px (the recurring "980px radius" in pill buttons echoes this width)
191
+ - Hero: full-viewport-width sections with centered content block
192
+ - Product grids: 2-3 column layouts within centered container
193
+ - Single-column for hero moments — one product, one message, full attention
194
+ - No visible grid lines or gutters — spacing creates implied structure
195
+
196
+ ### Whitespace Philosophy
197
+ - **Cinematic breathing room**: Each product section occupies a full viewport height (or close to it). The whitespace between products is not empty — it is the pause between scenes in a film.
198
+ - **Vertical rhythm through color blocks**: Rather than using spacing alone to separate sections, Apple uses alternating background colors (black, `#f5f5f7`, white). Each color change signals a new "scene."
199
+ - **Compression within, expansion between**: Text blocks are tightly set (negative letter-spacing, tight line-heights) while the space surrounding them is vast. This creates a tension between density and openness.
200
+
201
+ ### Border Radius Scale
202
+ - Micro (5px): Small containers, link tags
203
+ - Standard (8px): Buttons, product cards, image containers
204
+ - Comfortable (11px): Search inputs, filter buttons
205
+ - Large (12px): Feature panels, lifestyle image containers
206
+ - Full Pill (980px): CTA links ("Learn more", "Shop"), navigation pills
207
+ - Circle (50%): Media controls (play/pause, arrows)
208
+
209
+ ## 6. Depth & Elevation
210
+
211
+ | Level | Treatment | Use |
212
+ |-------|-----------|-----|
213
+ | Flat (Level 0) | No shadow, solid background | Standard content sections, text blocks |
214
+ | Navigation Glass | `backdrop-filter: saturate(180%) blur(20px)` on `rgba(0,0,0,0.8)` | Sticky navigation bar — the glass effect |
215
+ | Subtle Lift (Level 1) | `rgba(0, 0, 0, 0.22) 3px 5px 30px 0px` | Product cards, floating elements |
216
+ | Media Control | `rgba(210, 210, 215, 0.64)` background with scale transforms | Play/pause buttons, carousel controls |
217
+ | Focus (Accessibility) | `2px solid #0071e3` outline | Keyboard focus on all interactive elements |
218
+
219
+ **Shadow Philosophy**: Apple uses shadow extremely sparingly. The primary shadow (`3px 5px 30px` with 0.22 opacity) is soft, wide, and offset — mimicking a diffused studio light casting a natural shadow beneath a physical object. This reinforces the "product as physical sculpture" metaphor. Most elements have NO shadow at all; elevation comes from background color contrast (dark card on darker background, or light card on slightly different gray).
220
+
221
+ ### Decorative Depth
222
+ - Navigation glass: the translucent, blurred navigation bar is the most recognizable depth element, creating a sense of floating UI above scrolling content
223
+ - Section color transitions: depth is implied by the alternation between black and light gray sections rather than by shadows
224
+ - Product photography shadows: the products themselves cast shadows in their photography, so the UI doesn't need to add synthetic ones
225
+
226
+ ## 7. Do's and Don'ts
227
+
228
+ ### Do
229
+ - Use SF Pro Display at 20px+ and SF Pro Text below 20px — respect the optical sizing boundary
230
+ - Apply negative letter-spacing at all text sizes (not just headlines) — Apple tracks tight universally
231
+ - Use Apple Blue (`#0071e3`) ONLY for interactive elements — it must be the singular accent
232
+ - Alternate between black and light gray (`#f5f5f7`) section backgrounds for cinematic rhythm
233
+ - Use 980px pill radius for CTA links — the signature Apple link shape
234
+ - Keep product imagery on solid-color fields with no competing visual elements
235
+ - Use the translucent dark glass (`rgba(0,0,0,0.8)` + blur) for sticky navigation
236
+ - Compress headline line-heights to 1.07-1.14 — Apple headlines are famously tight
237
+
238
+ ### Don't
239
+ - Don't introduce additional accent colors — the entire chromatic budget is spent on blue
240
+ - Don't use heavy shadows or multiple shadow layers — Apple's shadow system is one soft diffused shadow or nothing
241
+ - Don't use borders on cards or containers — Apple almost never uses visible borders (except on specific buttons)
242
+ - Don't apply wide letter-spacing to SF Pro — it is designed to run tight at every size
243
+ - Don't use weight 800 or 900 — the maximum is 700 (bold), and even that is rare
244
+ - Don't add textures, patterns, or gradients to backgrounds — solid colors only
245
+ - Don't make the navigation opaque — the glass blur effect is essential to the Apple UI identity
246
+ - Don't center-align body text — Apple body copy is left-aligned; only headlines center
247
+ - Don't use rounded corners larger than 12px on rectangular elements (980px is for pills only)
248
+
249
+ ## 8. Responsive Behavior
250
+
251
+ ### Breakpoints
252
+ | Name | Width | Key Changes |
253
+ |------|-------|-------------|
254
+ | Small Mobile | <360px | Minimum supported, single column |
255
+ | Mobile | 360-480px | Standard mobile layout |
256
+ | Mobile Large | 480-640px | Wider single column, larger images |
257
+ | Tablet Small | 640-834px | 2-column product grids begin |
258
+ | Tablet | 834-1024px | Full tablet layout, expanded nav |
259
+ | Desktop Small | 1024-1070px | Standard desktop layout begins |
260
+ | Desktop | 1070-1440px | Full layout, max content width |
261
+ | Large Desktop | >1440px | Centered with generous margins |
262
+
263
+ ### Touch Targets
264
+ - Primary CTAs: 8px 15px padding creating ~44px touch height
265
+ - Navigation links: 48px height with adequate spacing
266
+ - Media controls: 50% radius circular buttons, minimum 44x44px
267
+ - "Learn more" pills: generous padding for comfortable tapping
268
+
269
+ ### Collapsing Strategy
270
+ - Hero headlines: 56px Display → 40px → 28px on mobile, maintaining tight line-height proportionally
271
+ - Product grids: 3-column → 2-column → single column stacked
272
+ - Navigation: full horizontal nav → compact mobile menu (hamburger)
273
+ - Product hero modules: full-bleed maintained at all sizes, text scales down
274
+ - Section backgrounds: maintain full-width color blocks at all breakpoints — the cinematic rhythm never breaks
275
+ - Image sizing: products scale proportionally, never crop — the product silhouette is sacred
276
+
277
+ ### Image Behavior
278
+ - Product photography maintains aspect ratio at all breakpoints
279
+ - Hero product images scale down but stay centered
280
+ - Full-bleed section backgrounds persist at every size
281
+ - Lifestyle images may crop on mobile but maintain their rounded corners
282
+ - Lazy loading for below-fold product images
283
+
284
+ ## 9. Agent Prompt Guide
285
+
286
+ ### Quick Color Reference
287
+ - Primary CTA: Apple Blue (`#0071e3`)
288
+ - Page background (light): `#f5f5f7`
289
+ - Page background (dark): `#000000`
290
+ - Heading text (light): `#1d1d1f`
291
+ - Heading text (dark): `#ffffff`
292
+ - Body text: `rgba(0, 0, 0, 0.8)` on light, `#ffffff` on dark
293
+ - Link (light bg): `#0066cc`
294
+ - Link (dark bg): `#2997ff`
295
+ - Focus ring: `#0071e3`
296
+ - Card shadow: `rgba(0, 0, 0, 0.22) 3px 5px 30px 0px`
297
+
298
+ ### Example Component Prompts
299
+ - "Create a hero section on black background. Headline at 56px SF Pro Display weight 600, line-height 1.07, letter-spacing -0.28px, color white. One-line subtitle at 21px SF Pro Display weight 400, line-height 1.19, color white. Two pill CTAs: 'Learn more' (transparent bg, white text, 1px solid white border, 980px radius) and 'Buy' (Apple Blue #0071e3 bg, white text, 8px radius, 8px 15px padding)."
300
+ - "Design a product card: #f5f5f7 background, 8px border-radius, no border, no shadow. Product image top 60% of card on solid background. Title at 28px SF Pro Display weight 400, letter-spacing 0.196px, line-height 1.14. Description at 14px SF Pro Text weight 400, color rgba(0,0,0,0.8). 'Learn more' and 'Shop' links in #0066cc at 14px."
301
+ - "Build the Apple navigation: sticky, 48px height, background rgba(0,0,0,0.8) with backdrop-filter: saturate(180%) blur(20px). Links at 12px SF Pro Text weight 400, white text. Apple logo left, links centered, search and bag icons right."
302
+ - "Create an alternating section layout: first section black bg with white text and centered product image, second section #f5f5f7 bg with #1d1d1f text. Each section near full-viewport height with 56px headline and two pill CTAs below."
303
+ - "Design a 'Learn more' link: text #0066cc on light bg or #2997ff on dark bg, 14px SF Pro Text, underline on hover. After the text, include a right-arrow chevron character (>). Wrap in a container with 980px border-radius for pill shape when used as a standalone CTA."
304
+
305
+ ### Iteration Guide
306
+ 1. Every interactive element gets Apple Blue (`#0071e3`) — no other accent colors
307
+ 2. Section backgrounds alternate: black for immersive moments, `#f5f5f7` for informational moments
308
+ 3. Typography optical sizing: SF Pro Display at 20px+, SF Pro Text below — never mix
309
+ 4. Negative letter-spacing at all sizes: -0.28px at 56px, -0.374px at 17px, -0.224px at 14px, -0.12px at 12px
310
+ 5. The navigation glass effect (translucent dark + blur) is non-negotiable — it defines the Apple web experience
311
+ 6. Products always appear on solid color fields — never on gradients, textures, or lifestyle backgrounds in hero modules
312
+ 7. Shadow is rare and always soft: `3px 5px 30px 0.22 opacity` or nothing at all
313
+ 8. Pill CTAs use 980px radius — this creates the signature Apple rounded-rectangle-that-looks-like-a-capsule shape
@@ -0,0 +1,180 @@
1
+ # Design System: BMW
2
+
3
+ ## 1. Visual Theme & Atmosphere
4
+
5
+ BMW's website is automotive engineering made visual — a design system that communicates precision, performance, and German industrial confidence. The page alternates between deep dark hero sections (featuring full-bleed automotive photography) and clean white content areas, creating a cinematic rhythm reminiscent of a luxury car showroom where vehicles are lit against darkness. The BMW CI2020 design language (their corporate identity refresh) defines every element.
6
+
7
+ The typography is built on BMWTypeNextLatin — a proprietary typeface in two variants: BMWTypeNextLatin Light (weight 300) for massive uppercase display headings, and BMWTypeNextLatin Regular for body and UI text. The 60px uppercase headline at weight 300 is the defining typographic gesture — light-weight type that whispers authority rather than shouting it. The fallback stack includes Helvetica and Japanese fonts (Hiragino, Meiryo), reflecting BMW's global presence.
8
+
9
+ What makes BMW distinctive is its CSS variable-driven theming system. Context-aware variables (`--site-context-highlight-color: #1c69d4`, `--site-context-focus-color: #0653b6`, `--site-context-metainfo-color: #757575`) suggest a design system built for multi-brand, multi-context deployment where colors can be swapped globally. The blue highlight color (`#1c69d4`) is BMW's signature blue — used sparingly for interactive elements and focus states, never decoratively. Zero border-radius was detected — BMW's design is angular, sharp-cornered, and uncompromisingly geometric.
10
+
11
+ **Key Characteristics:**
12
+ - BMWTypeNextLatin Light (weight 300) uppercase for display — whispered authority
13
+ - BMW Blue (`#1c69d4`) as singular accent — used only for interactive elements
14
+ - Zero border-radius detected — angular, sharp-cornered, industrial geometry
15
+ - Dark hero photography + white content sections — showroom lighting rhythm
16
+ - CSS variable-driven theming: `--site-context-*` tokens for brand flexibility
17
+ - Weight 900 for navigation emphasis — extreme contrast with 300 display
18
+ - Tight line-heights (1.15–1.30) throughout — compressed, efficient, German engineering
19
+ - Full-bleed automotive photography as primary visual content
20
+
21
+ ## 2. Color Palette & Roles
22
+
23
+ ### Primary Brand
24
+ - **Pure White** (`#ffffff`): `--site-context-theme-color`, primary surface, card backgrounds
25
+ - **BMW Blue** (`#1c69d4`): `--site-context-highlight-color`, primary interactive accent
26
+ - **BMW Focus Blue** (`#0653b6`): `--site-context-focus-color`, keyboard focus and active states
27
+
28
+ ### Neutral Scale
29
+ - **Near Black** (`#262626`): Primary text on light surfaces, dark link text
30
+ - **Meta Gray** (`#757575`): `--site-context-metainfo-color`, secondary text, metadata
31
+ - **Silver** (`#bbbbbb`): Tertiary text, muted links, footer elements
32
+
33
+ ### Interactive States
34
+ - All links hover to white (`#ffffff`) — suggesting primarily dark-surface navigation
35
+ - Text links use underline: none on hover — clean interaction
36
+
37
+ ### Shadows
38
+ - Minimal shadow system — depth through photography and dark/light section contrast
39
+
40
+ ## 3. Typography Rules
41
+
42
+ ### Font Families
43
+ - **Display Light**: `BMWTypeNextLatin Light`, fallbacks: `Helvetica, Arial, Hiragino Kaku Gothic ProN, Hiragino Sans, Meiryo`
44
+ - **Body / UI**: `BMWTypeNextLatin`, same fallback stack
45
+
46
+ ### Hierarchy
47
+
48
+ | Role | Font | Size | Weight | Line Height | Notes |
49
+ |------|------|------|--------|-------------|-------|
50
+ | Display Hero | BMWTypeNextLatin Light | 60px (3.75rem) | 300 | 1.30 (tight) | `text-transform: uppercase` |
51
+ | Section Heading | BMWTypeNextLatin | 32px (2.00rem) | 400 | 1.30 (tight) | Major section titles |
52
+ | Nav Emphasis | BMWTypeNextLatin | 18px (1.13rem) | 900 | 1.30 (tight) | Navigation bold items |
53
+ | Body | BMWTypeNextLatin | 16px (1.00rem) | 400 | 1.15 (tight) | Standard body text |
54
+ | Button Bold | BMWTypeNextLatin | 16px (1.00rem) | 700 | 1.20–2.88 | CTA buttons |
55
+ | Button | BMWTypeNextLatin | 16px (1.00rem) | 400 | 1.15 (tight) | Standard buttons |
56
+
57
+ ### Principles
58
+ - **Light display, heavy navigation**: Weight 300 for hero headlines creates whispered elegance; weight 900 for navigation creates stark authority. This extreme weight contrast (300 vs 900) is the signature typographic tension.
59
+ - **Universal uppercase display**: The 60px hero is always uppercase — creating a monumental, architectural quality.
60
+ - **Tight everything**: Line-heights from 1.15 to 1.30 across the entire system. Nothing breathes — every line is compressed, efficient, German-engineered.
61
+ - **Single font family**: BMWTypeNextLatin handles everything from 60px display to 16px body — unity through one typeface at different weights.
62
+
63
+ ## 4. Component Stylings
64
+
65
+ ### Buttons
66
+ - Text: 16px BMWTypeNextLatin, weight 700 for primary, 400 for secondary
67
+ - Line-height: 1.15–2.88 (large variation suggests padding-driven sizing)
68
+ - Border: white bottom-border on dark surfaces (`1px solid #ffffff`)
69
+ - No border-radius — sharp rectangular buttons
70
+
71
+ ### Cards & Containers
72
+ - No border-radius — all containers are sharp-cornered rectangles
73
+ - White backgrounds on light sections
74
+ - Dark backgrounds for hero/feature sections
75
+ - No visible borders on most elements
76
+
77
+ ### Navigation
78
+ - BMWTypeNextLatin 18px weight 900 for primary nav links
79
+ - White text on dark header
80
+ - BMW logo 54x54px
81
+ - Hover: remains white, text-decoration none
82
+ - "Home" text link in header
83
+
84
+ ### Image Treatment
85
+ - Full-bleed automotive photography
86
+ - Dark cinematic lighting
87
+ - Edge-to-edge hero images
88
+ - Car photography as primary visual content
89
+
90
+ ## 5. Layout Principles
91
+
92
+ ### Spacing System
93
+ - Base unit: 8px
94
+ - Scale: 1px, 5px, 8px, 10px, 12px, 15px, 16px, 20px, 24px, 30px, 32px, 40px, 45px, 56px, 60px
95
+
96
+ ### Grid & Container
97
+ - Full-width hero photography
98
+ - Centered content sections
99
+ - Footer: multi-column link grid
100
+
101
+ ### Whitespace Philosophy
102
+ - **Showroom pacing**: Dark hero sections with generous padding create the feeling of walking through a showroom where each vehicle is spotlit in its own space.
103
+ - **Compressed content**: Body text areas use tight line-heights and compact spacing — information-dense, no waste.
104
+
105
+ ### Border Radius Scale
106
+ - **None detected.** BMW uses sharp corners exclusively — every element is a precise rectangle. This is the most angular design system analyzed.
107
+
108
+ ## 6. Depth & Elevation
109
+
110
+ | Level | Treatment | Use |
111
+ |-------|-----------|-----|
112
+ | Photography (Level 0) | Full-bleed dark imagery | Hero backgrounds |
113
+ | Flat (Level 1) | White surface, no shadow | Content sections |
114
+ | Focus (Accessibility) | BMW Focus Blue (`#0653b6`) | Focus states |
115
+
116
+ **Shadow Philosophy**: BMW uses virtually no shadows. Depth is created entirely through the contrast between dark photographic sections and white content sections — the automotive lighting does the elevation work.
117
+
118
+ ## 7. Do's and Don'ts
119
+
120
+ ### Do
121
+ - Use BMWTypeNextLatin Light (300) uppercase for all display headings
122
+ - Keep ALL corners sharp (0px radius) — angular geometry is non-negotiable
123
+ - Use BMW Blue (`#1c69d4`) only for interactive elements — never decoratively
124
+ - Apply weight 900 for navigation emphasis — the extreme weight contrast is intentional
125
+ - Use full-bleed automotive photography for hero sections
126
+ - Keep line-heights tight (1.15–1.30) throughout
127
+ - Use `--site-context-*` CSS variables for theming
128
+
129
+ ### Don't
130
+ - Don't round corners — zero radius is the BMW identity
131
+ - Don't use BMW Blue for backgrounds or large surfaces — it's an accent only
132
+ - Don't use medium font weights (500–600) — the system uses 300, 400, 700, 900 extremes
133
+ - Don't add decorative elements — the photography and typography carry everything
134
+ - Don't use relaxed line-heights — BMW text is always compressed
135
+ - Don't lighten the dark hero sections — the contrast with white IS the design
136
+
137
+ ## 8. Responsive Behavior
138
+
139
+ ### Breakpoints
140
+ | Name | Width | Key Changes |
141
+ |------|-------|-------------|
142
+ | Mobile Small | <375px | Minimum supported |
143
+ | Mobile | 375–480px | Single column |
144
+ | Mobile Large | 480–640px | Slight adjustments |
145
+ | Tablet Small | 640–768px | 2-column begins |
146
+ | Tablet | 768–920px | Standard tablet |
147
+ | Desktop Small | 920–1024px | Desktop layout begins |
148
+ | Desktop | 1024–1280px | Standard desktop |
149
+ | Large Desktop | 1280–1440px | Expanded |
150
+ | Ultra-wide | 1440–1600px | Maximum layout |
151
+
152
+ ### Collapsing Strategy
153
+ - Hero: 60px → scales down, maintains uppercase
154
+ - Navigation: horizontal → hamburger
155
+ - Photography: full-bleed maintained at all sizes
156
+ - Content sections: stack vertically
157
+ - Footer: multi-column → stacked
158
+
159
+ ## 9. Agent Prompt Guide
160
+
161
+ ### Quick Color Reference
162
+ - Background: Pure White (`#ffffff`)
163
+ - Text: Near Black (`#262626`)
164
+ - Secondary text: Meta Gray (`#757575`)
165
+ - Accent: BMW Blue (`#1c69d4`)
166
+ - Focus: BMW Focus Blue (`#0653b6`)
167
+ - Muted: Silver (`#bbbbbb`)
168
+
169
+ ### Example Component Prompts
170
+ - "Create a hero: full-width dark automotive photography background. Heading at 60px BMWTypeNextLatin Light weight 300, uppercase, line-height 1.30, white text. No border-radius anywhere."
171
+ - "Design navigation: dark background. BMWTypeNextLatin 18px weight 900 for links, white text. BMW logo 54x54. Sharp rectangular layout."
172
+ - "Build a button: 16px BMWTypeNextLatin weight 700, line-height 1.20. Sharp corners (0px radius). White bottom border on dark surface."
173
+ - "Create content section: white background. Heading at 32px weight 400, line-height 1.30, #262626. Body at 16px weight 400, line-height 1.15."
174
+
175
+ ### Iteration Guide
176
+ 1. Zero border-radius — every corner is sharp, no exceptions
177
+ 2. Weight extremes: 300 (display), 400 (body), 700 (buttons), 900 (nav)
178
+ 3. BMW Blue for interactive only — never as background or decoration
179
+ 4. Photography carries emotion — the UI is pure precision
180
+ 5. Tight line-heights everywhere — 1.15 to 1.30 is the range