Overview
Design tokens are the single source of truth for design decisions. This skill covers token taxonomy, color scales, typography, spacing systems, dark mode, and implementation via CSS custom properties and Tailwind.
Capabilities
- Define color scales with semantic naming (primary, success, error)
- Build typography scales with consistent line heights and weights
- Create spacing systems based on a base unit (4px or 8px)
- Implement dark mode via token swapping
- Export tokens to CSS custom properties, Tailwind, and Figma
When to Use
Trigger phrases:
"design tokens"
"designing tokens"
"Design token systems — color, typography, spacing, and theme architecture for co"
Starting a new design system from scratch
Inconsistencies in colors, fonts, or spacing across the app
Need to support dark mode or multiple themes
Syncing design decisions between Figma and code
When NOT to Use
- Task is about content strategy, not creation (use strategy skills)
- Task is about content distribution (use distribution skills)
- You need to analyze content performance (use analytics skills)
- Task is about content moderation (use moderation tools)
- You don't have content guidelines
- Task requires domain expertise (consult experts)
Pseudo Code
The design-tokens workflow follows a standard pipeline pattern.
Core flow:
# design-tokens primary flow
input = prepare(raw_data)
result = process(input, config={architecture, color, consistent, design, spacing})
validate(result)
deliver(result)
Error handling:
on error:
log(error_details)
retry_with_backoff(max=3)
if still_failing: alert_and_escalate()
Core Workflow
# design-tokens primary flow
input = prepare(raw_data)
result = process(input, config={architecture, color, consistent, design, spacing})
validate(result)
deliver(result)
Error Handling
on error:
log(error_details)
retry_with_backoff(max=3)
if still_failing: alert_and_escalate()
Token Definition
{
"color": {
"primary": { "50": "#eff6ff", "500": "#3b82f6", "900": "#1e3a8a" },
"success": { "500": "#22c55e" },
"error": { "500": "#ef4444" }
},
"spacing": { "xs": "4px", "sm": "8px", "md": "16px", "lg": "24px", "xl": "32px" },
"fontSize": { "xs": "12px", "sm": "14px", "base": "16px", "lg": "18px", "xl": "24px" }
}
CSS Custom Properties
:root {
--color-primary: var(--color-primary-500);
--color-bg: #ffffff;
--color-text: #171717;
}
[data-theme="dark"] {
--color-bg: #0a0a0a;
--color-text: #fafafa;
}
Common Patterns
- Semantic naming: Use
primary, success, error — not blue-500, green-500
- Scale by 100s: Color shades: 50, 100, 200, ..., 900
- 4px base unit: All spacing multiples of 4px for rhythm
- Dark mode swap: Swap 50↔900, 100↔800, etc.
How to Use
- Define content goal (traffic, engagement, conversion, brand awareness)
- Research target audience pain points and search intent
- Generate content using appropriate AI tools
- Edit and humanize output for authenticity
- Optimize for target platform (SEO, hashtags, format)
- Schedule and distribute across channels
- Measure performance and iterate
Red Flags
- AI-generated content sounds robotic: Always run through humanizer before publishing
- Engagement dropping week-over-week: Content fatigue or algorithm change — vary formats
- Duplicate content across platforms: Adapt content per platform, don't just cross-post
- No content calendar: Sporadic posting kills audience retention
- Ignoring analytics: Content without measurement is just publishing, not marketing
Verification
Process
- Analyze the task requirements
- Apply domain expertise
- Verify output quality
Anti-Rationalization Table
| Rationalization |
Reality |
| "Good enough content works" |
Quality content drives engagement. Mediocre content gets ignored. |
| "I will optimize later" |
SEO and distribution need optimization from the start. |
| "Templates are good enough" |
Templates are a starting point. Custom content outperforms generic. |
Video / Motion Graphics
Design tokens ensure brand consistency across Remotion video compositions. Define brand colors, spacing, and typography tokens once, use across all video scenes. Tokens map directly to CSS custom properties in Remotion components.
1---2name: design-tokens3description: Use when design token systems — color, typography, spacing, and theme4 architecture for consistent design. Use when designing token systems — color, typography,5 spacing, and theme architecture.6domain: content7author: oyi778license: Apache-2.09subdomain: content-creation10tags:11- content-creation12- design13- digital-content14- media15- tokens16version: 1.0.017category: content18metadata:19 source: https://skillmd.com/skills/oyi77/design-tokens20---2122232425## Overview2627Design tokens are the single source of truth for design decisions. This skill covers token taxonomy, color scales, typography, spacing systems, dark mode, and implementation via CSS custom properties and Tailwind.2829## Capabilities3031- Define color scales with semantic naming (primary, success, error)32- Build typography scales with consistent line heights and weights33- Create spacing systems based on a base unit (4px or 8px)34- Implement dark mode via token swapping35- Export tokens to CSS custom properties, Tailwind, and Figma3637## When to Use38**Trigger phrases:**39- "design tokens"40- "designing tokens"41- "Design token systems — color, typography, spacing, and theme architecture for co"424344- Starting a new design system from scratch45- Inconsistencies in colors, fonts, or spacing across the app46- Need to support dark mode or multiple themes47- Syncing design decisions between Figma and code4849## When NOT to Use5051- Task is about content strategy, not creation (use strategy skills)52- Task is about content distribution (use distribution skills)53- You need to analyze content performance (use analytics skills)54- Task is about content moderation (use moderation tools)55- You don't have content guidelines56- Task requires domain expertise (consult experts)575859## Pseudo Code6061The design-tokens workflow follows a standard pipeline pattern.6263Core flow:64```65# design-tokens primary flow66input = prepare(raw_data)67result = process(input, config={architecture, color, consistent, design, spacing})68validate(result)69deliver(result)70```7172Error handling:73```74on error:75 log(error_details)76 retry_with_backoff(max=3)77 if still_failing: alert_and_escalate()78```798081### Core Workflow82```83# design-tokens primary flow84input = prepare(raw_data)85result = process(input, config={architecture, color, consistent, design, spacing})86validate(result)87deliver(result)88```8990### Error Handling91```92on error:93 log(error_details)94 retry_with_backoff(max=3)95 if still_failing: alert_and_escalate()96```979899### Token Definition100```json101{102 "color": {103 "primary": { "50": "#eff6ff", "500": "#3b82f6", "900": "#1e3a8a" },104 "success": { "500": "#22c55e" },105 "error": { "500": "#ef4444" }106 },107 "spacing": { "xs": "4px", "sm": "8px", "md": "16px", "lg": "24px", "xl": "32px" },108 "fontSize": { "xs": "12px", "sm": "14px", "base": "16px", "lg": "18px", "xl": "24px" }109}110```111112### CSS Custom Properties113```css114:root {115 --color-primary: var(--color-primary-500);116 --color-bg: #ffffff;117 --color-text: #171717;118}119[data-theme="dark"] {120 --color-bg: #0a0a0a;121 --color-text: #fafafa;122}123```124125## Common Patterns126127- **Semantic naming**: Use `primary`, `success`, `error` — not `blue-500`, `green-500`128- **Scale by 100s**: Color shades: 50, 100, 200, ..., 900129- **4px base unit**: All spacing multiples of 4px for rhythm130- **Dark mode swap**: Swap 50↔900, 100↔800, etc.131132## How to Use1331341. Define content goal (traffic, engagement, conversion, brand awareness)1352. Research target audience pain points and search intent1363. Generate content using appropriate AI tools1374. Edit and humanize output for authenticity1385. Optimize for target platform (SEO, hashtags, format)1396. Schedule and distribute across channels1407. Measure performance and iterate141142## Red Flags143144- **AI-generated content sounds robotic**: Always run through humanizer before publishing145- **Engagement dropping week-over-week**: Content fatigue or algorithm change — vary formats146- **Duplicate content across platforms**: Adapt content per platform, don't just cross-post147- **No content calendar**: Sporadic posting kills audience retention148- **Ignoring analytics**: Content without measurement is just publishing, not marketing149150## Verification151152- [ ] Skill output matches expected behavior153154## Process1551561. Analyze the task requirements1572. Apply domain expertise1583. Verify output quality159160## Anti-Rationalization Table161162| Rationalization | Reality |163|---|---|164| "Good enough content works" | Quality content drives engagement. Mediocre content gets ignored. |165| "I will optimize later" | SEO and distribution need optimization from the start. |166| "Templates are good enough" | Templates are a starting point. Custom content outperforms generic. |167168## Video / Motion Graphics169170Design tokens ensure brand consistency across [Remotion](../video/remotion/SKILL.md) video compositions. Define brand colors, spacing, and typography tokens once, use across all video scenes. Tokens map directly to CSS custom properties in Remotion components.