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
1---2name: design-references3version: 1.0.04description: |5 Predefined design system references for UI reviews. Includes Material Design 3,6 Apple Human Interface Guidelines, Tailwind UI, Ant Design, and Shadcn/ui.7 Use when conducting design reviews against established design systems.8---910# Design References Skill1112## Overview1314This 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.1516## Available Design Systems1718### Material Design 3 (Google)1920**Reference ID**: `material-3`21**Official URL**: https://m3.material.io/2223#### Design Principles24251. **Adaptive & Accessible** - Responsive across devices, accessible to all262. **Personal & Customizable** - Dynamic color, personalization273. **Expressive** - Motion, shape, and color express brand2829#### Color System3031- **Dynamic Color** - Colors derived from user wallpaper or brand32- **Tonal Palettes** - 13 tones per color (0-100)33- **Color Roles**:34 - Primary: Main brand color35 - Secondary: Accent elements36 - Tertiary: Contrast and balance37 - Error: Destructive actions38 - Surface: Backgrounds and containers39 - On-*: Text/icon colors on surfaces4041**Key Metrics**:42- Text contrast: 4.5:1 minimum (WCAG AA)43- Large text contrast: 3:1 minimum44- Non-text contrast: 3:1 minimum4546#### Typography4748**Type Scale** (Default):49| Role | Size | Weight | Line Height |50|------|------|--------|-------------|51| Display Large | 57sp | 400 | 64sp |52| Display Medium | 45sp | 400 | 52sp |53| Display Small | 36sp | 400 | 44sp |54| Headline Large | 32sp | 400 | 40sp |55| Headline Medium | 28sp | 400 | 36sp |56| Headline Small | 24sp | 400 | 32sp |57| Title Large | 22sp | 400 | 28sp |58| Title Medium | 16sp | 500 | 24sp |59| Title Small | 14sp | 500 | 20sp |60| Body Large | 16sp | 400 | 24sp |61| Body Medium | 14sp | 400 | 20sp |62| Body Small | 12sp | 400 | 16sp |63| Label Large | 14sp | 500 | 20sp |64| Label Medium | 12sp | 500 | 16sp |65| Label Small | 11sp | 500 | 16sp |6667**Font**: Roboto (sans-serif)6869#### Spacing7071**Baseline Grid**: 4dp72**Common Values**: 4, 8, 12, 16, 24, 32, 48, 64, 96, 1287374#### Component Patterns7576- **Buttons**: Filled, Outlined, Text, Elevated, Tonal77- **Cards**: Elevated, Filled, Outlined78- **Navigation**: Rail, Bar, Drawer79- **Inputs**: Filled, Outlined80- **Dialogs**: Basic, Full-screen, Date picker8182#### Review Checklist8384- [ ] Dynamic color theming applied correctly85- [ ] Type scale follows M3 specs86- [ ] 4dp baseline grid followed87- [ ] Touch targets minimum 48dp88- [ ] Elevation levels correct (0-5)89- [ ] Shape scale appropriate (Extra small to Extra large)9091---9293### Apple Human Interface Guidelines (iOS/macOS)9495**Reference ID**: `apple-hig`96**Official URL**: https://developer.apple.com/design/human-interface-guidelines/9798#### Design Principles991001. **Clarity** - Text readable, icons precise, ornaments subtle1012. **Deference** - Content over chrome, minimal UI1023. **Depth** - Visual layers, motion conveys hierarchy103104#### Color System105106**System Colors**:107| Color | Light Mode | Dark Mode | Usage |108|-------|------------|-----------|-------|109| Blue | #007AFF | #0A84FF | Links, interactive elements |110| Green | #34C759 | #30D158 | Success, positive actions |111| Indigo | #5856D6 | #5E5CE6 | Accent |112| Orange | #FF9500 | #FF9F0A | Warnings, attention |113| Pink | #FF2D55 | #FF375F | Accent |114| Purple | #AF52DE | #BF5AF2 | Accent |115| Red | #FF3B30 | #FF453A | Destructive, errors |116| Teal | #5AC8FA | #64D2FF | Accent |117| Yellow | #FFCC00 | #FFD60A | Warnings |118119**Semantic Colors**:120- Label (Primary, Secondary, Tertiary, Quaternary)121- Fill (Primary through Quaternary)122- Background (Primary, Secondary, Tertiary)123- Separator124125#### Typography126127**SF Pro** (San Francisco):128| Style | Size | Weight | Leading |129|-------|------|--------|---------|130| Large Title | 34pt | Bold | 41pt |131| Title 1 | 28pt | Regular | 34pt |132| Title 2 | 22pt | Regular | 28pt |133| Title 3 | 20pt | Regular | 25pt |134| Headline | 17pt | Semi-Bold | 22pt |135| Body | 17pt | Regular | 22pt |136| Callout | 16pt | Regular | 21pt |137| Subheadline | 15pt | Regular | 20pt |138| Footnote | 13pt | Regular | 18pt |139| Caption 1 | 12pt | Regular | 16pt |140| Caption 2 | 11pt | Regular | 13pt |141142#### Spacing143144**iOS Standard Margins**: 16pt (compact), 20pt (regular)145**macOS Standard Margins**: 20pt146147#### Component Patterns148149- **Navigation**: Tab Bar, Sidebar, Navigation Bar150- **Buttons**: System, Custom, Icon-only151- **Lists**: Plain, Grouped, Inset Grouped152- **Forms**: Grouped sections with headers153154#### Review Checklist155156- [ ] SF Pro or SF Mono fonts used157- [ ] System colors or semantically appropriate custom colors158- [ ] Touch targets minimum 44pt x 44pt159- [ ] Standard margins respected160- [ ] Navigation patterns match platform conventions161- [ ] Dark mode support with proper semantic colors162163---164165### Tailwind UI166167**Reference ID**: `tailwind-ui`168**Official URL**: https://tailwindui.com/169170#### Design Principles1711721. **Utility-First** - Compose styles from atomic classes1732. **Responsive** - Mobile-first, breakpoint prefixes1743. **Consistent** - Design tokens as class names175176#### Color System177178**Tailwind Colors** (50-950 shades):179- Slate, Gray, Zinc, Neutral, Stone (Grays)180- Red, Orange, Amber, Yellow (Warm)181- Lime, Green, Emerald, Teal (Cool greens)182- Cyan, Sky, Blue, Indigo, Violet, Purple, Fuchsia, Pink, Rose183184**Usage Patterns**:185- Primary: `blue-600` (buttons, links)186- Secondary: `gray-600` (secondary text)187- Success: `green-600`188- Warning: `amber-600`189- Error: `red-600`190- Background: `white` / `gray-50`191- Surface: `gray-100` / `gray-800`192193#### Typography194195**Font Scale**:196| Class | Size | Line Height |197|-------|------|-------------|198| text-xs | 12px | 16px |199| text-sm | 14px | 20px |200| text-base | 16px | 24px |201| text-lg | 18px | 28px |202| text-xl | 20px | 28px |203| text-2xl | 24px | 32px |204| text-3xl | 30px | 36px |205| text-4xl | 36px | 40px |206| text-5xl | 48px | 48px |207| text-6xl | 60px | 60px |208| text-7xl | 72px | 72px |209| text-8xl | 96px | 96px |210| text-9xl | 128px | 128px |211212**Font Weights**: thin(100) to black(900)213214#### Spacing Scale215216| Class | Value |217|-------|-------|218| 0 | 0px |219| px | 1px |220| 0.5 | 2px |221| 1 | 4px |222| 2 | 8px |223| 3 | 12px |224| 4 | 16px |225| 5 | 20px |226| 6 | 24px |227| 8 | 32px |228| 10 | 40px |229| 12 | 48px |230| 16 | 64px |231| 20 | 80px |232| 24 | 96px |233234#### Component Patterns235236- **Buttons**: Primary, Secondary, Soft, Outline237- **Forms**: Stacked, Inline, with validation states238- **Cards**: Simple, with header, with footer239- **Navigation**: Navbar, Sidebar, Tabs240241#### Review Checklist242243- [ ] Spacing uses Tailwind scale (4px base)244- [ ] Typography uses Tailwind type scale245- [ ] Colors from Tailwind palette246- [ ] Consistent hover/focus states247- [ ] Responsive breakpoints (sm, md, lg, xl, 2xl)248- [ ] Dark mode with `dark:` variants249250---251252### Ant Design253254**Reference ID**: `ant-design`255**Official URL**: https://ant.design/256257#### Design Principles2582591. **Natural** - Align with user mental models2602. **Certain** - Predictable, consistent behavior2613. **Meaningful** - Purpose-driven design2624. **Growing** - Support user skill progression263264#### Color System265266**Functional Colors**:267| Role | Hex | Usage |268|------|-----|-------|269| Primary | #1677ff | Brand, primary actions |270| Success | #52c41a | Positive feedback |271| Warning | #faad14 | Warnings, attention |272| Error | #ff4d4f | Errors, destructive |273| Info | #1677ff | Informational |274275**Neutral Colors**: 13 shades of gray (#fff to #000)276277#### Typography278279**Font Family**: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue280281| Role | Size | Weight |282|------|------|--------|283| h1 | 38px | 600 |284| h2 | 30px | 600 |285| h3 | 24px | 600 |286| h4 | 20px | 600 |287| h5 | 16px | 600 |288| Base | 14px | 400 |289| Small | 12px | 400 |290291#### Spacing292293**Base Unit**: 4px294**Scale**: 4, 8, 12, 16, 20, 24, 32, 40, 48295296#### Component Patterns297298- **Forms**: Horizontal, Vertical, Inline layouts299- **Tables**: Sortable, Filterable, Paginated300- **Modals**: Confirm, Info, with footer301- **Data Entry**: Extensive input types302303#### Review Checklist304305- [ ] 14px base font size306- [ ] 4px spacing base unit307- [ ] Functional colors for feedback308- [ ] Form layouts consistent309- [ ] Table patterns for data display310- [ ] Enterprise-grade density (compact option)311312---313314### Shadcn/ui315316**Reference ID**: `shadcn-ui`317**Official URL**: https://ui.shadcn.com/318319#### Design Principles3203211. **Copy-Paste** - Components you own, not import3222. **Accessible** - Built on Radix UI primitives3233. **Customizable** - CSS variables for theming3244. **Composable** - Small, focused components325326#### Color System327328**CSS Variables Based**:329```css330--background: 0 0% 100%;331--foreground: 240 10% 3.9%;332--card: 0 0% 100%;333--card-foreground: 240 10% 3.9%;334--popover: 0 0% 100%;335--popover-foreground: 240 10% 3.9%;336--primary: 240 5.9% 10%;337--primary-foreground: 0 0% 98%;338--secondary: 240 4.8% 95.9%;339--secondary-foreground: 240 5.9% 10%;340--muted: 240 4.8% 95.9%;341--muted-foreground: 240 3.8% 46.1%;342--accent: 240 4.8% 95.9%;343--accent-foreground: 240 5.9% 10%;344--destructive: 0 84.2% 60.2%;345--destructive-foreground: 0 0% 98%;346--border: 240 5.9% 90%;347--input: 240 5.9% 90%;348--ring: 240 5.9% 10%;349--radius: 0.5rem;350```351352#### Typography353354**Inter** (default) or system font stack355356| Variant | Size | Weight | Leading |357|---------|------|--------|---------|358| h1 | 36px | 800 | 40px |359| h2 | 30px | 600 | 36px |360| h3 | 24px | 600 | 32px |361| h4 | 20px | 600 | 28px |362| p | 16px | 400 | 28px |363| lead | 20px | 400 | 28px |364| large | 18px | 600 | 28px |365| small | 14px | 500 | 20px |366| muted | 14px | 400 | 20px |367368#### Spacing369370**Tailwind-based**: 4px base (matches Tailwind scale)371372#### Component Patterns373374- **Buttons**: Default, Secondary, Destructive, Outline, Ghost, Link375- **Forms**: Built on Radix primitives376- **Dialogs**: AlertDialog, Dialog, Sheet377- **Data Display**: Table, DataTable, Cards378379#### Review Checklist380381- [ ] CSS variables for theming382- [ ] Radix UI primitives for accessibility383- [ ] Border radius using --radius variable384- [ ] Focus rings using --ring variable385- [ ] Consistent variant naming386- [ ] Dark mode via class strategy387388---389390## Usage in Reviews391392### Selecting a Design Reference393394The ui agent will check for style in this order:3953961. **Project Style** (`.claude/design-style.md`) - Highest priority3972. **Predefined Reference** (via `Design Reference:` directive or user selection)3983. **Auto-detect** (if recognizable patterns found)3994. **Generic Best Practices** (fallback)400401### Review with Specific Reference402403```404Task: ui405406Review this dashboard screenshot against Material Design 3 guidelines.407408Design Reference: material-3409410Image: screenshots/dashboard.png411412Write review to: ${SESSION_PATH}/reviews/design-review/gemini.md413```414415### Combining Project Style + Reference416417```418Task: ui419420Review using:421- Project Style: .claude/design-style.md (brand colors, custom tokens)422- Base Reference: shadcn-ui (component patterns, accessibility)423424Image: screenshots/form.png425```