UI Design System
Professional toolkit for creating and maintaining scalable design systems with automated token generation and developer handoff.
Overview
This skill provides comprehensive design system capabilities including programmatic design token generation, color palette creation from brand colors, typography systems, spacing grids, and multi-format exports for seamless design-to-development workflow.
When to Use This Skill
- Creating a new design system from scratch
- Generating design tokens from brand colors
- Building consistent component libraries
- Maintaining visual consistency across products
- Facilitating design-to-developer handoff
- Implementing responsive design systems
- Setting up Tailwind CSS configurations
Core Capabilities
1. Design Token Generation
Automatically generate comprehensive design token systems:
- Color Palettes: Generate 50-900 scales from single brand color
- Typography: Modular type scale with font families and weights
- Spacing: 8pt grid system with semantic naming
- Sizing: Component dimensions and container widths
- Borders: Radius and width tokens for different styles
- Shadows: Elevation system for depth hierarchy
- Animation: Duration and easing tokens
- Breakpoints: Responsive design breakpoints
- Z-Index: Layering system for overlays and modals
2. Style Variations
Three built-in style systems:
- Modern: Inter fonts, subtle shadows, 8px base radius
- Classic: Helvetica fonts, traditional shadows, 4px base radius
- Playful: Poppins fonts, pronounced shadows, 16px base radius
3. Color System Generation
Sophisticated color palette generation:
- Primary and secondary color scales (10 shades each)
- Complementary color calculation (180° hue rotation)
- Neutral gray scale (9 shades)
- Semantic colors (success, warning, error, info)
- Surface colors (background, foreground, card, overlay)
- Automatic contrast calculation
- WCAG accessibility compliance
4. Typography System
Modular typography scale:
- Base: 16px with 1.25 ratio (Major Third)
- Font families per style (sans, serif, mono)
- Font weights (100-900)
- Line heights (tight to loose)
- Letter spacing (tighter to widest)
- Pre-composed text styles (h1-h6, body, small, caption)
5. Spacing & Sizing
8pt grid system:
- Base unit: 8px
- Multipliers: 0, 0.5, 1, 1.5, 2, 2.5, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 16, 20, 24, 32, 40, 48, 56, 64
- Semantic names: xs, sm, md, lg, xl, 2xl, 3xl
- Component sizing (buttons, inputs, icons)
- Container widths (sm: 640px to 2xl: 1536px)
6. Export Formats
Multiple output formats for different use cases:
- JSON: For programmatic consumption
- CSS Variables: For direct CSS integration
- SCSS Variables: For Sass/SCSS projects
- Summary: Human-readable overview
Available Tools
Python Script: design_token_generator.py
Location: scripts/design_token_generator.py
Purpose: Generate complete design system tokens from a single brand color with scientific color theory algorithms.
Usage:
# JSON output (default)
python scripts/design_token_generator.py "#0066CC" modern json
# CSS variables
python scripts/design_token_generator.py "#FF5733" classic css > tokens.css
# SCSS variables
python scripts/design_token_generator.py "#10B981" playful scss > tokens.scss
# Human-readable summary
python scripts/design_token_generator.py "#8B5CF6" modern summary
Parameters:
- Brand Color (hex): Primary brand color (e.g., "#0066CC")
- Style: modern | classic | playful
- Format: json | css | scss | summary
Features:
- HSV-based color scale generation
- Automatic complementary color calculation
- Modular typography scale (Major Third ratio)
- 8pt spacing grid system
- Responsive breakpoint generation
- Multiple shadow styles
- Animation timing functions
- Z-index scale for layering
Output Structure:
{
"meta": {
"version": "1.0.0",
"style": "modern",
"generated": "auto-generated"
},
"colors": { /* comprehensive palette */ },
"typography": { /* type system */ },
"spacing": { /* 8pt grid */ },
"sizing": { /* component sizes */ },
"borders": { /* radius & width */ },
"shadows": { /* elevation */ },
"animation": { /* timing */ },
"breakpoints": { /* responsive */ },
"z-index": { /* layering */ }
}
TypeScript Script: design-token-generator.ts
Location: scripts/design-token-generator.ts
Purpose: Same functionality as Python version with TypeScript type safety and Node.js ecosystem integration.
Usage:
# JSON output
ts-node scripts/design-token-generator.ts --color="#0066CC" --style=modern --format=json
# CSS output
ts-node scripts/design-token-generator.ts --color="#FF5733" --style=classic --format=css
# Tailwind config generation
ts-node scripts/design-token-generator.ts --color="#10B981" --style=modern --format=tailwind
TypeScript Advantages:
- Type-safe token definitions
- Better IDE autocomplete
- Easy integration with build tools
- Native async/await support
- Direct Tailwind config generation
Design System Best Practices
Color System
- Start with Brand: Use primary brand color as foundation
- Test Contrast: Ensure WCAG AA compliance (4.5:1 for text)
- Semantic Meaning: Consistent color usage (green=success, red=error)
- Accessible Palette: Provide sufficient contrast options
- Dark Mode Ready: Generate complementary dark mode tokens
Typography
- Modular Scale: Use mathematical ratios (1.25, 1.333, 1.414)
- Readable Base: Start with 16px base font size
- Line Height: 1.5 for body text, 1.2-1.3 for headings
- Font Loading: Optimize web font performance
- Hierarchy: Clear visual hierarchy through size and weight
Spacing
- 8pt Grid: Base all spacing on 8px multiples
- Consistent Usage: Use same spacing values throughout
- Semantic Names: Use xs, sm, md instead of numbers alone
- Component Spacing: Define padding/margin per component
- Responsive: Adjust spacing at different breakpoints
Components
- Atomic Design: Build from atoms → molecules → organisms
- Composition: Combine simple components into complex ones
- Variants: Define clear size/style variants
- States: Document hover, focus, active, disabled states
- Accessibility: Include ARIA attributes and keyboard navigation
Developer Handoff
- Token Export: Provide tokens in dev-friendly formats
- Documentation: Include usage examples and guidelines
- Code Snippets: Share component implementation code
- Design-Dev Sync: Regular sync meetings
- Version Control: Track design system changes in Git
Integration Examples
Tailwind CSS Configuration
// tailwind.config.js
const tokens = require('./tokens.json');
module.exports = {
theme: {
colors: tokens.colors,
spacing: tokens.spacing,
fontSize: tokens.typography.fontSize,
fontFamily: tokens.typography.fontFamily,
borderRadius: tokens.borders.radius,
boxShadow: tokens.shadows,
}
}
CSS Variables
/* Import generated tokens.css */
@import './tokens.css';
.button {
background-color: var(--primary-500);
color: var(--neutral-50);
padding: var(--spacing-md) var(--spacing-lg);
border-radius: var(--radius-DEFAULT);
box-shadow: var(--shadow-sm);
}
React Component
import tokens from './tokens.json';
const Button = ({ variant = 'primary', size = 'md' }) => ({
backgroundColor: tokens.colors.primary[500],
padding: `${tokens.spacing[size]} ${tokens.spacing[size * 1.5]}`,
borderRadius: tokens.borders.radius.DEFAULT,
});
Context Levels
Level 1 - Minimal (Always Loaded)
- Core design system principles
- Token categories overview
- Basic color theory
- 8pt grid concept
Level 2 - Detailed (Load on Request)
- Complete token generation methodology
- Color scale algorithms
- Typography scale mathematics
- Component sizing patterns
- Export format specifications
Level 3 - Full (Scripts and Examples)
- Working Python and TypeScript scripts
- Sample token outputs
- Integration examples (Tailwind, CSS, React)
- Complete design system templates
Style Comparison
| Feature |
Modern |
Classic |
Playful |
| Font Stack |
Inter, system-ui |
Helvetica, Arial |
Poppins, Roboto |
| Base Radius |
8px |
4px |
16px |
| Shadow Style |
Subtle, layered |
Traditional, simple |
Pronounced, bold |
| Best For |
SaaS, Apps |
Corporate, Formal |
Creative, Consumer |
Integration with Other Skills
Works well with:
- ux-researcher-designer: Use persona insights to inform design decisions
- frontend-specialist: Apply design tokens in component implementation
- accessibility-specialist: Ensure WCAG compliance with color contrast
- testing-fundamentals: Visual regression testing for design consistency
References
Design Systems:
- Material Design (Google)
- Human Interface Guidelines (Apple)
- Lightning Design System (Salesforce)
- Polaris (Shopify)
- Carbon Design System (IBM)
Tools & Frameworks:
- Tailwind CSS
- Styled System
- Theme UI
- Style Dictionary
Color Theory:
- HSV/HSL Color Models
- WCAG Contrast Guidelines
- Color Accessibility Tools
Typography:
- Modular Scale Calculator
- Type Scale (typescale.com)
- Web Font Performance Best Practices
Version History
v1.0.0 - Initial release
- Automated design token generation
- Three style variations (modern, classic, playful)
- Python and TypeScript implementations
- Multiple export formats (JSON, CSS, SCSS)
- 8pt spacing grid system
- Modular typography scale (1.25 ratio)
- HSV-based color generation
- Responsive breakpoints
- Z-index layering system
Maintained by: Primadata Enhanced Toolkit
Source: Based on claude-skills repository by Alireza Rezvani
Last Updated: November 2025
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: ui-design-system-93description: UI design system toolkit for Senior UI Designer including design token generation, component documentation, responsive design calculations, and developer handoff tools. Use for creating design systems, maintaining visual consistency, and facilitating design-dev collaboration. Use when this capability is needed.4---56# UI Design System78Professional toolkit for creating and maintaining scalable design systems with automated token generation and developer handoff.910## Overview11This skill provides comprehensive design system capabilities including programmatic design token generation, color palette creation from brand colors, typography systems, spacing grids, and multi-format exports for seamless design-to-development workflow.1213## When to Use This Skill14- Creating a new design system from scratch15- Generating design tokens from brand colors16- Building consistent component libraries17- Maintaining visual consistency across products18- Facilitating design-to-developer handoff19- Implementing responsive design systems20- Setting up Tailwind CSS configurations2122## Core Capabilities2324### 1. Design Token Generation25Automatically generate comprehensive design token systems:26- **Color Palettes**: Generate 50-900 scales from single brand color27- **Typography**: Modular type scale with font families and weights28- **Spacing**: 8pt grid system with semantic naming29- **Sizing**: Component dimensions and container widths30- **Borders**: Radius and width tokens for different styles31- **Shadows**: Elevation system for depth hierarchy32- **Animation**: Duration and easing tokens33- **Breakpoints**: Responsive design breakpoints34- **Z-Index**: Layering system for overlays and modals3536### 2. Style Variations37Three built-in style systems:38- **Modern**: Inter fonts, subtle shadows, 8px base radius39- **Classic**: Helvetica fonts, traditional shadows, 4px base radius40- **Playful**: Poppins fonts, pronounced shadows, 16px base radius4142### 3. Color System Generation43Sophisticated color palette generation:44- Primary and secondary color scales (10 shades each)45- Complementary color calculation (180° hue rotation)46- Neutral gray scale (9 shades)47- Semantic colors (success, warning, error, info)48- Surface colors (background, foreground, card, overlay)49- Automatic contrast calculation50- WCAG accessibility compliance5152### 4. Typography System53Modular typography scale:54- Base: 16px with 1.25 ratio (Major Third)55- Font families per style (sans, serif, mono)56- Font weights (100-900)57- Line heights (tight to loose)58- Letter spacing (tighter to widest)59- Pre-composed text styles (h1-h6, body, small, caption)6061### 5. Spacing & Sizing628pt grid system:63- Base unit: 8px64- Multipliers: 0, 0.5, 1, 1.5, 2, 2.5, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 16, 20, 24, 32, 40, 48, 56, 6465- Semantic names: xs, sm, md, lg, xl, 2xl, 3xl66- Component sizing (buttons, inputs, icons)67- Container widths (sm: 640px to 2xl: 1536px)6869### 6. Export Formats70Multiple output formats for different use cases:71- **JSON**: For programmatic consumption72- **CSS Variables**: For direct CSS integration73- **SCSS Variables**: For Sass/SCSS projects74- **Summary**: Human-readable overview7576## Available Tools7778### Python Script: design_token_generator.py79**Location:** `scripts/design_token_generator.py`8081**Purpose:** Generate complete design system tokens from a single brand color with scientific color theory algorithms.8283**Usage:**84```bash85# JSON output (default)86python scripts/design_token_generator.py "#0066CC" modern json8788# CSS variables89python scripts/design_token_generator.py "#FF5733" classic css > tokens.css9091# SCSS variables92python scripts/design_token_generator.py "#10B981" playful scss > tokens.scss9394# Human-readable summary95python scripts/design_token_generator.py "#8B5CF6" modern summary96```9798**Parameters:**991. **Brand Color** (hex): Primary brand color (e.g., "#0066CC")1002. **Style**: modern | classic | playful1013. **Format**: json | css | scss | summary102103**Features:**104- HSV-based color scale generation105- Automatic complementary color calculation106- Modular typography scale (Major Third ratio)107- 8pt spacing grid system108- Responsive breakpoint generation109- Multiple shadow styles110- Animation timing functions111- Z-index scale for layering112113**Output Structure:**114```json115{116 "meta": {117 "version": "1.0.0",118 "style": "modern",119 "generated": "auto-generated"120 },121 "colors": { /* comprehensive palette */ },122 "typography": { /* type system */ },123 "spacing": { /* 8pt grid */ },124 "sizing": { /* component sizes */ },125 "borders": { /* radius & width */ },126 "shadows": { /* elevation */ },127 "animation": { /* timing */ },128 "breakpoints": { /* responsive */ },129 "z-index": { /* layering */ }130}131```132133### TypeScript Script: design-token-generator.ts134**Location:** `scripts/design-token-generator.ts`135136**Purpose:** Same functionality as Python version with TypeScript type safety and Node.js ecosystem integration.137138**Usage:**139```bash140# JSON output141ts-node scripts/design-token-generator.ts --color="#0066CC" --style=modern --format=json142143# CSS output144ts-node scripts/design-token-generator.ts --color="#FF5733" --style=classic --format=css145146# Tailwind config generation147ts-node scripts/design-token-generator.ts --color="#10B981" --style=modern --format=tailwind148```149150**TypeScript Advantages:**151- Type-safe token definitions152- Better IDE autocomplete153- Easy integration with build tools154- Native async/await support155- Direct Tailwind config generation156157## Design System Best Practices158159### Color System1601. **Start with Brand**: Use primary brand color as foundation1612. **Test Contrast**: Ensure WCAG AA compliance (4.5:1 for text)1623. **Semantic Meaning**: Consistent color usage (green=success, red=error)1634. **Accessible Palette**: Provide sufficient contrast options1645. **Dark Mode Ready**: Generate complementary dark mode tokens165166### Typography1671. **Modular Scale**: Use mathematical ratios (1.25, 1.333, 1.414)1682. **Readable Base**: Start with 16px base font size1693. **Line Height**: 1.5 for body text, 1.2-1.3 for headings1704. **Font Loading**: Optimize web font performance1715. **Hierarchy**: Clear visual hierarchy through size and weight172173### Spacing1741. **8pt Grid**: Base all spacing on 8px multiples1752. **Consistent Usage**: Use same spacing values throughout1763. **Semantic Names**: Use xs, sm, md instead of numbers alone1774. **Component Spacing**: Define padding/margin per component1785. **Responsive**: Adjust spacing at different breakpoints179180### Components1811. **Atomic Design**: Build from atoms → molecules → organisms1822. **Composition**: Combine simple components into complex ones1833. **Variants**: Define clear size/style variants1844. **States**: Document hover, focus, active, disabled states1855. **Accessibility**: Include ARIA attributes and keyboard navigation186187### Developer Handoff1881. **Token Export**: Provide tokens in dev-friendly formats1892. **Documentation**: Include usage examples and guidelines1903. **Code Snippets**: Share component implementation code1914. **Design-Dev Sync**: Regular sync meetings1925. **Version Control**: Track design system changes in Git193194## Integration Examples195196### Tailwind CSS Configuration197```javascript198// tailwind.config.js199const tokens = require('./tokens.json');200201module.exports = {202 theme: {203 colors: tokens.colors,204 spacing: tokens.spacing,205 fontSize: tokens.typography.fontSize,206 fontFamily: tokens.typography.fontFamily,207 borderRadius: tokens.borders.radius,208 boxShadow: tokens.shadows,209 }210}211```212213### CSS Variables214```css215/* Import generated tokens.css */216@import './tokens.css';217218.button {219 background-color: var(--primary-500);220 color: var(--neutral-50);221 padding: var(--spacing-md) var(--spacing-lg);222 border-radius: var(--radius-DEFAULT);223 box-shadow: var(--shadow-sm);224}225```226227### React Component228```typescript229import tokens from './tokens.json';230231const Button = ({ variant = 'primary', size = 'md' }) => ({232 backgroundColor: tokens.colors.primary[500],233 padding: `${tokens.spacing[size]} ${tokens.spacing[size * 1.5]}`,234 borderRadius: tokens.borders.radius.DEFAULT,235});236```237238## Context Levels239240### Level 1 - Minimal (Always Loaded)241- Core design system principles242- Token categories overview243- Basic color theory244- 8pt grid concept245246### Level 2 - Detailed (Load on Request)247- Complete token generation methodology248- Color scale algorithms249- Typography scale mathematics250- Component sizing patterns251- Export format specifications252253### Level 3 - Full (Scripts and Examples)254- Working Python and TypeScript scripts255- Sample token outputs256- Integration examples (Tailwind, CSS, React)257- Complete design system templates258259## Style Comparison260261| Feature | Modern | Classic | Playful |262|---------|--------|---------|---------|263| Font Stack | Inter, system-ui | Helvetica, Arial | Poppins, Roboto |264| Base Radius | 8px | 4px | 16px |265| Shadow Style | Subtle, layered | Traditional, simple | Pronounced, bold |266| Best For | SaaS, Apps | Corporate, Formal | Creative, Consumer |267268## Integration with Other Skills269270Works well with:271- **ux-researcher-designer**: Use persona insights to inform design decisions272- **frontend-specialist**: Apply design tokens in component implementation273- **accessibility-specialist**: Ensure WCAG compliance with color contrast274- **testing-fundamentals**: Visual regression testing for design consistency275276## References277278**Design Systems:**279- Material Design (Google)280- Human Interface Guidelines (Apple)281- Lightning Design System (Salesforce)282- Polaris (Shopify)283- Carbon Design System (IBM)284285**Tools & Frameworks:**286- Tailwind CSS287- Styled System288- Theme UI289- Style Dictionary290291**Color Theory:**292- HSV/HSL Color Models293- WCAG Contrast Guidelines294- Color Accessibility Tools295296**Typography:**297- Modular Scale Calculator298- Type Scale (typescale.com)299- Web Font Performance Best Practices300301## Version History302303**v1.0.0** - Initial release304- Automated design token generation305- Three style variations (modern, classic, playful)306- Python and TypeScript implementations307- Multiple export formats (JSON, CSS, SCSS)308- 8pt spacing grid system309- Modular typography scale (1.25 ratio)310- HSV-based color generation311- Responsive breakpoints312- Z-index layering system313314---315316**Maintained by:** Primadata Enhanced Toolkit317**Source:** Based on claude-skills repository by Alireza Rezvani318**Last Updated:** November 2025319320---321> Converted and distributed by [TomeVault](https://tomevault.io/claim/primadetaautomation) — claim your Tome and manage your conversions.322<!-- tomevault:4.0:skill_md:2026-04-12 -->