ask-matt
MAmattpocock/skills337k4,978 new stars in the last 7 days
Create, extract, or validate a project's DESIGN.md specification and semantic CSS tokens so UI work has authentic, domain-grounded visual direction instead of generic defaults. Activate when DESIGN.md is missing or when defining a brand/design system.
DESIGN.md EngineActivate this skill whenever starting a website or web app without an existing design system, selecting a built-in visual archetype, or extracting DESIGN.md + CSS tokens from a reference page.
Users do not need to write DESIGN.md from scratch. Match the product domain to one of the 6 WCAG-verified archetypes below (or scaffold it instantly via node scripts/design-spec.mjs --init --archetype <name> --with-tokens):
| Archetype | Surface & Accent | Best For |
|---|---|---|
atelier | Warm Alabaster #f6f3ec + Espresso #1c1917 + Terracotta #a83e1f | E-commerce, storefronts, studios, hospitality, culinary & D2C |
ledger | Mineral Paper #f5f7f6 + Pine Ink #0f1915 + Forest #14533d | Fintech, B2B SaaS, billing, treasury, operational analytics |
press | Newsprint Cream #faf7f2 + Charcoal #161615 + Crimson #9f1239 | Technical blogs, research labs, documentation, essays, media |
instrument | Matte Carbon #101012 + Titanium #f4f4f5 + Amber #f59e0b | DevTools, CLIs, cloud infrastructure, creative/audio hardware UIs |
nordic | Limestone #f4f5f7 + Slate #11141a + Cobalt #1d4ed8 | Calm productivity apps, scheduling, health, collaborative workspaces |
brutalist | Stark Chalk #f2f2ef + Pure Ink #111111 + Signal Orange #c2410c | Design engineering agencies, architecture, developer launches |
Derive every aesthetic choice from three concrete facts:
If the user has not expressed a preference between light/dark polarity or editorial vs. technical density, ask at most 2 brief questions before writing DESIGN.md.
DESIGN.md at the Project RootEvery DESIGN.md must stay concise, measurable, and free of vague adjectives. Include these exact 6 sections:
# DESIGN.md — <Project Name>
## 1. Aesthetic Point of View
- **Reference World**: <concrete physical/editorial reference>
- **Surface Polarity**: <Tinted Light | Architectural Dark | Dual with Light Default>
- **Density**: <Spacious Editorial | Balanced Product | High-Density Operational>
## 2. Color Tokens (90% Neutral / 10% Accent)
- `--bg-canvas`: <hex / oklch> — Primary page background
- `--bg-surface`: <hex / oklch> — Elevated panels / sheets
- `--bg-subtle`: <hex / oklch> — Hover rows / recessed wells
- `--fg-primary`: <hex / oklch> — Primary ink (>= 7:1 contrast on canvas)
- `--fg-secondary`: <hex / oklch> — Supporting copy (>= 4.5:1 contrast on canvas)
- `--fg-muted`: <hex / oklch> — Metadata & captions (>= 4.5:1 if essential text)
- `--border-hairline`: <rgba / oklch alpha> — 1px structural dividers
- `--accent`: <hex / oklch> — Single primary action/signal hue
- `--accent-fg`: <hex / oklch> — Text on `--accent` (>= 4.5:1 contrast)
## 3. Typography & Optical Rules
- **Display Font**: <font family, weights, tracking -0.03em, line-height 1.04>
- **Body / UI Font**: <font family, weights, max-width 64ch, line-height 1.6>
- **Monospace Font**: <font family for IDs, code, metrics + tabular-nums>
## 4. Spatial Grid & Geometry
- **Max Container**: <e.g., 76rem with clamp(1.25rem, 3.5vw, 3rem) gutter>
- **Primary Layout Motif**: <e.g., 7fr/5fr asymmetric split + 1px shared-hairline grids>
- **Corner Radius Scale**: <e.g., 4px controls, 6px panels, concentric outer calc>
## 5. Motion & Affordances
- **Curve & Timing**: `cubic-bezier(0.22, 1, 0.36, 1)` — `150ms` micro, `220ms` panel
- **Interactive States**: Solid hover shift, `translateY(1px)` active press, `2px` offset `:focus-visible`
## 6. Anti-Patterns Specific to This Brand
- <2–3 domain-specific things never to do on this product>
U-09)Before locking DESIGN.md, verify every foreground/background pair with the bundled contrast checker:
node <skills-dir>/unprompted-a11y/scripts/contrast-check.mjs --fg "#181614" --bg "#f7f5f0"
Ensure --fg-primary and --fg-secondary pass WCAG AA (>= 4.5:1) against both --bg-canvas and --bg-surface, and --accent-fg passes >= 4.5:1 against --accent.
Mirror the locked DESIGN.md values directly into the project's stylesheet (tokens.css or globals.css) before building components.
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
OBobra/superpowers331k4,772 new stars in the last 7 days
AFaffaan-m/ECC315k4,381 new stars in the last 7 days
AFaffaan-m/ECC315k4,381 new stars in the last 7 days