Deprecate tokens through a versioned migration contract
A token change is complete only when lifecycle metadata, replacements, consumer migration, compatibility and removal gates agree across platforms.
実践ガイダンス
Keep DTCG-compatible token values and aliases separate from AwesomeDS lifecycle metadata. Every deprecated token must declare its introduction version, deprecation version, replacement or documented no-replacement reason, compatibility window, removal version and owner; removal is blocked until code, design assets and supported platform mappings have migrated.
推奨
- Model global-to-alias-to-semantic relationships explicitly and keep platform-specific mappings reviewable
- Publish introduced, deprecated, replacement, removeAfter and owner metadata in a versioned migration manifest
- Ship a codemod or exact replacement recipe and visual-equivalence fixtures for each renamed or split token
- Inventory token use in source, generated assets, design libraries and supported runtime themes before removal
- Warn on first deprecation, fail new deprecated usage in CI, and fail removal while supported consumers remain
- Document any platform exception with scope, rationale, owner and expiry date
非推奨
- Delete or silently repoint a public token without a migration window
- Encode lifecycle metadata as an invalid extension of the standardized token value shape
- Replace a semantic token with a raw color, dimension or product-specific alias
- Declare migration complete from repository search alone when generated or design-tool consumers exist
- Keep deprecated aliases indefinitely without an owner and scheduled removal
検証契約
Validate all token files against the pinned DTCG schema and the lifecycle manifest; CI rejects raw values where a semantic token exists, new deprecated-token use, missing replacements or owners, and removal with remaining consumers; migration fixtures must preserve light, dark and high-contrast output on every supported platform.
根拠リファレンス
ref.atlassian.design-tokens— Atlassian Design Tokensref.microsoft.fluent-design-tokens— Fluent 2 Design Tokensref.w3c.dtcg-format— DTCG Design Tokens Formatref.w3c.dtcg— Design Tokens Community Group
実装・検証成果物
リンクされた実装はまだありません。