ui-tokens
БесплатноЗапускает вложенные скриптыНе проверенExtract a product's design tokens — colours (light and dark), type families and scale, spacing, radii, shadows and the product's own transitions and keyframes…
от glebis★ 417 звёзд на GitHubОб этом скилле
ui-tokens
A product video looks like the product only if it is built from the product's own values, not from a screenshot's guessed colours. This skill reads them out of the code and checks them against the screens.
Steps
- Find the sources. Grep the repo for
:root,--custom properties,@font-face,fonts.googleapis,transition,@keyframes,animation. Usually one shared CSS file plus inline<style>in the page templates. Tailwind or CSS-in-JS: read the theme config instead and write tokens.json by hand in the same shape. - Extract.
python3 ~/.claude/skills/ui-tokens/scripts/extract.py OUT_DIR FILE.css FILE.html ...writesOUT_DIR/tokens.json(light/dark grouped by kind: color, font, size, radius, height, shadow, other;fontFamilies;spacingPxby use;radiusUse;motion.transitions,motion.keyframes,motion.durationsMs) andOUT_DIR/tokens.ts(T,DARK,MOTION_MS— names with dashes become underscores:--pencil-soft→T.pencil_soft). - Fonts. If the families aren't installed, ask before downloading (OFL fonts from
raw.githubusercontent.com/google/fonts/main/ofl/<name>/) into the video project'sassets/fonts/. - Sheet.
python3 ~/.claude/skills/ui-tokens/scripts/sheet.py OUT_DIR/tokens.json OUT_DIR/token-sheet.png --fonts assets/fonts --title "NAME · design tokens"(1920×1080: base colours with their dark twin in the corner, paired category colours as chips, the type families at their roles, the rem scale in px, radii, spacing bars, the product's own transitions). - Check against the screens. Open one real screenshot next to the sheet. Anything on screen that isn't in the
sheet (a hard-coded hex, a one-off radius) goes into tokens.json by hand with a
"note". - Read the motion. The product's own durations (e.g. 150–400 ms opacity/background) set the floor for the video's UI motion: the video may slow and exaggerate them for reading at 30 fps, but keeps what moves and in what order. Say this in one line in the hand-off.
Output contract (what later skills rely on)
tokens.tsis imported by the ui-motion components: never paste hex values into components.remsizes are converted with the page's root size (readhtml { font-size }); note it in tokens.json if not 16 px.
Установить ui-tokens в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ui-tokens?
Extract a product's design tokens — colours (light and dark), type families and scale, spacing, radii, shadows and the product's own transitions and keyframes — from its code (CSS, HTML <style>, Google Fonts links) and screens, into tokens.json, a tokens.ts that raea components import, and a token sheet PNG. Use before animating or making a video of existing software ("extract the tokens", "what's this app's palette", "token sheet", "make the video in the product's own look"), and as step one of the interface-to-video chain (ui-tokens → user-journeys → ui-motion → raea-animate).
Как установить скилл ui-tokens?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ui-tokens запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic