style-dictionary

Transform design tokens into CSS, SCSS, Swift, and Android XML outputs.

38|3|Updated Dec 29, 2025
One-click install
npx skills add https://github.com/dylantarre/design-system-skills --skill style-dictionary
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: style-dictionary
Source: https://github.com/dylantarre/design-system-skills/tree/main/skills/tools/style-dictionary
Command: npx skills add https://github.com/dylantarre/design-system-skills --skill style-dictionary

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines token-driven design systems by transforming a single source of truth into platform-specific outputs (CSS variables, SCSS, iOS Swift, and Android XML), reducing manual token mapping and cross-platform drift.

Core Features & Use Cases

  • Single source of truth: Centralizes design tokens and generates multiple formats from one source.
  • Multi-platform outputs: Outputs CSS, SCSS, iOS Swift, and Android XML from the same tokens.
  • Guided setup & best practices: Provides clear steps for configuring style-dictionary.config.js and organizing token files for scalable pipelines.

Quick Start

  1. Install dependencies: npm install style-dictionary
  2. Create a tokens/ directory with your JSON token files and a style-dictionary.config.js defining platforms
  3. Build tokens: npm run tokens:build

Frequently Asked Questions about style-dictionary

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

FAQPage Schema
How do I generate CSS variables and iOS Swift tokens from a single source?

You can transform a single source of truth into platform-specific outputs like CSS variables and iOS Swift tokens to reduce manual mapping. This approach centralizes design tokens and generates multiple formats from one source configuration.

What is the best way to structure design tokens for a multi-platform build pipeline?

Structuring design tokens for a multi-platform build pipeline involves creating a tokens directory with JSON files and a configuration file defining platforms. This setup ensures consistent token transformation across web, iOS, and Android environments.

How do I configure style-dictionary.config.js for web and Android XML outputs?

Configuring the build file requires defining your target platforms and output formats within the configuration file. This setup guides the transformation process to output CSS, SCSS, iOS Swift, and Android XML from the same token source.

Does Style Dictionary work for teams scaling design systems across web, iOS, and Android?

Yes, it is built for teams scaling design systems across web, iOS, and Android. It applies to teams requiring consistent tokens across build pipelines, satisfying configurations, token structuring, and multi-format output needs in a unified workflow.

Why does cross-platform design token drift happen and how can I automate token mapping?

Cross-platform design token drift happens when teams manually map tokens across different platforms. You can automate token mapping by transforming a single source of truth into platform-specific outputs, eliminating manual errors and keeping formats synchronized.