|
2 | 2 |
|
3 | 3 | This guide provides detailed instructions for migrating your project from one version of the `@metamask/design-tokens` to another. |
4 | 4 |
|
5 | | -## From version 3.0.0 to 4.0.0 |
| 5 | +- [From version 2.1.1 to 3.0.0](#from-version-211-to-300) |
| 6 | +- [From version 3.0.0 to 4.0.0](#from-version-300-to-400) |
6 | 7 |
|
7 | | -## Migration from Version 3.0.0 to 4.0.0 |
| 8 | +## From version 3.0.0 to 4.0.0 |
8 | 9 |
|
9 | 10 | ### Changes to Color Tokens (Breaking Changes) |
10 | 11 |
|
11 | | -In this version, significant updates have been made to color tokens, including modifications and removals. To upgrade to version 4, ensure that the following tokens are not present in your codebase: |
| 12 | +In this version, significant updates have been made to color tokens, including modifications and removals. To upgrade to version 4, ensure that the following tokens have been updated in your codebase: |
| 13 | + |
| 14 | +### Removed |
| 15 | + |
| 16 | +#### CSS |
| 17 | + |
| 18 | +``` |
| 19 | +### Brand colors |
| 20 | +--brand-colors-grey-grey750 |
| 21 | +--brand-colors-violet-violet300 |
| 22 | +--brand-colors-white-white010 |
| 23 | +
|
| 24 | +### Theme colors |
| 25 | +--color-primary-disabled |
| 26 | +--color-secondary-default |
| 27 | +--color-secondary-alternative |
| 28 | +--color-secondary-muted |
| 29 | +--color-secondary-inverse |
| 30 | +--color-secondary-disabled |
| 31 | +--color-error-disabled |
| 32 | +--color-warning-alternative |
| 33 | +--color-warning-disabled |
| 34 | +--color-success-alternative |
| 35 | +--color-success-disabled |
| 36 | +--color-info-alternative |
| 37 | +--color-info-disabled |
| 38 | +--color-network-goerli-default |
| 39 | +--color-network-goerli-inverse |
| 40 | +--color-network-localhost-default |
| 41 | +--color-network-localhost-inverse |
| 42 | +--color-network-sepolia-default |
| 43 | +--color-network-sepolia-inverse |
| 44 | +
|
| 45 | +### Component colors |
| 46 | +--component-button-primary-shadow |
| 47 | +--component-button-danger-shadow |
| 48 | +``` |
| 49 | + |
| 50 | +#### JS |
| 51 | + |
| 52 | +``` |
| 53 | +TBC |
| 54 | +``` |
12 | 55 |
|
13 | | -### Brand Colors |
| 56 | +### Changed |
14 | 57 |
|
15 | | -#### CSS Variables |
| 58 | +#### CSS |
16 | 59 |
|
17 | 60 | ``` |
| 61 | +### Brand colors |
18 | 62 | --brand-colors-grey-grey030 modified to --brand-colors-grey-grey025 |
19 | 63 | --brand-colors-grey-grey040 modified to --brand-colors-grey-grey050 |
20 | | ---brand-colors-grey-grey750 removed |
21 | 64 | --brand-colors-blue-blue000 modified to --brand-colors-blue-blue025 |
22 | 65 | --brand-colors-green-green000 modified to --brand-colors-green-green025 |
23 | 66 | --brand-colors-red-red000 modified to --brand-colors-red-red025 |
24 | 67 | --brand-colors-yellow-yellow000 modified to --brand-colors-yellow-yellow025 |
25 | 68 | --brand-colors-orange-orange000 modified to --brand-colors-orange-orange025 |
26 | | ---brand-colors-violet-violet300 removed |
27 | 69 | --brand-colors-white-white000 modified to --brand-colors-white |
28 | | ---brand-colors-white-white010 removed |
29 | 70 | --brand-colors-black-black000 modified to --brand-colors-black |
30 | | -``` |
31 | | - |
32 | | -### Themed Colors |
33 | | - |
34 | | -#### CSS Variables |
35 | 71 |
|
36 | | -``` |
| 72 | +## Theme colors |
37 | 73 | --color-primary-shadow modified to --color-shadow-primary |
38 | | ---color-primary-disabled removed |
39 | | ---color-secondary-default removed |
40 | | ---color-secondary-alternative removed |
41 | | ---color-secondary-muted removed |
42 | | ---color-secondary-inverse removed |
43 | | ---color-secondary-disabled removed |
44 | 74 | --color-error-shadow modified to --color-shadow-primary |
45 | | ---color-error-disabled removed |
46 | | ---color-warning-alternative removed |
47 | | ---color-warning-disabled removed |
48 | | ---color-success-alternative removed |
49 | | ---color-success-disabled removed |
50 | | ---color-info-alternative removed |
51 | | ---color-info-disabled removed |
52 | | ---color-network-goerli-default removed |
53 | | ---color-network-goerli-inverse removed |
54 | | ---color-network-localhost-default removed |
55 | | ---color-network-localhost-inverse removed |
56 | | ---color-network-sepolia-default removed |
57 | | ---color-network-sepolia-inverse removed |
58 | 75 | ``` |
59 | 76 |
|
60 | | -- [From version 2.1.1 to 3.0.0](#from-version-211-to-300) |
| 77 | +#### JS |
| 78 | + |
| 79 | +``` |
| 80 | +TBC |
| 81 | +``` |
61 | 82 |
|
62 | 83 | ## From version 2.1.1 to 3.0.0 |
63 | 84 |
|
|
0 commit comments