setting-up-charcoal-tailwind

setting-up-charcoal-tailwind is a skill for Claude Code, Codex from pixiv/charcoal. It costs 63 tokens per session (2,241 once invoked), scanned A, original, Apache-2.0.

A setup guide for using Charcoal, pixiv’s React design system, with Tailwind CSS. Tailwind is a system for composing styles from utility classes; this guide connects those classes to Charcoal’s design values and theme styles.

In plain words
What is it for?
Use it when a project combines @charcoal-ui with Tailwind. It covers the preset, light and dark themes, current design tokens and the supported Tailwind configuration.
Why use it?
A Tailwind preset alone does not load Charcoal’s current theme values or enable its newer tokens. The guide prevents a project from using missing styles or the wrong token version.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when a project combines @charcoal-ui with Tailwind. It covers the preset, light and dark themes, current design tokens and the supported Tailwind configuration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pixiv/charcoal/setting-up-charcoal-tailwind
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pixiv/charcoal --skill setting-up-charcoal-tailwind
Clone the repo
git clone --depth 1 https://github.com/pixiv/charcoal

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setting-up-charcoal-tailwind

README.md
[![agentmods](https://agentmods.dev/badge/skills/pixiv/charcoal/setting-up-charcoal-tailwind/github.svg)](https://agentmods.dev/skills/pixiv/charcoal/setting-up-charcoal-tailwind)
Your own site
<a href="https://agentmods.dev/skills/pixiv/charcoal/setting-up-charcoal-tailwind"><img src="https://agentmods.dev/badge/skills/pixiv/charcoal/setting-up-charcoal-tailwind/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for setting-up-charcoal-tailwind

Your own site · 80×15
<a href="https://agentmods.dev/skills/pixiv/charcoal/setting-up-charcoal-tailwind"><img src="https://agentmods.dev/badge/skills/pixiv/charcoal/setting-up-charcoal-tailwind.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,241 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.02241
Opus 5.5 $0.00025 $0.00896
Sonnet 5.5 $0.00013 $0.00448
Haiku 4.5 $0.00006 $0.00224

Measured yesterday against content hash 5a70aa951f64, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

setting-up-charcoal-tailwind scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/setting-up-charcoal-tailwind/SKILL.md · 186 lines

How it starts

The opening of the file, as written. The whole thing — 186 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Setting up charcoal with Tailwind

@charcoal-ui/tailwind-config turns charcoal tokens into a Tailwind preset. This is the actively developed utility route — new Design Token 2.0 features land here first.

Install

npm install --save-dev @charcoal-ui/tailwind-config @charcoal-ui/theme

Peer dependencies: tailwindcss >=1.4.6, postcss >=7.0.32, csstype >=3.0.0. Tailwind v4 support is WIP — v4 works only by pointing @config at a v3-shaped config.

Configure

// tailwind.config.js
const { light, dark } = require('@charcoal-ui/theme')
const { createTailwindConfig } = require('@charcoal-ui/tailwind-config')

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: ['./src/**/*.{js,ts,jsx,tsx}'],
  presets: [
    createTailwindConfig({
      version: 'v3',
      theme: {
        ':root': light,
        '@media (prefers-color-scheme: dark)': dark,
      },
      unstableTokenV2: true, // Design Token 2.0 — omit and you get 1.0
      iconsV2: true,
    }),
  ],
}

createTailwindConfig() options: version ('v1' | 'v2' | 'v3', Tailwind's version — unrelated to charcoal's), theme, cssVariablesV1, unstableTokenV2, iconsV1, iconsV2. A bare default preset is also exported as config.

unstableTokenV2: true needs the theme CSS too

The preset does not define Design Token 2.0 variables. unstable_createTailwindConfigTokenV2() contains no plugin and no addBase() — it only emits class values that reference var(--charcoal-color-*). Something else has to define them.

Two disjoint namespaces are in play:

Defined by Names Example
The preset, when cssVariablesV1 is on (default) --charcoal-<v1 token> --charcoal-background1, --charcoal-text1
@charcoal-ui/theme/css/v2/*.css --charcoal-color-<v2 token> --charcoal-color-container-default

Read the full file on GitHub · 186 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 186 lines · 63 tokens per session scan A 5a70aa951f64

Subscribe to this mod's changes

setting-up-charcoal-tailwind is a skill published in the GitHub repository pixiv/charcoal (376 stars, last pushed yesterday), licensed Apache-2.0. It adds 63 tokens to every session and 2,241 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-26.

Related

Other skills, from other repositories

popular-web-designs

54 real design systems (Stripe, Linear, Vercel) as HTML/CSS.

NousResearch/hermes-agent · 23 tokens

web-prototype

General-purpose desktop web prototype. Single self-contained HTML file built by copying the seed assets/template.html and pasting section layouts from references/layouts.md. Default for any landing / marketing / docs / SaaS page when no more specific skill matches.

nexu-io/open-design · 59 tokens

anti-slop-design

Autonomous Principal Design Technologist. Cures vibe-coded software from AI frontend slop using curated token archetypes and 7-axis quality gating.

sickn33/agentic-awesome-skills · 34 tokens

velar-luxury-real-estate

Use this plugin when the user wants a high-end luxury real-estate / architecture landing page with cinematic scroll choreography: a typewriter preloader that lifts away, a scroll-driven house image that rises from below and scales up while pinning to a dark statement section, a sticky dark stats band with count-up…

nexu-io/open-design · 119 tokens

web-prototype-taste-brutalist

Swiss industrial-print web prototype. Newsprint canvas, monolithic black grotesque, viewport-bleeding numerals, hairline grid dividers, hazard-red accent, ASCII syntax decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Swiss Industrial Print mode).

nexu-io/open-design · 70 tokens

web-prototype-taste-soft

Apple-tier soft web prototype. Silver/cream canvas, double-bezel cards, button-in-button CTAs, generous squircle radii, spring motion, ambient mesh. Distilled from Leonxlnx/taste-skill soft-skill + sections 4–8 of taste-skill.

nexu-io/open-design · 69 tokens