color

Generate color token files from detected codebase palettes in CSS, Tailwind, or JavaScript formats.

4|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/Dragoon0x/dragoon-skills --skill color-dragoon0x
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: color
Source: https://github.com/Dragoon0x/dragoon-skills/tree/main/skills/color
Command: npx skills add https://github.com/Dragoon0x/dragoon-skills --skill color-dragoon0x

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Manually creating and maintaining consistent color token files for a design system is tedious and error-prone, especially when your codebase already contains an existing color palette that needs to be formalized.

Core Features & Use Cases

  • Multi-format output: Generates color token files in CSS variables, Tailwind configuration, or JavaScript module formats to match your project's stack.
  • Semantic role naming: Uses role hints from a prior dragoon scan to assign meaningful names to colors (like foreground, background, accent) instead of generic numeric labels, with numeric fallback for unassigned colors.
  • Use case: After running dragoon scan to map your project's existing colors, use this skill to quickly turn that raw palette into a structured, reusable design token system without manual entry.

Quick Start

Use the color skill to generate a formatted color token file from the palette detected in your recent dragoon scan, and include the --apply flag if you want to write the file directly to your project.

Frequently Asked Questions about color

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

FAQPage Schema
How do I generate color tokens from an existing color palette in my codebase?

You can generate color tokens by scanning your codebase to detect raw palettes and converting them into structured design token files. This skill outputs CSS variables, Tailwind configurations, or JavaScript modules using inferred semantic role names.

What formats can I export my design system color tokens into?

Supported export formats for color tokens include CSS variables, Tailwind configuration files, and JavaScript modules. This multi-format output ensures compatibility with your project's specific frontend technology stack.

How are color values named when converting a raw palette to design tokens?

Colors are named using inferred semantic roles like foreground or background when role hints are available. If no semantic role is detected, the system applies a numeric fallback naming convention for the unassigned colors.

Can I write generated color token files directly to my project directory?

Yes, you can write generated color token files directly to your project by including the apply flag. This bypasses manual copy and paste, directly integrating the structured tokens into your codebase.

Do I need a prior repository scan before generating color tokens?

Yes, a prior repository scan is required to detect your existing color palette and provide semantic role hints. The skill relies on this scan data to infer meaningful names and generate the standardized token files.