Skip to content
Back to skills

Design How Token Mapping

ASecurity

Produce a read-only mapping from hardcoded styling to semantic design tokens with exact, near, ambiguous and missing matches.

  • 50,717 stars
  • 0 votes
  • 1 copy
  • 3 views
  • Added November 19, 2026
ai-agentsgogit

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 19, 2026

npx -y skills add sickn33/agentic-awesome-skills --skill design-how-token-mapping --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Design How Token Mapping?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Design How Token Mapping
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sickn33-design-how-token-mapping-agentic-awesome-skills/badge)](https://www.skillsdirectory.com/skills/sickn33-design-how-token-mapping-agentic-awesome-skills)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "design-how-token-mapping"
description: "Produce a read-only mapping from hardcoded styling to semantic design tokens with exact, near, ambiguous and missing matches."
category: "design"
risk: "safe"
source: "https://github.com/arla6ka/design.how/tree/1ce5304466db2ba47a7a7524603e86df77c702bd/skills/token-mapping"
source_repo: "arla6ka/design.how"
source_type: "community"
license: "MIT"
license_source: "https://github.com/arla6ka/design.how/blob/1ce5304466db2ba47a7a7524603e86df77c702bd/LICENSE"
author: "Arlan Marat"
date_added: "2026-11-19"
---

# Map Styling to Tokens

## When to Use

Use for a page, file or diff that needs a design-token audit. For applying changes, use `design-how-build-design-system`.

## Workflow

1. Locate the token definitions actually used by the project and resolve aliases and theme overrides. Note property, state, context, units and frequency for each literal. Inspect computed styles when declarations alone cannot explain the rendered value.
2. Match by semantic role first, then compare resolved values. Prefer exact matches that hold in all applicable themes. Treat equal colors with incompatible roles as ambiguous. For near matches, report the measured difference and units, using a consistent perceptual color metric where available.
3. Classify each row as exact, near, ambiguous, no token, or intentional exception. Show source location, raw value, candidate token and trade-off. Flag text/surface combinations whose contrast could change. For no token, suggest a role name without modifying the registry.

## Example

On a danger alert, `#ad2139` matches both `--badge-brand` and `--text-danger` in light mode. Check dark mode and prefer the danger role for alert text, recording the rejected candidate.

## Limitations

This is a report. Do not edit files or create tokens. A missing theme or unresolved computed style lowers confidence and must appear in the result.

## Bundled resources

Apply the bundled [mapping rules](references/mapping-rules.md). Use the glossary in the installed `design-how-build-design-system` sibling when available.

## Source

Adapted from [design.how](https://github.com/arla6ka/design.how/tree/1ce5304466db2ba47a7a7524603e86df77c702bd/skills/token-mapping) by Arlan Marat. See [MIT license](LICENSE).

Files in this skill

  • LICENSE1 KB
  • SKILL.md2.2 KB
  • references/mapping-rules.md3.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.