css-tokens

Generate CSS design tokens for colors, spacing, typography, and theming.

3|1|Updated Nov 28, 2025
One-click install
npx skills add https://github.com/iButters/ClaudeCodePlugins --skill css-tokens
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: css-tokens
Source: https://github.com/iButters/ClaudeCodePlugins/tree/main/plugins/ui-kit-generator/skills/css-tokens
Command: npx skills add https://github.com/iButters/ClaudeCodePlugins --skill css-tokens

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides a centralized CSS design token system to standardize colors, spacing, typography, and theming across apps, enabling consistent design language and easy theming (including dark mode).

Core Features & Use Cases

  • Token structure with CSS variables for colors, spacing, typography, radii, shadows, etc.
  • Dark mode tokens for theme switching.
  • Usage patterns: CSS, CSS-in-JS, or CSS modules with var() references.

Quick Start

Define tokens in a tokens.css file (root variables) and apply them throughout components using CSS vars or a CSS-in-JS shim.

Frequently Asked Questions about css-tokens

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

FAQPage Schema
How do I set up CSS design tokens for consistent styling across my project?

Design tokens are centralized variables for colors, spacing, typography, and other UI properties. Define them in a tokens.css file using CSS custom properties (:root), then reference them throughout components with var() syntax to maintain a single source of truth for your design system.

Can I use CSS tokens for dark mode theming?

Yes. Create separate token sets for light and dark modes, then override them using CSS selectors or a ThemeProvider that switches the active token set at runtime. Users can toggle themes without reloading while components automatically adapt via the same var() references.

What should I include in a design token system?

A complete token system covers colors, spacing scales, typography (font sizes, weights, line heights), border radii, shadows, and animation properties. Organize them semantically with clear naming conventions and documentation comments so teams understand purpose and usage across CSS and TypeScript.

How do I integrate design tokens with CSS-in-JS or CSS modules?

Reference tokens using CSS var() in your stylesheets or styled-component definitions. Generate a TypeScript tokens interface to enable type-safe token imports in JavaScript, allowing both CSS and component-level code to consume the same token definitions consistently.

Do design tokens support responsive and animation properties?

Yes. Extend your token structure to include responsive breakpoint tokens and animation timing, easing, and duration values. Use them with media queries and keyframes to create scalable, maintainable responsive layouts and transitions across your UI.

What's the benefit of semantic token naming in a design system?

Semantic naming (e.g., color-primary-hover instead of color-blue-600) decouples tokens from implementation details. When rebrand or update your palette, change one token value and all dependent components update automatically, making maintenance and theming changes straightforward.