design-system

Generate CSS variables from JSON token definitions for brand compliance.

1|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/docaohieu2808/claude-skills --skill design-system-docaohieu2808
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: design-system
Source: https://github.com/docaohieu2808/claude-skills/tree/main/design-system
Command: npx skills add https://github.com/docaohieu2808/claude-skills --skill design-system-docaohieu2808

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and templates (resource) components.

What problem does it solve?

This Skill streamlines UI development by enforcing a consistent design language through a robust token architecture, ensuring brand compliance and efficient design-to-code handoff.

Core Features & Use Cases

  • Token Architecture: Manages primitive, semantic, and component tokens for scalable design systems.
  • CSS Variable Generation: Automates the creation of CSS variables from token definitions.
  • Brand Compliance: Ensures all UI elements adhere to brand guidelines through tokenized values.
  • Use Case: A frontend developer needs to implement a new button component that strictly follows the company's brand guidelines for colors, spacing, and typography. They can use this Skill to generate the necessary CSS variables and ensure the component is built using the defined tokens.

Quick Start

Generate CSS tokens from your tokens.json configuration file by running node scripts/generate-tokens.cjs --config tokens.json -o tokens.css.

Frequently Asked Questions about design-system

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

FAQPage Schema
How do I generate CSS variables from design tokens for frontend UI development?

You can generate CSS variables from design tokens by running the token generation script against a JSON configuration file. This process outputs a CSS file containing the variables needed for consistent UI development.

What is a three-layer design token architecture for brand guidelines?

A three-layer design token architecture separates tokens into primitive, semantic, and component levels. This structure manages foundational values, contextual meanings, and specific component properties to ensure scalable brand compliance.

How do I integrate design tokens with Tailwind CSS for UI components?

You can integrate design tokens with Tailwind CSS by generating CSS variables from your token definitions and configuring Tailwind to reference these variables. This ensures your UI components strictly adhere to brand guidelines.

Can I validate UI components against hardcoded design token values?

Yes, the system validates UI components against hardcoded values to ensure brand compliance. It checks that your frontend implementation strictly uses the generated CSS variables instead of deviating from the defined design tokens.

Does this design token system require any external dependencies to manage brand compliance?

No external dependencies are required to manage brand compliance with this design token system. It operates independently using internal scripts, templates, and references to automate token generation and validation.

What is the best way to automate CSS variable generation from JSON design tokens?

The best way to automate CSS variable generation from JSON design tokens is using a dedicated Node.js script. Executing this script with your JSON config file directly outputs the compliant CSS variables for your UI components.