Design References Skill
Overview
This skill provides predefined design system references that the ui agent can use when reviewing designs. Each reference includes design principles, color guidelines, typography rules, spacing patterns, and component patterns.
Available Design Systems
Material Design 3 (Google)
Reference ID: material-3
Official URL: https://m3.material.io/
Design Principles
- Adaptive & Accessible - Responsive across devices, accessible to all
- Personal & Customizable - Dynamic color, personalization
- Expressive - Motion, shape, and color express brand
Color System
- Dynamic Color - Colors derived from user wallpaper or brand
- Tonal Palettes - 13 tones per color (0-100)
- Color Roles:
- Primary: Main brand color
- Secondary: Accent elements
- Tertiary: Contrast and balance
- Error: Destructive actions
- Surface: Backgrounds and containers
- On-*: Text/icon colors on surfaces
Key Metrics:
- Text contrast: 4.5:1 minimum (WCAG AA)
- Large text contrast: 3:1 minimum
- Non-text contrast: 3:1 minimum
Typography
Type Scale (Default):
| Role |
Size |
Weight |
Line Height |
| Display Large |
57sp |
400 |
64sp |
| Display Medium |
45sp |
400 |
52sp |
| Display Small |
36sp |
400 |
44sp |
| Headline Large |
32sp |
400 |
40sp |
| Headline Medium |
28sp |
400 |
36sp |
| Headline Small |
24sp |
400 |
32sp |
| Title Large |
22sp |
400 |
28sp |
| Title Medium |
16sp |
500 |
24sp |
| Title Small |
14sp |
500 |
20sp |
| Body Large |
16sp |
400 |
24sp |
| Body Medium |
14sp |
400 |
20sp |
| Body Small |
12sp |
400 |
16sp |
| Label Large |
14sp |
500 |
20sp |
| Label Medium |
12sp |
500 |
16sp |
| Label Small |
11sp |
500 |
16sp |
Font: Roboto (sans-serif)
Spacing
Baseline Grid: 4dp
Common Values: 4, 8, 12, 16, 24, 32, 48, 64, 96, 128
Component Patterns
- Buttons: Filled, Outlined, Text, Elevated, Tonal
- Cards: Elevated, Filled, Outlined
- Navigation: Rail, Bar, Drawer
- Inputs: Filled, Outlined
- Dialogs: Basic, Full-screen, Date picker
Review Checklist
Apple Human Interface Guidelines (iOS/macOS)
Reference ID: apple-hig
Official URL: https://developer.apple.com/design/human-interface-guidelines/
Design Principles
- Clarity - Text readable, icons precise, ornaments subtle
- Deference - Content over chrome, minimal UI
- Depth - Visual layers, motion conveys hierarchy
Color System
System Colors:
| Color |
Light Mode |
Dark Mode |
Usage |
| Blue |
#007AFF |
#0A84FF |
Links, interactive elements |
| Green |
#34C759 |
#30D158 |
Success, positive actions |
| Indigo |
#5856D6 |
#5E5CE6 |
Accent |
| Orange |
#FF9500 |
#FF9F0A |
Warnings, attention |
| Pink |
#FF2D55 |
#FF375F |
Accent |
| Purple |
#AF52DE |
#BF5AF2 |
Accent |
| Red |
#FF3B30 |
#FF453A |
Destructive, errors |
| Teal |
#5AC8FA |
#64D2FF |
Accent |
| Yellow |
#FFCC00 |
#FFD60A |
Warnings |
Semantic Colors:
- Label (Primary, Secondary, Tertiary, Quaternary)
- Fill (Primary through Quaternary)
- Background (Primary, Secondary, Tertiary)
- Separator
Typography
SF Pro (San Francisco):
| Style |
Size |
Weight |
Leading |
| Large Title |
34pt |
Bold |
41pt |
| Title 1 |
28pt |
Regular |
34pt |
| Title 2 |
22pt |
Regular |
28pt |
| Title 3 |
20pt |
Regular |
25pt |
| Headline |
17pt |
Semi-Bold |
22pt |
| Body |
17pt |
Regular |
22pt |
| Callout |
16pt |
Regular |
21pt |
| Subheadline |
15pt |
Regular |
20pt |
| Footnote |
13pt |
Regular |
18pt |
| Caption 1 |
12pt |
Regular |
16pt |
| Caption 2 |
11pt |
Regular |
13pt |
Spacing
iOS Standard Margins: 16pt (compact), 20pt (regular)
macOS Standard Margins: 20pt
Component Patterns
- Navigation: Tab Bar, Sidebar, Navigation Bar
- Buttons: System, Custom, Icon-only
- Lists: Plain, Grouped, Inset Grouped
- Forms: Grouped sections with headers
Review Checklist
Tailwind UI
Reference ID: tailwind-ui
Official URL: https://tailwindui.com/
Design Principles
- Utility-First - Compose styles from atomic classes
- Responsive - Mobile-first, breakpoint prefixes
- Consistent - Design tokens as class names
Color System
Tailwind Colors (50-950 shades):
- Slate, Gray, Zinc, Neutral, Stone (Grays)
- Red, Orange, Amber, Yellow (Warm)
- Lime, Green, Emerald, Teal (Cool greens)
- Cyan, Sky, Blue, Indigo, Violet, Purple, Fuchsia, Pink, Rose
Usage Patterns:
- Primary:
blue-600 (buttons, links)
- Secondary:
gray-600 (secondary text)
- Success:
green-600
- Warning:
amber-600
- Error:
red-600
- Background:
white / gray-50
- Surface:
gray-100 / gray-800
Typography
Font Scale:
| Class |
Size |
Line Height |
| text-xs |
12px |
16px |
| text-sm |
14px |
20px |
| text-base |
16px |
24px |
| text-lg |
18px |
28px |
| text-xl |
20px |
28px |
| text-2xl |
24px |
32px |
| text-3xl |
30px |
36px |
| text-4xl |
36px |
40px |
| text-5xl |
48px |
48px |
| text-6xl |
60px |
60px |
| text-7xl |
72px |
72px |
| text-8xl |
96px |
96px |
| text-9xl |
128px |
128px |
Font Weights: thin(100) to black(900)
Spacing Scale
| Class |
Value |
| 0 |
0px |
| px |
1px |
| 0.5 |
2px |
| 1 |
4px |
| 2 |
8px |
| 3 |
12px |
| 4 |
16px |
| 5 |
20px |
| 6 |
24px |
| 8 |
32px |
| 10 |
40px |
| 12 |
48px |
| 16 |
64px |
| 20 |
80px |
| 24 |
96px |
Component Patterns
- Buttons: Primary, Secondary, Soft, Outline
- Forms: Stacked, Inline, with validation states
- Cards: Simple, with header, with footer
- Navigation: Navbar, Sidebar, Tabs
Review Checklist
Ant Design
Reference ID: ant-design
Official URL: https://ant.design/
Design Principles
- Natural - Align with user mental models
- Certain - Predictable, consistent behavior
- Meaningful - Purpose-driven design
- Growing - Support user skill progression
Color System
Functional Colors:
| Role |
Hex |
Usage |
| Primary |
#1677ff |
Brand, primary actions |
| Success |
#52c41a |
Positive feedback |
| Warning |
#faad14 |
Warnings, attention |
| Error |
#ff4d4f |
Errors, destructive |
| Info |
#1677ff |
Informational |
Neutral Colors: 13 shades of gray (#fff to #000)
Typography
Font Family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue
| Role |
Size |
Weight |
| h1 |
38px |
600 |
| h2 |
30px |
600 |
| h3 |
24px |
600 |
| h4 |
20px |
600 |
| h5 |
16px |
600 |
| Base |
14px |
400 |
| Small |
12px |
400 |
Spacing
Base Unit: 4px
Scale: 4, 8, 12, 16, 20, 24, 32, 40, 48
Component Patterns
- Forms: Horizontal, Vertical, Inline layouts
- Tables: Sortable, Filterable, Paginated
- Modals: Confirm, Info, with footer
- Data Entry: Extensive input types
Review Checklist
Shadcn/ui
Reference ID: shadcn-ui
Official URL: https://ui.shadcn.com/
Design Principles
- Copy-Paste - Components you own, not import
- Accessible - Built on Radix UI primitives
- Customizable - CSS variables for theming
- Composable - Small, focused components
Color System
CSS Variables Based:
--background: 0 0% 100%;
--foreground: 240 10% 3.9%;
--card: 0 0% 100%;
--card-foreground: 240 10% 3.9%;
--popover: 0 0% 100%;
--popover-foreground: 240 10% 3.9%;
--primary: 240 5.9% 10%;
--primary-foreground: 0 0% 98%;
--secondary: 240 4.8% 95.9%;
--secondary-foreground: 240 5.9% 10%;
--muted: 240 4.8% 95.9%;
--muted-foreground: 240 3.8% 46.1%;
--accent: 240 4.8% 95.9%;
--accent-foreground: 240 5.9% 10%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;
--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--ring: 240 5.9% 10%;
--radius: 0.5rem;
Typography
Inter (default) or system font stack
| Variant |
Size |
Weight |
Leading |
| h1 |
36px |
800 |
40px |
| h2 |
30px |
600 |
36px |
| h3 |
24px |
600 |
32px |
| h4 |
20px |
600 |
28px |
| p |
16px |
400 |
28px |
| lead |
20px |
400 |
28px |
| large |
18px |
600 |
28px |
| small |
14px |
500 |
20px |
| muted |
14px |
400 |
20px |
Spacing
Tailwind-based: 4px base (matches Tailwind scale)
Component Patterns
- Buttons: Default, Secondary, Destructive, Outline, Ghost, Link
- Forms: Built on Radix primitives
- Dialogs: AlertDialog, Dialog, Sheet
- Data Display: Table, DataTable, Cards
Review Checklist
Usage in Reviews
Selecting a Design Reference
The ui agent will check for style in this order:
- Project Style (
.claude/design-style.md) - Highest priority
- Predefined Reference (via
Design Reference: directive or user selection)
- Auto-detect (if recognizable patterns found)
- Generic Best Practices (fallback)
Review with Specific Reference
Task: ui
Review this dashboard screenshot against Material Design 3 guidelines.
Design Reference: material-3
Image: screenshots/dashboard.png
Write review to: ${SESSION_PATH}/reviews/design-review/gemini.md
Combining Project Style + Reference
Task: ui
Review using:
- Project Style: .claude/design-style.md (brand colors, custom tokens)
- Base Reference: shadcn-ui (component patterns, accessibility)
Image: screenshots/form.png
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: madappgang-claude-code-design-references3description: Design References Skill4---56# Design References Skill78## Overview910This skill provides predefined design system references that the ui agent can use when reviewing designs. Each reference includes design principles, color guidelines, typography rules, spacing patterns, and component patterns.1112## Available Design Systems1314### Material Design 3 (Google)1516**Reference ID**: `material-3`17**Official URL**: https://m3.material.io/1819#### Design Principles20211. **Adaptive & Accessible** - Responsive across devices, accessible to all222. **Personal & Customizable** - Dynamic color, personalization233. **Expressive** - Motion, shape, and color express brand2425#### Color System2627- **Dynamic Color** - Colors derived from user wallpaper or brand28- **Tonal Palettes** - 13 tones per color (0-100)29- **Color Roles**:30 - Primary: Main brand color31 - Secondary: Accent elements32 - Tertiary: Contrast and balance33 - Error: Destructive actions34 - Surface: Backgrounds and containers35 - On-*: Text/icon colors on surfaces3637**Key Metrics**:38- Text contrast: 4.5:1 minimum (WCAG AA)39- Large text contrast: 3:1 minimum40- Non-text contrast: 3:1 minimum4142#### Typography4344**Type Scale** (Default):45| Role | Size | Weight | Line Height |46|------|------|--------|-------------|47| Display Large | 57sp | 400 | 64sp |48| Display Medium | 45sp | 400 | 52sp |49| Display Small | 36sp | 400 | 44sp |50| Headline Large | 32sp | 400 | 40sp |51| Headline Medium | 28sp | 400 | 36sp |52| Headline Small | 24sp | 400 | 32sp |53| Title Large | 22sp | 400 | 28sp |54| Title Medium | 16sp | 500 | 24sp |55| Title Small | 14sp | 500 | 20sp |56| Body Large | 16sp | 400 | 24sp |57| Body Medium | 14sp | 400 | 20sp |58| Body Small | 12sp | 400 | 16sp |59| Label Large | 14sp | 500 | 20sp |60| Label Medium | 12sp | 500 | 16sp |61| Label Small | 11sp | 500 | 16sp |6263**Font**: Roboto (sans-serif)6465#### Spacing6667**Baseline Grid**: 4dp68**Common Values**: 4, 8, 12, 16, 24, 32, 48, 64, 96, 1286970#### Component Patterns7172- **Buttons**: Filled, Outlined, Text, Elevated, Tonal73- **Cards**: Elevated, Filled, Outlined74- **Navigation**: Rail, Bar, Drawer75- **Inputs**: Filled, Outlined76- **Dialogs**: Basic, Full-screen, Date picker7778#### Review Checklist7980- [ ] Dynamic color theming applied correctly81- [ ] Type scale follows M3 specs82- [ ] 4dp baseline grid followed83- [ ] Touch targets minimum 48dp84- [ ] Elevation levels correct (0-5)85- [ ] Shape scale appropriate (Extra small to Extra large)8687---8889### Apple Human Interface Guidelines (iOS/macOS)9091**Reference ID**: `apple-hig`92**Official URL**: https://developer.apple.com/design/human-interface-guidelines/9394#### Design Principles95961. **Clarity** - Text readable, icons precise, ornaments subtle972. **Deference** - Content over chrome, minimal UI983. **Depth** - Visual layers, motion conveys hierarchy99100#### Color System101102**System Colors**:103| Color | Light Mode | Dark Mode | Usage |104|-------|------------|-----------|-------|105| Blue | #007AFF | #0A84FF | Links, interactive elements |106| Green | #34C759 | #30D158 | Success, positive actions |107| Indigo | #5856D6 | #5E5CE6 | Accent |108| Orange | #FF9500 | #FF9F0A | Warnings, attention |109| Pink | #FF2D55 | #FF375F | Accent |110| Purple | #AF52DE | #BF5AF2 | Accent |111| Red | #FF3B30 | #FF453A | Destructive, errors |112| Teal | #5AC8FA | #64D2FF | Accent |113| Yellow | #FFCC00 | #FFD60A | Warnings |114115**Semantic Colors**:116- Label (Primary, Secondary, Tertiary, Quaternary)117- Fill (Primary through Quaternary)118- Background (Primary, Secondary, Tertiary)119- Separator120121#### Typography122123**SF Pro** (San Francisco):124| Style | Size | Weight | Leading |125|-------|------|--------|---------|126| Large Title | 34pt | Bold | 41pt |127| Title 1 | 28pt | Regular | 34pt |128| Title 2 | 22pt | Regular | 28pt |129| Title 3 | 20pt | Regular | 25pt |130| Headline | 17pt | Semi-Bold | 22pt |131| Body | 17pt | Regular | 22pt |132| Callout | 16pt | Regular | 21pt |133| Subheadline | 15pt | Regular | 20pt |134| Footnote | 13pt | Regular | 18pt |135| Caption 1 | 12pt | Regular | 16pt |136| Caption 2 | 11pt | Regular | 13pt |137138#### Spacing139140**iOS Standard Margins**: 16pt (compact), 20pt (regular)141**macOS Standard Margins**: 20pt142143#### Component Patterns144145- **Navigation**: Tab Bar, Sidebar, Navigation Bar146- **Buttons**: System, Custom, Icon-only147- **Lists**: Plain, Grouped, Inset Grouped148- **Forms**: Grouped sections with headers149150#### Review Checklist151152- [ ] SF Pro or SF Mono fonts used153- [ ] System colors or semantically appropriate custom colors154- [ ] Touch targets minimum 44pt x 44pt155- [ ] Standard margins respected156- [ ] Navigation patterns match platform conventions157- [ ] Dark mode support with proper semantic colors158159---160161### Tailwind UI162163**Reference ID**: `tailwind-ui`164**Official URL**: https://tailwindui.com/165166#### Design Principles1671681. **Utility-First** - Compose styles from atomic classes1692. **Responsive** - Mobile-first, breakpoint prefixes1703. **Consistent** - Design tokens as class names171172#### Color System173174**Tailwind Colors** (50-950 shades):175- Slate, Gray, Zinc, Neutral, Stone (Grays)176- Red, Orange, Amber, Yellow (Warm)177- Lime, Green, Emerald, Teal (Cool greens)178- Cyan, Sky, Blue, Indigo, Violet, Purple, Fuchsia, Pink, Rose179180**Usage Patterns**:181- Primary: `blue-600` (buttons, links)182- Secondary: `gray-600` (secondary text)183- Success: `green-600`184- Warning: `amber-600`185- Error: `red-600`186- Background: `white` / `gray-50`187- Surface: `gray-100` / `gray-800`188189#### Typography190191**Font Scale**:192| Class | Size | Line Height |193|-------|------|-------------|194| text-xs | 12px | 16px |195| text-sm | 14px | 20px |196| text-base | 16px | 24px |197| text-lg | 18px | 28px |198| text-xl | 20px | 28px |199| text-2xl | 24px | 32px |200| text-3xl | 30px | 36px |201| text-4xl | 36px | 40px |202| text-5xl | 48px | 48px |203| text-6xl | 60px | 60px |204| text-7xl | 72px | 72px |205| text-8xl | 96px | 96px |206| text-9xl | 128px | 128px |207208**Font Weights**: thin(100) to black(900)209210#### Spacing Scale211212| Class | Value |213|-------|-------|214| 0 | 0px |215| px | 1px |216| 0.5 | 2px |217| 1 | 4px |218| 2 | 8px |219| 3 | 12px |220| 4 | 16px |221| 5 | 20px |222| 6 | 24px |223| 8 | 32px |224| 10 | 40px |225| 12 | 48px |226| 16 | 64px |227| 20 | 80px |228| 24 | 96px |229230#### Component Patterns231232- **Buttons**: Primary, Secondary, Soft, Outline233- **Forms**: Stacked, Inline, with validation states234- **Cards**: Simple, with header, with footer235- **Navigation**: Navbar, Sidebar, Tabs236237#### Review Checklist238239- [ ] Spacing uses Tailwind scale (4px base)240- [ ] Typography uses Tailwind type scale241- [ ] Colors from Tailwind palette242- [ ] Consistent hover/focus states243- [ ] Responsive breakpoints (sm, md, lg, xl, 2xl)244- [ ] Dark mode with `dark:` variants245246---247248### Ant Design249250**Reference ID**: `ant-design`251**Official URL**: https://ant.design/252253#### Design Principles2542551. **Natural** - Align with user mental models2562. **Certain** - Predictable, consistent behavior2573. **Meaningful** - Purpose-driven design2584. **Growing** - Support user skill progression259260#### Color System261262**Functional Colors**:263| Role | Hex | Usage |264|------|-----|-------|265| Primary | #1677ff | Brand, primary actions |266| Success | #52c41a | Positive feedback |267| Warning | #faad14 | Warnings, attention |268| Error | #ff4d4f | Errors, destructive |269| Info | #1677ff | Informational |270271**Neutral Colors**: 13 shades of gray (#fff to #000)272273#### Typography274275**Font Family**: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue276277| Role | Size | Weight |278|------|------|--------|279| h1 | 38px | 600 |280| h2 | 30px | 600 |281| h3 | 24px | 600 |282| h4 | 20px | 600 |283| h5 | 16px | 600 |284| Base | 14px | 400 |285| Small | 12px | 400 |286287#### Spacing288289**Base Unit**: 4px290**Scale**: 4, 8, 12, 16, 20, 24, 32, 40, 48291292#### Component Patterns293294- **Forms**: Horizontal, Vertical, Inline layouts295- **Tables**: Sortable, Filterable, Paginated296- **Modals**: Confirm, Info, with footer297- **Data Entry**: Extensive input types298299#### Review Checklist300301- [ ] 14px base font size302- [ ] 4px spacing base unit303- [ ] Functional colors for feedback304- [ ] Form layouts consistent305- [ ] Table patterns for data display306- [ ] Enterprise-grade density (compact option)307308---309310### Shadcn/ui311312**Reference ID**: `shadcn-ui`313**Official URL**: https://ui.shadcn.com/314315#### Design Principles3163171. **Copy-Paste** - Components you own, not import3182. **Accessible** - Built on Radix UI primitives3193. **Customizable** - CSS variables for theming3204. **Composable** - Small, focused components321322#### Color System323324**CSS Variables Based**:325```css326--background: 0 0% 100%;327--foreground: 240 10% 3.9%;328--card: 0 0% 100%;329--card-foreground: 240 10% 3.9%;330--popover: 0 0% 100%;331--popover-foreground: 240 10% 3.9%;332--primary: 240 5.9% 10%;333--primary-foreground: 0 0% 98%;334--secondary: 240 4.8% 95.9%;335--secondary-foreground: 240 5.9% 10%;336--muted: 240 4.8% 95.9%;337--muted-foreground: 240 3.8% 46.1%;338--accent: 240 4.8% 95.9%;339--accent-foreground: 240 5.9% 10%;340--destructive: 0 84.2% 60.2%;341--destructive-foreground: 0 0% 98%;342--border: 240 5.9% 90%;343--input: 240 5.9% 90%;344--ring: 240 5.9% 10%;345--radius: 0.5rem;346```347348#### Typography349350**Inter** (default) or system font stack351352| Variant | Size | Weight | Leading |353|---------|------|--------|---------|354| h1 | 36px | 800 | 40px |355| h2 | 30px | 600 | 36px |356| h3 | 24px | 600 | 32px |357| h4 | 20px | 600 | 28px |358| p | 16px | 400 | 28px |359| lead | 20px | 400 | 28px |360| large | 18px | 600 | 28px |361| small | 14px | 500 | 20px |362| muted | 14px | 400 | 20px |363364#### Spacing365366**Tailwind-based**: 4px base (matches Tailwind scale)367368#### Component Patterns369370- **Buttons**: Default, Secondary, Destructive, Outline, Ghost, Link371- **Forms**: Built on Radix primitives372- **Dialogs**: AlertDialog, Dialog, Sheet373- **Data Display**: Table, DataTable, Cards374375#### Review Checklist376377- [ ] CSS variables for theming378- [ ] Radix UI primitives for accessibility379- [ ] Border radius using --radius variable380- [ ] Focus rings using --ring variable381- [ ] Consistent variant naming382- [ ] Dark mode via class strategy383384---385386## Usage in Reviews387388### Selecting a Design Reference389390The ui agent will check for style in this order:3913921. **Project Style** (`.claude/design-style.md`) - Highest priority3932. **Predefined Reference** (via `Design Reference:` directive or user selection)3943. **Auto-detect** (if recognizable patterns found)3954. **Generic Best Practices** (fallback)396397### Review with Specific Reference398399```400Task: ui401402Review this dashboard screenshot against Material Design 3 guidelines.403404Design Reference: material-3405406Image: screenshots/dashboard.png407408Write review to: ${SESSION_PATH}/reviews/design-review/gemini.md409```410411### Combining Project Style + Reference412413```414Task: ui415416Review using:417- Project Style: .claude/design-style.md (brand colors, custom tokens)418- Base Reference: shadcn-ui (component patterns, accessibility)419420Image: screenshots/form.png421```422423---424> Converted and distributed by [TomeVault](https://tomevault.io/claim/madappgang) — claim your Tome and manage your conversions.425<!-- tomevault:4.0:skill_md:2026-04-11 -->