Build a Style Guide
Create a complete CSS design system style guide for the $ARGUMENTS aesthetic.
Follow the full conventions in styles/CLAUDE.md. The guide must be self-contained HTML with inline CSS, Google Fonts only, 450-2000 lines, CSS variables in :root, responsive design, and semantic HTML.
Phase 0 — Plan (interactive)
- Parse the argument as the aesthetic name (e.g., "steampunk", "memphis", "ukiyo-e").
- Check the Style Guide Catalog table in
README.md and styles/{name}.html — if the style already exists, inform the user.
- Read
styles/CLAUDE.md for the template and conventions.
- Read 1-2 existing style guides to match structure and depth — pick ones with a similar vibe.
- Propose a design direction:
- Color palette (5-7 colors with hex values and rationale)
- Typography (2-3 Google Fonts that fit the aesthetic)
- Key visual motifs (borders, shadows, textures, gradients)
- Sections to include beyond the required 6
- Discuss with the user before proceeding.
Phase 1 — Research (parallel Sonnet subagents)
Launch 2-3 sonnet subagents in parallel:
- Design history: Research the aesthetic movement — key figures, principles, color palettes, typography conventions, visual hallmarks
- Font selection: Search Google Fonts for typefaces that match the aesthetic. Find 2-3 display + body pairings.
- CSS techniques: Research CSS techniques needed (gradients, textures, blend modes, clip-paths, etc.)
Each subagent returns structured design research.
Phase 2 — Build (sequential Opus subagents)
Use 2-3 sequential opus subagents:
- First agent: Create the full HTML file with complete
:root CSS variables, all component styles, and sections 01-04 (Color Palette, Typography, Spacing, Buttons). This agent writes the most CSS — the entire design system foundation.
- Second agent: Read the file, add sections 05-07+ (Forms, Cards/Panels, Alerts, and any extra sections like Navigation, Modals, Grid System, or Design Principles). Close the HTML.
- Third agent (polish): Read complete file. Verify visual consistency, responsive breakpoints work, all CSS variables are used, no orphan styles. Ensure color contrast is readable.
Critical rules for build agents:
- Each agent MUST read the current file before writing
- ALL colors, spacing, and fonts must be CSS custom properties in
:root
- Include
@media (max-width: 768px) responsive breakpoint
- Use semantic HTML:
<section>, <header>, <footer>, <label>
- File goes in
styles/{kebab-case-name}.html
Phase 3 — Index & Ship
- Read
/index.html (the master project index) to understand the card format.
- Add a themed card with class
.card-{name} and matching CSS that reflects the new style's palette.
- Add the new style to the Style Guide Catalog table in
README.md (new row, both columns empty).
- Commit with message:
Add {name} style guide
- Push using:
git config --global credential.helper store && echo "https://GGPrompts:$(gh auth token --user GGPrompts)@github.com" > ~/.git-credentials && git push origin main
1---2name: styleguide3description: Build a complete CSS design system style guide4---5
6# Build a Style Guide
7
8Create a complete CSS design system style guide for the **$ARGUMENTS** aesthetic.
9
10Follow the full conventions in `styles/CLAUDE.md`. The guide must be self-contained HTML with inline CSS, Google Fonts only, 450-2000 lines, CSS variables in `:root`, responsive design, and semantic HTML.
11
12## Phase 0 — Plan (interactive)
13
141. Parse the argument as the aesthetic name (e.g., "steampunk", "memphis", "ukiyo-e").
152. Check the **Style Guide Catalog** table in `README.md` and `styles/{name}.html` — if the style already exists, inform the user.
163. Read `styles/CLAUDE.md` for the template and conventions.
174. Read 1-2 existing style guides to match structure and depth — pick ones with a similar vibe.
185. Propose a design direction:
19 - Color palette (5-7 colors with hex values and rationale)
20 - Typography (2-3 Google Fonts that fit the aesthetic)
21 - Key visual motifs (borders, shadows, textures, gradients)
22 - Sections to include beyond the required 6
236. Discuss with the user before proceeding.
24
25## Phase 1 — Research (parallel Sonnet subagents)
26
27Launch 2-3 **sonnet** subagents in parallel:
28- **Design history**: Research the aesthetic movement — key figures, principles, color palettes, typography conventions, visual hallmarks
29- **Font selection**: Search Google Fonts for typefaces that match the aesthetic. Find 2-3 display + body pairings.
30- **CSS techniques**: Research CSS techniques needed (gradients, textures, blend modes, clip-paths, etc.)
31
32Each subagent returns structured design research.
33
34## Phase 2 — Build (sequential Opus subagents)
35
36Use 2-3 sequential **opus** subagents:
37
381. **First agent**: Create the full HTML file with complete `:root` CSS variables, all component styles, and sections 01-04 (Color Palette, Typography, Spacing, Buttons). This agent writes the most CSS — the entire design system foundation.
392. **Second agent**: Read the file, add sections 05-07+ (Forms, Cards/Panels, Alerts, and any extra sections like Navigation, Modals, Grid System, or Design Principles). Close the HTML.
403. **Third agent (polish)**: Read complete file. Verify visual consistency, responsive breakpoints work, all CSS variables are used, no orphan styles. Ensure color contrast is readable.
41
42**Critical rules for build agents:**
43- Each agent MUST read the current file before writing
44- ALL colors, spacing, and fonts must be CSS custom properties in `:root`
45- Include `@media (max-width: 768px)` responsive breakpoint
46- Use semantic HTML: `<section>`, `<header>`, `<footer>`, `<label>`
47- File goes in `styles/{kebab-case-name}.html`
48
49## Phase 3 — Index & Ship
50
511. Read `/index.html` (the master project index) to understand the card format.
522. Add a themed card with class `.card-{name}` and matching CSS that reflects the new style's palette.
533. Add the new style to the **Style Guide Catalog** table in `README.md` (new row, both columns empty).
544. Commit with message: `Add {name} style guide`
555. Push using: `git config --global credential.helper store && echo "https://GGPrompts:$(gh auth token --user GGPrompts)@github.com" > ~/.git-credentials && git push origin main`