
Setting up charcoal tailwind
Sets up charcoal design tokens and classes in a Tailwind CSS project
Setting up charcoal tailwind is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 380
- Last commit
- License
- Apache-2.0
- Listing updated
Similar skills
About Setting up charcoal tailwind
This skill guides an agent through wiring the @charcoal-ui Tailwind preset into a project. It covers installing the tailwind-config and theme packages, building the Tailwind config with light and dark theme maps, and choosing between Design Token 1.0 and 2.0. It explains the extra CSS imports and the ch-token-v2 class that Token 2.0 needs, since the preset alone does not define those variables.
The skill also warns about side effects of the preset. It replaces Tailwind's default color, spacing and radius scales at the top level of the theme, disables line-height utilities, and does not support the dark: variant. It shows how to restore stock colors through theme.extend and how to inspect the resolved config with resolveConfig to confirm what classes exist.
Expect a Node-based Tailwind project using JavaScript config files. The skill is text-only, with no scripts, and it also notes how to combine the preset with @charcoal-ui/react components.
When your agent uses it
Use before writing or editing code that uses @charcoal-ui with Tailwind, and whenever such a project's charcoal setup is unverified or incomplete. The v2 token route still needs the theme CSS and the .ch-token-v2 opt-in, which the preset does not supply.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (9 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the charcoal plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add pixiv/charcoal
/plugin install charcoal@charcoalOr copy only this skill to ~/.claude/skills/setting-up-charcoal-tailwind:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pixiv/charcoal.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/setting-up-charcoal-tailwind &&
cp -R "$tmp/skills/setting-up-charcoal-tailwind" ~/.claude/skills/setting-up-charcoal-tailwind &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/setting-up-charcoal-tailwind inside it instead.
Copy the skill folder to ~/.agents/skills/setting-up-charcoal-tailwind to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pixiv/charcoal.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/setting-up-charcoal-tailwind &&
cp -R "$tmp/skills/setting-up-charcoal-tailwind" ~/.agents/skills/setting-up-charcoal-tailwind &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/setting-up-charcoal-tailwind inside it instead.
Copy the skill folder to ~/.cursor/skills/setting-up-charcoal-tailwind to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pixiv/charcoal.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/setting-up-charcoal-tailwind &&
cp -R "$tmp/skills/setting-up-charcoal-tailwind" ~/.cursor/skills/setting-up-charcoal-tailwind &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/setting-up-charcoal-tailwind inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/pixiv/charcoal.git --path skills/setting-up-charcoal-tailwindOr copy the folder to ~/.gemini/skills/setting-up-charcoal-tailwind yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/setting-up-charcoal-tailwind:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pixiv/charcoal.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/setting-up-charcoal-tailwind &&
cp -R "$tmp/skills/setting-up-charcoal-tailwind" ~/.copilot/skills/setting-up-charcoal-tailwind &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/setting-up-charcoal-tailwind inside it instead.
Get the folder:
git clone --depth 1 https://github.com/pixiv/charcoal.gitThen copy charcoal/skills/setting-up-charcoal-tailwind into your agent's skills folder as setting-up-charcoal-tailwind. Agents that support SKILL.md read one folder per skill.
What it does
- Preset installation steps
- Lists the npm packages and peer dependency versions needed for the charcoal Tailwind preset.
- Design Token version choice
- Explains how to enable Token 2.0 versus staying on Token 1.0 and what each requires.
- Theme CSS wiring
- Covers importing the v2 light and dark CSS files and applying the ch-token-v2 class to the page.
- Default scale replacement warnings
- Describes how the preset overrides Tailwind's stock colors, spacing and radius and how to restore them.
- Dark theme configuration
- Shows how to map light and dark themes via OS preference or a data-theme attribute.
- Common mistake reference
- Tabulates frequent setup errors with the fix for each.
Good for
- Add charcoal design tokens to an existing Tailwind project
- Fix charcoal colors that disappear after enabling Design Token 2.0
- Restore default Tailwind color classes alongside charcoal tokens
- Set up light and dark themes for a charcoal-based app
- Check which charcoal color classes the Tailwind config generates
Setting up charcoal tailwind FAQ
Why do colors disappear when unstableTokenV2 is enabled?
The preset only emits var() references to --charcoal-color-* variables. Those are defined by the v2 theme CSS, so that CSS must be imported and the ch-token-v2 class added to the html element.
Does the dark theme follow the OS setting for Design Token 2.0?
Not by default. The v2 theme CSS defines dark only under data-theme dark, so the OS preference block in the config does not switch v2 tokens. You either set data-theme from JavaScript or add a bridge rule.
Why are my stock Tailwind classes like bg-red-500 gone?
The preset writes colors, spacing and other scales at the top level of theme, which replaces Tailwind's defaults. You can add them back under theme.extend.
Can I use Tailwind's dark: variant with charcoal?
No. The skill says dark: is unsupported because token names stay the same across themes. Use the theme map instead.
How do I install Setting up charcoal tailwind in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/setting-up-charcoal-tailwind to use it in all your projects, or to .claude/skills/setting-up-charcoal-tailwind in one project. Or install the charcoal plugin, which includes it: /plugin marketplace add pixiv/charcoal, then /plugin install charcoal@charcoal.
Does Setting up charcoal tailwind run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Setting up charcoal tailwind?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Setting up charcoal tailwind?
The closest alternatives to Setting up charcoal tailwind are Setting up charcoal CSS variables, Choosing charcoal styling, Setting up charcoal styled, Choosing charcoal tokens and Design system.
Where this comes from
- Description: from the skill's own SKILL.md.
More from pixiv/charcoal

Guides agents to pick and correctly set up pixiv's charcoal-ui styling routes
- Open source
- 380 GitHub stars
- Developer tools

Guides agents to pick the correct Charcoal design tokens instead of hardcoded values
- Open source
- 380 GitHub stars
- Developer tools

Builds a UI screen from a prepared Figma design pack and checks it against the spec
- Open source
- 380 GitHub stars
- Developer tools

Turns a Figma design or .fig export into structured files an agent can build from
- Open source
- 380 GitHub stars
- Design and media

Sets up charcoal UI components with design tokens loaded as CSS variables
- Open source
- 380 GitHub stars
- Developer tools

Guides wiring charcoal design tokens into an existing styled-components codebase
- Open source
- 380 GitHub stars
- Developer tools

