design-tokens

Generate design token sets for Tailwind, CSS custom properties, or CSS-in-JS.

1|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/hschne/pi-stuff --skill design-tokens-hschne
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: design-tokens
Source: https://github.com/hschne/pi-stuff/tree/main/skills/design-tokens
Command: npx skills add https://github.com/hschne/pi-stuff --skill design-tokens-hschne

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Starting a new project or design system often leads to inconsistent, hardcoded design values across components, causing visual drift, slow iteration, and extra work when updating visual styles.

Core Features & Use Cases

  • Aesthetic-aligned token generation: Creates full design token sets (colors, spacing, typography, motion, etc.) tailored to a chosen design philosophy like Dieter Rams, Scandinavian design, or Japanese minimalism.
  • Multi-format, stack-adaptive output: Formats tokens for the project's tech stack, including Tailwind config extensions, CSS custom properties files, or CSS-in-JS theme files.
  • Built-in light and dark mode support: Generates intentional, non-inverted light and dark mode palettes that match the chosen aesthetic, with support for both system preference and manual theme toggles. Use case: For example, if you are building a new e-commerce site with a warm, Scandinavian-inspired aesthetic, this skill will generate a complete token system with matching spacing scales, color palettes, and typography ramps that all components can reference instead of hardcoding values.

Quick Start

Use the design-tokens skill to generate a complete design token system for my new personal portfolio project based on Swiss design principles, with light and dark mode support and Tailwind config output.

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 for a Tailwind CSS project?

Generate design tokens for Tailwind by creating a config extension file that replaces hardcoded visual values with a structured token system for colors, spacing, and typography, including light and dark mode palettes.

What is the best way to prevent visual drift in a web design system?

Prevent visual drift in a web design system by implementing a centralized design token system that standardizes colors, typography, and spacing variables, ensuring all components reference consistent values instead of hardcoded styles.

Can I create light and dark mode CSS variables based on a specific aesthetic?

Yes, you can create light and dark mode CSS custom properties tailored to specific design philosophies like Scandinavian or Japanese minimalism, generating intentional, non-inverted palettes that match the chosen aesthetic.

Does design token generation work with CSS-in-JS frameworks?

Yes, design token generation outputs stack-adaptive formats including CSS-in-JS theme files, Tailwind config extensions, and CSS custom properties files, ensuring component consistency across various web project setups.

Why should I use a design token system instead of hardcoded CSS values?

Use a design token system instead of hardcoded CSS values to eliminate visual drift, accelerate component development, and simplify global style updates across your web project.

When do I need to initialize a design token system for my project?

Initialize a design token system during new project setup or design system initialization to establish portable, maintainable aesthetic alignment, generating token sets tailored to your specified design philosophy and tech stack.