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 从公开仓库中收录这些内容。

举报或申请下架