Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

Commit e37ca56

Browse files
docs: updating migrations doc layout
1 parent 05ea5c5 commit e37ca56

File tree

1 file changed

+55
-34
lines changed

1 file changed

+55
-34
lines changed

MIGRATION.md

Lines changed: 55 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,62 +2,83 @@
22

33
This guide provides detailed instructions for migrating your project from one version of the `@metamask/design-tokens` to another.
44

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)
67

7-
## Migration from Version 3.0.0 to 4.0.0
8+
## From version 3.0.0 to 4.0.0
89

910
### Changes to Color Tokens (Breaking Changes)
1011

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+
```
1255

13-
### Brand Colors
56+
### Changed
1457

15-
#### CSS Variables
58+
#### CSS
1659

1760
```
61+
### Brand colors
1862
--brand-colors-grey-grey030 modified to --brand-colors-grey-grey025
1963
--brand-colors-grey-grey040 modified to --brand-colors-grey-grey050
20-
--brand-colors-grey-grey750 removed
2164
--brand-colors-blue-blue000 modified to --brand-colors-blue-blue025
2265
--brand-colors-green-green000 modified to --brand-colors-green-green025
2366
--brand-colors-red-red000 modified to --brand-colors-red-red025
2467
--brand-colors-yellow-yellow000 modified to --brand-colors-yellow-yellow025
2568
--brand-colors-orange-orange000 modified to --brand-colors-orange-orange025
26-
--brand-colors-violet-violet300 removed
2769
--brand-colors-white-white000 modified to --brand-colors-white
28-
--brand-colors-white-white010 removed
2970
--brand-colors-black-black000 modified to --brand-colors-black
30-
```
31-
32-
### Themed Colors
33-
34-
#### CSS Variables
3571
36-
```
72+
## Theme colors
3773
--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
4474
--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
5875
```
5976

60-
- [From version 2.1.1 to 3.0.0](#from-version-211-to-300)
77+
#### JS
78+
79+
```
80+
TBC
81+
```
6182

6283
## From version 2.1.1 to 3.0.0
6384

0 commit comments

Comments
 (0)