Token Intent Validator
Figma plugin that validates semantic token usage based on intent, not just appearance. Catches raw hex colors, primitive tokens in components, and intent mismatches.
What It Does
The Token Intent Validator goes beyond simple token checking. It understands the intent behind token usage and flags mismatches that other tools miss.

Validation Rules
1. No Raw Colors
Error when raw hex values like #FF0000 are used instead of tokens.
2. No Primitives in Components
Error when primitive tokens (e.g., blue.500) are used directly in components instead of semantic tokens.
3. Status Color Misuse
Warning when status colors (danger, success) are used in non-status contexts.
4. Intent Mismatch
Warning when a token’s intent doesn’t match the property it’s applied to (e.g., a background token used for border).
5. Context Appropriateness
Info about unusual token usage based on component context (button, card, alert, etc.).
6. State on Static
Warning when interactive state tokens (hover, focus) are applied to static elements.
Supported Token Patterns
- Semantic:
color.background.primary,color/foreground/danger - Component:
button.background.primary - Primitive:
blue.500,gray-dark
Installation
- Clone the repository
- In Figma: Plugins > Development > Import plugin from manifest
- Select
manifest.jsonfrom the project folder - Run from Plugins > Development > Token Intent Validator
The guides alone saved me a full day of work every sprint.
- All guides, prompts, and templates
- Starter kits and templates
- New content every week
- Priority support