Generate a comprehensive web design reference sheet (docs/design/design-reference.md) and its companion enforcement skill (.agents/skills/{project-slug}/SKILL.md) for any website project. Extracts tokens from CSS files, validates completeness against a JSON schema scratchpad, inspects existing components, and produces a 12-section living document covering colours, typography, spacing, layout, borders, shadows, motion, component patterns, accessibility, dark mode, and Figma sync notes. Use when starting a new project, onboarding a design system, creating a Figma reference sheet, porting design tokens, or auditing existing styles. Triggers on: "create a design reference", "generate a style guide", "document the design tokens", "make a brand reference sheet", "create design docs", "port design tokens", "audit existing styles".
97
100%
Does it follow best practices?
Impact
89%
2.61xAverage score across 3 eval scenarios
Passed
No known issues
Enforce visual and interaction consistency across code and Figma.
Never make a colour, spacing, typography, or component decision from memory. Always read the reference sheet first. The reference sheet is the contract — code is the implementation. When in doubt, check the token; when the token is wrong, update the reference sheet first, then the code.
Use the Read tool on docs/design/design-reference.md.
| If working on... | Read section(s) |
|---|---|
| Colours / backgrounds | §2 Colour Palette |
| Text / headings / fonts | §3 Typography |
| Padding / margin / gap | §4 Spacing System |
| Page layout / grids | §5 Layout & Grid |
| Borders / rounded corners | §6 Borders & Radius |
| Shadows / hover effects | §7 Shadows & Elevation |
| Animations / transitions | §8 Motion & Transitions |
| Buttons / badges / cards | §9 Component Patterns |
aria-*, focus, contrast | §10 Accessibility |
| Dark mode | §11 Dark Mode |
| Figma ↔ code sync | §12 Figma Sync Notes |
{Paste the 6–8 most important project-specific rules from the generated reference sheet here.}
When reviewing files for style consistency, output findings as:
file:line — [RULE] descriptionGroup findings by category: COLOUR, TYPOGRAPHY, SPACING, LAYOUT, COMPONENT, ACCESSIBILITY, DARK MODE, MOTION.
| Anti-pattern | Correct approach |
|---|---|
| Raw hex value in CSS | Use var(--token-name) |
| One-off padding not from spacing scale | Use --spacing-* token |
Inline border-radius not matching §6 | Use the documented radius value |
| Hard-coded font-family | Use var(--font-*) token |
Missing aria-hidden on decorative icon | Add aria-hidden="true" |
| Hard-coded colour in dark-mode context | Use CSS custom property |
transition: all | Specify only needed properties |
{Paste the colour, font, and spacing tokens in the compact format from docs/design/design-reference.md.}