Guides selection of @charcoal-ui design tokens for colors, typography, spacing, radius, and borders. Prevents hardcoded hex/px values by prescribing the correct token for each use case.
Ships in charcoal. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.Regular)。 テキストスタイルは 4 種類しかない。5 種類目を作らない。ガイドラインはトークンを 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 ほか |
規則は --charcoal-<カテゴリ>-<キーを - でつないだもの>。色は color、余白は
space(layout と target はその下)、角丸は radius、線の太さは border-width、
文字は text。
テキストスタイルは font-size と line-height の 2 本で指定する。 1 本で済ませない。
スタイル名は小文字にしてつなぐ(heading.M → heading-m、caption.S → caption-s)。
px は書かない。
確証がなければ node_modules/@charcoal-ui/theme/dist/css/v2/light.css
で名前を確かめる。無い名前は書かない。
references/design-philosophy.md の原則で決める。What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/choosing-charcoal-stylingUse before writing or editing any code that imports @charcoal-ui, and whenever a project's charcoal setup is unverified or incomplete. Decides between the CSS variables, Tailwind and styled-components routes, and names the setup steps that are silently missing in most projects./implement-figma-designUse when building a screen from a prepared Figma design pack — a design.md, a spec.json and an assets/ directory produced by prepare-figma-design — and when checking that what you built matches it. Needs no Figma access, no token and no Dev Mode seat. If there is no pack yet, prepare-figma-design makes one from a figma.com link./prepare-figma-designUse when you have a figma.com link or a local .fig export, and someone needs to build that design — including when you will build it yourself. One command turns it into the design's structure, its materials named as your own design tokens, the text of every node and the bitmaps it uses, as three files to commit. No Dev Mode seat: a read-only personal access token, or no credential at all from a .fig. Hand those files to implement-figma-design, which needs no Figma access./setting-up-charcoal-css-variablesUse before writing or editing any code that imports @charcoal-ui/react, and whenever a project's charcoal setup is unverified, incomplete or being finished. Charcoal components render completely unstyled unless BOTH @charcoal-ui/theme/css/v2/light.css is imported AND the .ch-token-v2 class is on <html>; importing dist/index.css alone, or adding the stylesheet without the class, silently produces correct geometry with no colors at all./setting-up-charcoal-styledUse before writing or editing code that uses @charcoal-ui with styled-components, TokenInjector, createTheme or addThemeUtils, and whenever such a project's charcoal setup is unverified or incomplete./setting-up-charcoal-tailwindUse 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./charcoal:choosing-charcoal-tokensfrom charcoal
npx claudepluginhub pixiv/charcoal --plugin charcoalOther plugins' skills for the same job