Lint token names
lint_namingChecks proposed design token names against the category.role.variant[.state] grammar, returning violations and a corrected name when derivable. Use before proposing a token.
Instructions
Check proposed token names against the naming grammar category.role.variant[.state]: lowercase kebab segments, known category, intent words instead of CSS properties (inset, not padding), state last, no brand or mode in the name. Returns violations and a corrected name when one can be derived. Call it before proposing a token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| names | Yes | Proposed token names as dot paths, for example ['color.fg.subtle', 'spacing.padding.md'] |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| results | Yes |