pixelcraft-tokens
Installation
SKILL.md
Pixelcraft tokens
Tokens are design decisions in portable form. They encode hierarchy and semantic intent; they are not a dump of raw constants.
Reference and tools
- Read references/format.md when authoring DTCG 2025.10 structure,
$extends/$root/$deprecated, references, or DTCG Resolver (*.resolver.json) modes and themes. - Read references/theme-presets.md when designing light/dark/high-contrast modes,
light-dark(),prefers-reduced-transparency, forced-colors behavior, anti-FOUC theme initialization, or DTCG mode overrides. - Read references/state-tokens.md whenever defining interactive control states or validating state coverage across modes.
- Read references/governance.md before renaming, removing, versioning, deprecating (
$deprecated), or meaningfully redefining tokens. - Read references/adoption.md when migrating consumers, inventorying hardcoded values, or improving documentation/usage of an existing system.
- Read references/token-tooling.md when setting up Terrazzo, Style Dictionary v4, Tokens Studio transforms, Figma Variables, Figma MCP Server, or Figma Code Connect mappings.
- Use assets/tokens.example.json as the canonical small example and assets/tokens.modes.example.json for mode overrides.
- Run
node scripts/export-tokens.mjs --helpfor exporter usage. The exporter supports all 19 formats:css,tailwind,scss,ts,swift,kotlin,android-xml,dart,python,qt,textual,xaml,rust,go-lipgloss,godot,unity-uss,slint,gtk4, andtypst.