validating-design-tokens

Detect hard-coded values and enforce design tokens in CSS and component code.

6|2|Updated Jan 18, 2026
One-click install
npx skills add https://github.com/WesleySmits/agent-skills --skill validating-design-tokens
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: validating-design-tokens
Source: https://github.com/WesleySmits/agent-skills/tree/main/.agent/skills/design-token-validator
Command: npx skills add https://github.com/WesleySmits/agent-skills --skill validating-design-tokens

SYSTEM DOCUMENTATION & REQUIREMENTS

## What problem does it solve? Enforces approved design tokens to prevent drift in CSS and components, reducing design debt and ensuring consistency.

## Core Features & Use Cases

  • Token discovery from CSS variables (e.g., --color-*), TS/JS token objects, and Style Dictionary outputs.
  • Hard-coded value detection, violation reporting, and remediation suggestions.
  • Use cases include verifying color, spacing, and typography tokens across large frontend codebases.

Quick Start

Run a scan across your project to identify token violations and generate fix suggestions.

Frequently Asked Questions about validating-design-tokens

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find hard-coded CSS values instead of using design tokens?

To find hard-coded values in CSS, scan your project to detect violations against approved design tokens. This process identifies raw colors, spacing, and typography values, generating reports with severity levels and remediation guidance to replace them with standard variables.

What is design token enforcement and how does it prevent design debt?

Design token enforcement is the process of ensuring components use approved CSS variables and TS/JS token objects instead of raw values. It prevents design debt by catching unauthorized hard-coded colors and spacing during development, maintaining strict visual consistency across large frontend codebases.

Can I validate design tokens from Style Dictionary outputs and TS objects?

Yes, you can validate design tokens from Style Dictionary outputs, CSS variables, and TS/JS token objects. The validation scans these definitions to detect hard-coded values across your frontend project and generates token-based fixes to ensure compliance.

How do I migrate hard-coded spacing and typography to design tokens?

To migrate hard-coded spacing and typography to design tokens, run a project scan to identify violations. The scan reports unauthorized values and generates token-based fixes, providing specific remediation guidance to replace raw values with approved variables.

Does design token linting work with standard CSS variables?

Yes, design token linting works with standard CSS variables like --color-* formats. It scans these definitions alongside TS/JS objects and Style Dictionary outputs to detect hard-coded values and enforce consistent usage across your components.