/tonic-ui-tokens:tonic-ui-tokensfrom tonic-ui-tokens
Resolves Tonic UI v3 theme-token paths and values using bundled token data, Figma variable snapshots, and reviewed correspondence. For design handoff queries, wildcard lookups, and unconfirmed prototype styles.
Ships in tonic-ui-tokens. 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; scripts run unread.
Use this skill for app-code and Figma prototype questions in an app already using
@tonic-ui/react v3. Match the actual theme inventory or captured variables, report the
evidence and its limits, and leave unavailable design decisions unconfirmed. Token
selection does not require an upgrade or package change.
assets/tokens.json is generated from the Tonic UI v3 theme source and includes public
and private, primitive, semantic and legacy leaves, mode and unit values, and emitted
CSS variables. Its metadata identifies the theme version and source revision.assets/figma-variables/ contains location-redacted snapshots of Tonic One v4
Foundations and Semantic variables, including modes and alias targets. Their
applicability to Tonic UI v3 is unverified. They do not include every prototype or
text style and are not a live view of Figma.assets/token-relations.json is a partial ledger of reviewed variable-to-theme
correspondence. The shipped Tonic UI ledger is empty: all endpoints are unreviewed,
not proven matches or absences. Never transplant v4 reviews as v3 evidence.scripts/lookup-tokens.mjs reads the bundled data offline. It needs no checkout,
installation, Figma connection, credentials or network.Query only: do not capture or regenerate snapshots, change relations or Figma files, edit
theme source, or upgrade packages as a side effect. Never infer identity from matching
names, RGB values, screenshots or codeSyntax alone. A lookup does not prove what a
component renders.
_ segment is private: implemented, but not stable public API. Keep
retained legacy tokens identified as legacy.resolutionStatus separately from variable
correspondence. An unresolved source reference is not a usable resolved value even
when its relation is current. Only current positive reviews provide counterparts.Resolve the command relative to this skill's directory, including in a plugin cache:
node <skill-dir>/scripts/lookup-tokens.mjs --theme-token 'text.primary'
node <skill-dir>/scripts/lookup-tokens.mjs --theme-token '_component.keyboardFocused.outerFocusRing'
node <skill-dir>/scripts/lookup-tokens.mjs --theme-token 'borders["0.5"]'
node <skill-dir>/scripts/lookup-tokens.mjs --theme-token 'colors.text.*'
node <skill-dir>/scripts/lookup-tokens.mjs --theme-token 'colors.**.disabled'
node <skill-dir>/scripts/lookup-tokens.mjs --figma-variable 'semantic:Color/text/primary'
node <skill-dir>/scripts/lookup-tokens.mjs --figma-variable 'Color/text/**'
Supply exactly one --theme-token or --figma-variable selector. The output is
{ meta, results }; an unknown valid selector returns an empty results array and exit
0, not a fallback. Invalid selectors or data fail. There is no free-text, alias or
substring search.
text.primary, decimal
short names such as 0.5, private names, and legacy names such as blue:60.* matches any characters within one segment; an entire unquoted ** segment matches
zero or more complete segments. Thus colors.text.* selects direct leaves, while
colors.text.** also reaches descendants. Quote patterns in a shell.semantic: or
foundations: prefix restricts the library; without a prefix, all loaded libraries
are searched and every match retains its library identity. Wildcards match paths, not
stable keys.Read only the references relevant to the request; combine routes when it crosses them. Links are relative to this skill directory.
| Task | Read |
|---|---|
| Interpret captured variables, reviewed counterparts, modes or freshness | Variable relations |
| Interpret a screenshot or visual description | Screenshot rules |
| Prepare a local handoff for an unconfirmed token, state or attribute | Unmapped token template |
| Choose evidence labels and language for an answer | Language rules |
| Understand captured variable fields, aliases and known gaps | Figma variables README |
The offline snapshot is evidence at its declared revision, not proof of a newer release,
the app's custom theme or the current remote prototype. If the host cannot inspect an
image, say so and request labels or an export while completing reachable lookups.
General component development belongs to tonic-ui-dev; upgrades belong to
tonic-ui-upgrade. Neither is a prerequisite for token selection.
LANGUAGE_RULES.md (opens in a new tab)SCREENSHOT_RULES.md (opens in a new tab)UNMAPPED_TOKEN_TEMPLATE.md (opens in a new tab)assets/figma-variables/README.md (opens in a new tab)assets/token-relations.json (opens in a new tab)assets/tokens.json (opens in a new tab)evals/evals.json (opens in a new tab)references/variable-relations.md (opens in a new tab)scripts/__tests__/live-lookup.test.mjs (opens in a new tab)scripts/__tests__/token-matcher.test.mjs (opens in a new tab)scripts/__tests__/variable-relations.test.mjs (opens in a new tab)scripts/lookup-tokens.mjs (opens in a new tab)scripts/path-pattern.mjs (opens in a new tab)scripts/token-matcher.mjs (opens in a new tab)scripts/variable-relations.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub trendmicro-frontend/tonic-ui --plugin tonic-ui-tokensOther plugins' skills for the same job