CtrlK
BlogDocsLog inGet started
Tessl Logo

pantheon-ai/web-reference-sheet-generator

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

2.61x
Quality

100%

Does it follow best practices?

Impact

89%

2.61x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

design-reference-template.mdreferences/

{PROJECT_NAME} — Web Design Reference Sheet

Single source of truth for all visual and interaction decisions. Use this document when designing in Figma, writing CSS, or reviewing code. Figma source: Web Design Reference Sheet


Table of Contents

  1. Brand Identity
  2. Colour Palette
  3. Typography
  4. Spacing System
  5. Layout & Grid
  6. Borders & Radius
  7. Shadows & Elevation
  8. Motion & Transitions
  9. Component Patterns
  10. Accessibility
  11. Dark Mode
  12. Figma Sync Notes

1. Brand Identity

PropertyValue
Project name{PROJECT_NAME}
Tagline{TAGLINE}
Personality{PERSONALITY_ADJECTIVES}
Target market{TARGET_MARKET}
Brand voice{BRAND_VOICE}

If brand identity is not defined in code, ask the user to supply it or mark as TBD.


2. Colour Palette

All tokens are defined as CSS custom properties in {TOKEN_FILE_PATH}.

Primary Colours

TokenHexUsage
--{token}#{hex}{usage}

Semantic Colours

TokenValueUsage
--border{value}Subtle borders
--text-secondary{value}Supporting copy
--error{value}Form validation

Colour Do / Don't

  • Do use --{accent} only on --{sufficient-contrast-bg} text
  • Don't use --{over-saturated} as a background

3. Typography

Font Stack

TokenFamilyWeightsUsage
--font-display{family}{weights}Headings (h1–h3)
--font-main{family}{weights}Body copy, paragraphs
--font-nav{family}{weights}Navigation, buttons, labels
--font-editorial{family}{weights}Pull quotes, subtitles

Include only font roles that exist in the project.

Type Scale

ElementSizeWeightLine heightLetter spacingFont
h1{size}{weight}{lh}{ls}--font-display
h2{size}{weight}{lh}{ls}--font-display
h3{size}{weight}{lh}{ls}--font-display
body{size}{weight}{lh}--font-main
small{size}{weight}{lh}--font-main
label{size}{weight}{ls} uppercase--font-nav
button{size}{weight}{ls}--font-nav

4. Spacing System

TokenValueUsage example
--spacing-{name}{value}{usage}

Section Vertical Rhythm

BreakpointPadding top/bottom
Mobile{value}
Desktop{value}

5. Layout & Grid

Container

PurposeMax widthPadding
Navigation{value}{value}
Content{value}{value}
Narrow prose{value}{value}

Column Grid

LayoutClasses
{n}-col{classes}

Breakpoints

NameMin width
sm640px
md768px
lg1024px
xl1280px

6. Borders & Radius

Use caseValueTailwind class
Card border{value}{class}
Badge / pill{value}{class}
Card / module{value}{class}
Button{value}{class}

7. Shadows & Elevation

LevelCSS valueUsage
DefaultnoneResting cards
Hover{value}Card hover

8. Motion & Transitions

Standard Transitions

PropertyDurationEasingUsage
Color{duration}{easing}Links, buttons
Box shadow{duration}{easing}Card hover
Transform{duration}{easing}Lift effects

Keyframe Animations

List any named @keyframes found in CSS with their purpose.

Reduced Motion

Document how prefers-reduced-motion is handled (global CSS guard, per-component, etc.).


9. Component Patterns

For each distinct interactive pattern found in components, document:

Buttons

Primary:

{copy-paste HTML with all classes}

Secondary:

{copy-paste HTML}

Ghost (on dark bg):

{copy-paste HTML}

Badge / Section Label

{copy-paste HTML}

Card

{copy-paste HTML}

Section Structure

{copy-paste HTML section skeleton}

Add any additional patterns found (modals, toasts, tabs, accordions, etc.)


10. Accessibility

RuleImplementation
WCAG AA contrast{details}
Focus visible{implementation}
Decorative iconsaria-hidden="true"
Screen reader text{utility class used}
Landmark regions{which elements used}
Heading hierarchy{policy}
Touch targetsMinimum 44px
Reduced motion{implementation}

11. Dark Mode

TokenLightDark
--{token}{value}{value}

Document which tokens change in dark mode and which stay fixed (accent colours typically do not change).

Dark mode strategy: {class-based .dark / prefers-color-scheme / data attribute}.


12. Figma Sync Notes

Keeping Figma and code in sync

  1. All design tokens live in {token file path} — treat it as the master token source.
  2. When updating a value: update CSS first, then reflect in Figma library.
  3. The Figma Web Design Reference Sheet provides the template structure. Use it to populate a project-specific Figma file.
  4. Recommended Figma file structure: Colours → Typography → Spacing → Grid → Components → Accessibility notes.

Naming convention alignment

CSS tokenFigma style name suggestion
--{background-token}Color/Background/Base
--{primary-text-token}Color/Text/Primary
--{accent-token}Color/Accent/{Name}
--{brand-token}Color/Brand/{Name}
--font-displayText Style/Display/H1 etc.
--font-mainText Style/Body/Regular
--font-navText Style/UI/Label

Checklist when adding a new component in Figma

  • Uses only tokens from Section 2 (Colours)?
  • Type size, weight, and font match Section 3 (Typography)?
  • Spacing uses values from Section 4 (Spacing)?
  • Passes WCAG AA contrast (Section 10)?
  • Added to Component Patterns (Section 9) in this doc?

SKILL.md

tile.json