migrate-design-system

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Skill: Migrate / Interop Design System

Skill:设计系统迁移/互操作

Bridge to or from external design systems via a role-based crosswalk.
通过基于角色的Crosswalk机制实现与外部设计系统的双向桥接。

Steps

步骤

  1. Read
    design-systems/interop-protocol.md
    (Crosswalk Method, the three directions, headless-vs-styled guidance, verification).
  2. Use the curated tables in
    design-systems/crosswalk.md
    for Material 3 / Apple HIG / Fluent 2 / Carbon / shadcn/ui / Radix. For others, derive a mapping with the Crosswalk Method (map by role/intent across 6 axes: color roles, type scale, spacing unit, radius, elevation, motion).
  3. Choose the direction:
    • FROM external → our tokens (adopt their look): re-point
      semantic.*
      .
    • TO external stack (our components on their foundation): theme their primitives with our tokens.
    • Migrate: Audit → Map → Bridge (alias layer) → Verify, screen by screen.
  4. Verify every mapped color pair for contrast (
    scripts/contrast.py
    /
    a11y-audit
    ); confirm all 8 states + dark mode survive the mapping.
  1. 阅读
    design-systems/interop-protocol.md
    (内容包含Crosswalk方法、三种映射方向、无头/样式化组件选型指导、验证方式)。
  2. 针对Material 3 / Apple HIG / Fluent 2 / Carbon / shadcn/ui / Radix,可直接使用
    design-systems/crosswalk.md
    中预先整理的对照表。对于其他系统,使用Crosswalk方法推导映射关系:沿6个维度按角色/意图进行映射,分别为颜色角色、字体层级、间距单位、圆角、高程、动效。
  3. 选择映射方向:
    • 从外部系统到我方token(采用外部系统的外观风格):重新配置
      semantic.*
      的指向。
    • 接入外部技术栈(我方组件基于其基础构建):使用我方token为其基础组件设置主题。
    • 系统迁移:审计 → 映射 → 桥接(别名层) → 验证,逐屏幕推进。
  4. 验证环节:使用
    scripts/contrast.py
    /
    a11y-audit
    检查所有映射颜色对的对比度;确认全部8种状态 + 深色模式在映射后均可正常适配。

Output

输出

A crosswalk table (our token → their token → value note), a bridge plan if migrating, and verified token overrides. Render via
design-code
.
一份Crosswalk映射表(我方token → 对方token → 值说明);若为迁移场景,还将输出桥接计划以及经过验证的token覆盖配置。所有内容通过
design-code
渲染。