design-tokens

Generate math-driven design tokens for type, color, spacing, and dark mode.

178|10|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/dylanfeltus/skills --skill design-tokens-dylanfeltus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: design-tokens
Source: https://github.com/dylanfeltus/skills/tree/main/design-tokens
Command: npx skills add https://github.com/dylanfeltus/skills --skill design-tokens-dylanfeltus

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Token-based design systems often require manual token derivation which is error-prone and inconsistent. This skill generates systematic, math-driven tokens for typography, color, spacing, and dark mode, ensuring scalable, accessible themes across projects.

Core Features & Use Cases

  • Generate type scales, color palettes, spacing scales, and dark mode derivations using deterministic math.
  • Produce CSS custom properties, Tailwind config, and JSON design tokens for rapid integration into design systems.
  • Use in projects ranging from dashboards to marketing sites to enforce accessible contrast and consistent theming.

Quick Start

Set up tokens for a new design system by running a token generation pass using a brand color and base typography settings.

Frequently Asked Questions about design-tokens

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate design tokens that automatically meet WCAG contrast requirements?

To generate design tokens with WCAG-compliant color contrasts, this skill applies mathematical rules to your brand color and base typography. It automatically validates derivations to ensure your color palette meets accessibility standards across light and dark themes.

What is the best way to create a mathematically derived type scale and spacing system?

The best way to create a mathematically derived type scale and spacing system is using deterministic rules. This skill generates comprehensive typographic and spacing tokens, ensuring consistent visual hierarchies and scalable layouts for dashboards or marketing sites.

Can I use these generated design tokens with my Tailwind config and CSS custom properties?

Yes, you can use the generated design tokens with Tailwind config and CSS custom properties. The skill outputs CSS custom properties, Tailwind config files, and JSON tokens for rapid integration directly into your existing design system setup.

How do I derive a dark mode color palette from my existing light theme tokens?

To derive a dark mode color palette from light theme tokens, the skill applies mathematical transformations to your base colors. It enforces WCAG-compliant contrasts and validates derivations to maintain systematic consistency across both themes.

Does this token generation approach work for both complex dashboards and marketing sites?

Yes, this token generation approach works for both complex dashboards and marketing sites. The math-driven tokens ensure accessible contrast and consistent theming regardless of project scale, applying systematic typography, color, and spacing rules universally.