choosing-charcoal-tokens

choosing-charcoal-tokens is a skill for Claude Code, Codex from pixiv/charcoal. It costs 111 tokens per session (1,297 once invoked), scanned A, original, Apache-2.0.

A reference guide for choosing Charcoal design tokens, which are named values for colors, text, spacing, corners and borders. It explains how to replace raw values such as hex colors and pixel measurements with the correct Charcoal token and CSS variable.

In plain words
What is it for?
Use it while writing or reviewing Charcoal UI code. It helps select tokens for color states, typography, spacing, radius and borders, then convert those token names to usable CSS variables.
Why use it?
Guessing token names or writing literal values can create inconsistent designs or variables that do not exist. The guide ties each visual decision to the appropriate Charcoal reference.

Skill for Claude CodeCodex

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

Good fit Use it while writing or reviewing Charcoal UI code. It helps select tokens for color states, typography, spacing, radius and borders, then convert those token names to usable CSS variables.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pixiv/charcoal/choosing-charcoal-tokens
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 choosing-charcoal-tokens
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 choosing-charcoal-tokens

README.md
[![agentmods](https://agentmods.dev/badge/skills/pixiv/charcoal/choosing-charcoal-tokens/github.svg)](https://agentmods.dev/skills/pixiv/charcoal/choosing-charcoal-tokens)
Your own site
<a href="https://agentmods.dev/skills/pixiv/charcoal/choosing-charcoal-tokens"><img src="https://agentmods.dev/badge/skills/pixiv/charcoal/choosing-charcoal-tokens/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 choosing-charcoal-tokens

Your own site · 80×15
<a href="https://agentmods.dev/skills/pixiv/charcoal/choosing-charcoal-tokens"><img src="https://agentmods.dev/badge/skills/pixiv/charcoal/choosing-charcoal-tokens.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,297 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.00111 $0.01297
Opus 5.5 $0.00044 $0.00519
Sonnet 5.5 $0.00022 $0.00259
Haiku 4.5 $0.00011 $0.00130

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

Security

Grade A, and why

choosing-charcoal-tokens 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/choosing-charcoal-tokens/SKILL.md · 73 lines

How it starts

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

Charcoal のトークンを選ぶ

Charcoal の値は好みで決めない。用途ごとに使うトークンが決まっている。迷ったら推測せず、 下の参照先で用途の表を引く。

原則として、hex・px の直書きをしない。 値はトークン名で書く。

どれを読むか

決めること 参照
背景・文字・アイコン・ボーダーの色、状態(hover/press)、強さ references/color.md
本文か見出しか、Body / Caption / Heading / Paragraph の選択、字間・字幅 references/typography.md
余白、要素間の間隔、コンポーネント内部の padding、タップ領域の大きさ references/spacing.md
角丸の大きさ、円形にするかどうか references/radius.md
線を引くかどうか、太さ、どの色か references/border.md
上の各ガイドラインに無い判断、全体の方針 references/design-philosophy.md

読む前に外さないこと

参照を開かずに書き始める場合でも、次は守る。

  • 文字色に #000000 を使わない。 既定は text.default。
  • プライマリーカラーは重要アクションと誘導にだけ使う。 目立たせたいという理由で使わない。
  • 警告色はその状態を示すときだけ使う。 強調の手段にしない。
  • ボーダーは、無いと理解を妨げるときだけ引く。 まず余白か背景色の差で足りないか試す。 区切り線の既定は border.secondary。
  • 余白はレイアウトトークンから選ぶ。 トークンに無い数値を作らない。迷ったら layout.30。
  • 本文の基準は Body(body.Regular)。 テキストスタイルは 4 種類しかない。5 種類目を作らない。
  • 派手なグラデーション、過剰な線、過剰な装飾を足さない。 コンテンツより UI が目立たない。

トークン名を CSS 変数に直す

ガイドラインはトークンを layout.30 のように書く。CSS 変数の名前はそれとは違う。 推測すると --charcoal-layout-30 のような存在しない名前になり、値は当たらない。

ガイドライン CSS 変数
layout.30 --charcoal-space-layout-30
target.m --charcoal-space-target-m
space.30 --charcoal-space-30
text.default --charcoal-color-text-default
container.primary.default --charcoal-color-container-primary-default
radius.m --charcoal-radius-m
border-width.m --charcoal-border-width-m
Body --charcoal-text-font-size-body ほか
heading.M --charcoal-text-font-size-heading-m ほか
caption.S --charcoal-text-font-size-caption-s ほか

Read the full file on GitHub · 73 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 73 lines · 111 tokens per session scan A ebcee3467608

Subscribe to this mod's changes

choosing-charcoal-tokens is a skill published in the GitHub repository pixiv/charcoal (376 stars, last pushed yesterday), licensed Apache-2.0. It adds 111 tokens to every session and 1,297 once invoked, about $0.0004 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