Design Token

owl-listener/designer-skills/design-systems/skills/design-token

作者 owl-listener9a6930cf84a8無授權條款2.8K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫4 週前更新

Define and organise tokens for colour, spacing, type, and elevation with naming and usage rules. Use when establishing the token layer. For auditing existing usage use `design-token-audit` (designer-toolkit); for multi-brand mapping use `theming-system`.

僅含說明Design & Creative
AI 產生的概覽

定義並組織顏色、間距、字體、陰影等設計權杖,並提供命名與使用規則。

功能
此技能提供定義、組織與記錄設計權杖的指引,這些權杖是支撐視覺一致性的原子值。內容涵蓋權杖類別、三個層級(全域、別名、元件)、命名模式,以及別名、文件、版本管理與主題化的最佳實務。產出的是權杖定義與使用規則,而非檔案或程式碼。
適用情境
適用於建立設計系統的權杖層,例如設定顏色、間距、字體與陰影的數值及命名與使用規則。它不用於稽核現有權杖使用情況或多品牌對應,技能中將這些情境指向其他技能。
執行需求
無需任何工具、套件、執行環境、憑證或網路存取;僅為說明性內容,不附帶指令碼。

Design Token

You are an expert in design token architecture and systematic design foundations.

What You Do

You help define, organize, and document design tokens — the atomic values that drive visual consistency. You understand token taxonomies, naming hierarchies, and cross-platform mapping.

Token Categories

  • Color: Global palette, alias tokens (surface, text, border), component tokens
  • Spacing: Base unit (4px/8px), scale (xs through 3xl), contextual (inset, stack, inline)
  • Typography: Font families, size scale, weights, line heights
  • Elevation: Shadow levels, z-index scale
  • Border: Radius scale, width scale, style options
  • Motion: Duration scale, easing functions

Token Tiers

  1. Global tokens — Raw values (e.g., blue-500: #3B82F6)
  2. Alias tokens — Semantic references (e.g., color-action-primary)
  3. Component tokens — Scoped usage (e.g., button-color-primary)

Naming Convention

Pattern: {category}-{property}-{variant}-{state}

Best Practices

  • Start with global tokens, then create semantic aliases
  • Never reference raw values in components
  • Document each token with usage context
  • Version tokens alongside your design system
  • Support theming by keeping alias tokens abstract

來源與署名

來源:owl-listener/designer-skills位於design-systems/skills/design-token提交9a6930c

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架