技能 编程开发 UI设计令牌管理与同步

UI设计令牌管理与同步

v20260427
ui-tokens
该技能用于管理设计系统中的设计令牌(Design Tokens),确保JSON源文件、CSS变量和深色模式值等所有数据源保持同步。它可以帮助用户安全地列出、添加或更新令牌(如颜色、间距),并将更改自动传播到所有实现文件中,维护系统的一致性和完整性。
获取技能
222 次下载
概览

UI Tokens

Overview

Part of StyleSeed, this skill manages design tokens without letting the source-of-truth files drift apart. It is meant for teams using the Toss seed's JSON token files and CSS implementation together.

When to Use

  • Use when you need to inspect the current token set
  • Use when you want to add a new color, shadow, radius, spacing, or typography token
  • Use when you need to update a token and propagate the change safely
  • Use when the project has both JSON token files and CSS variables that must stay aligned

How It Works

Supported Actions

  • list: show the current tokens in a human-readable form
  • add: introduce a new token and wire it through the implementation
  • update: change an existing token value and audit the downstream usage

Typical Source-of-Truth Split

For the Toss seed:

  • JSON under tokens/
  • CSS variables and theme wiring under css/theme.css
  • typography support in the font and base CSS files

Rules

  • keep JSON and CSS in sync
  • prefer semantic names over descriptive names
  • provide dark-mode support where relevant
  • update the token implementation, not just the source manifest
  • check for direct component usage that might now be stale

Output

Return:

  1. The requested token inventory or change summary
  2. Every file touched
  3. Any affected components or utilities that should be reviewed
  4. Follow-up actions if the new token requires broader adoption

Best Practices

  • Add semantic intent, not one-off brand shades
  • Avoid token sprawl by extending existing scales first
  • Keep naming consistent with the rest of the system
  • Review contrast and accessibility when introducing new colors

Additional Resources

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
信息
Category 编程开发
Name ui-tokens
版本 v20260427
大小 2.57KB
更新时间 2026-04-28
语言