add-token-category
Installation
SKILL.md
Add a new token category to pharos-tokens
It is rarely necessary — most tokens fit into the five existing categories. Check with a maintainer before starting this flow.
1. Confirm it does not fit an existing category
Before creating a new category, consider:
- animation/transition →
durationandeasingalready live inshadow.tokens.json. - border-width → could go into
radius.tokens.json(or createborder.tokens.json). - opacity → live in
color.tokens.jsonas aliases with/(e.g.oklch(... / 0.5)). - breakpoints → not Pharos tokens — they belong in the consumer (Tailwind config).
If after review it really does need a new category, proceed below.
2. Create the DTCG file
src/<category>.tokens.json: