list_tokens
List Perron tokens
Perron's design tokens: name, type, CSS custom property, value in each theme (light, dark), the token it aliases, reduced-motion overrides and what it is for. Filter by words in the name, CSS property or description, such as surface warning, and by type, such as color; with no filter it lists the names only.
Inputs
querystringoptional- Words that must all appear in the name or description
typestringoptional- A DTCG type: color, dimension, duration, typography…
dirstringoptional- The project folder to read from, as an absolute path, such as the git worktree you work in; the server's own project by default
list_tokens({ query: "surface warning" })| Token | Light | Dark |
|---|---|---|
| color.surface.warning | orange.100 | orange.900 |
Show the raw answer
{"name":"color.surface.warning","type":"color","cssVar":"--perron-color-surface-warning","description":"Tinted background for a warning message or count","values":{"light":{"css":"#FEF1E4","alias":"palette.orange.100"},"dark":{"css":"#3F280A","alias":"palette.orange.900"}}}