migrate-design-system
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSkill: Migrate / Interop Design System
Skill:设计系统迁移/互操作
Bridge to or from external design systems via a role-based crosswalk.
通过基于角色的Crosswalk机制实现与外部设计系统的双向桥接。
Steps
步骤
- Read (Crosswalk Method, the three directions, headless-vs-styled guidance, verification).
design-systems/interop-protocol.md - Use the curated tables in 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).
design-systems/crosswalk.md - 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.
- FROM external → our tokens (adopt their look): re-point
- Verify every mapped color pair for contrast (/
scripts/contrast.py); confirm all 8 states + dark mode survive the mapping.a11y-audit
- 阅读(内容包含Crosswalk方法、三种映射方向、无头/样式化组件选型指导、验证方式)。
design-systems/interop-protocol.md - 针对Material 3 / Apple HIG / Fluent 2 / Carbon / shadcn/ui / Radix,可直接使用中预先整理的对照表。对于其他系统,使用Crosswalk方法推导映射关系:沿6个维度按角色/意图进行映射,分别为颜色角色、字体层级、间距单位、圆角、高程、动效。
design-systems/crosswalk.md - 选择映射方向:
- 从外部系统到我方token(采用外部系统的外观风格):重新配置的指向。
semantic.* - 接入外部技术栈(我方组件基于其基础构建):使用我方token为其基础组件设置主题。
- 系统迁移:审计 → 映射 → 桥接(别名层) → 验证,逐屏幕推进。
- 从外部系统到我方token(采用外部系统的外观风格):重新配置
- 验证环节:使用/
scripts/contrast.py检查所有映射颜色对的对比度;确认全部8种状态 + 深色模式在映射后均可正常适配。a11y-audit
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