design-how-token-mapping
БесплатноБез исполняемых скриптовНе проверенProduce a read-only mapping from hardcoded styling to semantic design tokens with exact, near, ambiguous and missing matches.
от sickn33★ 50 670 звёзд на GitHubОб этом скилле
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
- 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.
- 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.
- 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. Use the glossary in the installed design-how-build-design-system sibling when available.
Source
Adapted from design.how by Arlan Marat. See MIT license.
Установить design-how-token-mapping в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл design-how-token-mapping?
Produce a read-only mapping from hardcoded styling to semantic design tokens with exact, near, ambiguous and missing matches.
Как установить скилл design-how-token-mapping?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл design-how-token-mapping запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic