AGENT SKILL

m-tokens

Generate a complete design token set from the current codebase. Extracts colors, type, spacing, shadows, radii and outputs as CSS variables, Tailwind, SCSS, or JSON.

License 许可
Apache-2.0
所属仓库
Dragoon0x/meridian
最近更新
2026-03-21
Stars
★ 1
Forks
0

01 前言 Front Matter

name
m-tokens
description
Generate a complete design token set from the current codebase. Extracts colors, type, spacing, shadows, radii and outputs as CSS variables, Tailwind, SCSS, or JSON.
user-invokable
true

03 SKILL.md 正文

/m-tokens — Generate Tokens

Analyze the codebase and extract a token system:\n\n1. Discover all color values, group similar ones, generate palette\n2. Detect type scale ratio, output scale tokens\n3. Map spacing values to nearest 4px grid, output scale\n4. Extract shadow patterns, normalize to elevation system\n5. Map radii to a scale\n\nOutput in 4 formats: CSS custom properties, Tailwind config, SCSS variables, W3C Design Tokens JSON.

04 同仓库更多 Skills