skills/development/front-end/web-reference-sheet-generator/SKILL.md
Generate a project-specific web design reference sheet (docs/design/design-reference.md) and companion enforcement skill for any website codebase. Extracts CSS custom properties, validates against a JSON schema scratchpad, inspects components, and produces a 12-section document covering colours, typography, spacing, layout, borders, shadows, motion, 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, port design tokens, audit existing styles.
npx skillsauth add pantheon-org/tekhne web-reference-sheet-generatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generate a project-specific design reference sheet and companion enforcement skill from any website codebase, mirroring the structure of the Figma Web Design Reference Sheet.
Document what exists, not what should exist.
Every invented token is technical debt dressed as documentation — developers trust the
reference sheet and will use the wrong values in production. When data is missing, write
TBD — not yet defined. A reference sheet with honest gaps is more useful than one with
plausible fictions.
Apply this skill when:
See references/workflow.md for the full 8-step generation process:
Discover design tokens
grep -r "\-\-" src/ --include="*.css" -h | grep -E "^\s+--" | sort -u
grep -r "@theme\|@font-face\|@import" src/ --include="*.css"
Inspect existing components (read 3–5 representative files)
Check dark mode and accessibility patterns
Fill templates/skill-output.yaml — structured scratchpad validated against schemas/design-reference.schema.json
Generate docs/design/design-reference.md from the template
# Review populated scratchpad before generating final docs
cat templates/skill-output.yaml | grep -E "TBD|null" && echo "Gaps found — fill before generating"
Generate the enforcement skill from the enforcement skill template
bun run generate --template enforcement-skill --output ./{project-slug}/SKILL.md
Confirm output with a structured report listing populated sections and TBD items
bun run validate --schema schemas/design-reference.schema.json --input templates/skill-output.yaml
| BAD | GOOD |
|-----|------|
| Infer --space-4: 1rem because it seems reasonable | Document only values found in CSS; mark missing sections as TBD — not yet defined |
| Expand one brand colour into a full 9-shade palette | Document only the hardcoded hex values found; note they are not formalised tokens |
WHY: Even well-known frameworks have project-level overrides. Reading source files is the only way to capture what is real.
# BAD: assuming defaults
# GOOD: always verify
grep -r "screens" tailwind.config.ts
TBD — not yet defined is an actionable signal that makes gaps impossible to miss.| BAD | GOOD |
|-----|------|
| ## Dark Mode followed by empty content | ## Dark Mode followed by TBD — not yet defined |
WHY: A reference sheet that requires editing before use wastes developer time and erodes trust.
/* BAD: placeholder that doesn't exist */
/* GOOD: actual token from source */
--color-brand-primary: #1a2b3c;
description: Enforce design tokens for any web projectdescription: Enforce design tokens for the Acme Corp marketing sitereferences/workflow.md — Full 8-step generation workflowreferences/design-reference-template.md — Output template for docs/design/design-reference.mdreferences/enforcement-skill-template.md — Output template for the companion enforcement skilltemplates/skill-output.yaml — Structured scratchpad; populate before writing any markdownschemas/design-reference.schema.json — JSON schema for scratchpad validationreferences/accessibility-guidelines.md — WCAG 2.1 AA criteria, contrast ratios, keyboard nav, ARIAreferences/typography-principles.md — Hierarchy, readability, type pairing, modular scalereferences/psychology-of-color.md — Colour associations, brand strategy, harmony, WCAG contrastreferences/visual-hierarchy.md — The seven hierarchy variables, Z/F-patternsreferences/grid-and-layout-theory.md — Column grids, 8-point system, responsive strategiesreferences/whitespace-theory.md — Macro/micro whitespace, density, hierarchyreferences/gestalt-principles.md — Proximity, similarity, figure-ground, closure, continuitytools
A skill that produces warnings but no errors.
testing
A well-formed example skill for testing the validator.
development
A skill with code blocks and imperative instructions for testing content and contamination analysis.
tools