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

Commit e05e0d9

Browse files
committed
refactor: removed deprecated colors and updated migration doc
1 parent 3ee2b4f commit e05e0d9

File tree

4 files changed

+1
-164
lines changed

4 files changed

+1
-164
lines changed

MIGRATION.md

Lines changed: 1 addition & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -8,127 +8,29 @@ This guide provides detailed instructions for migrating your project from one ve
88

99
### Changes to Color Tokens (Breaking Changes)
1010

11-
In this version, significant updates have been made to color tokens, including additions, modifications, and removals. To upgrade to version 4, ensure that the following tokens are not present in your codebase:
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:
1212

1313
### Brand Colors
1414

15-
- grey-030 modified to grey-025
16-
- grey-040 modified to grey-050
17-
- grey-750 removed
18-
- grey-1000 added
19-
- blue-000 modified to blue-025
20-
- blue-050 added
21-
- green-000 modified to green-025
22-
- green-050 added
23-
- red-000 modified to red-025
24-
- red-050 added
25-
- yellow-000 modified to yellow-025
26-
- yellow-050 added
27-
- yellow-700 added
28-
- yellow-800 added
29-
- yellow-900 added
30-
- orange-000 modified to orange-025
31-
- orange-050 added
32-
- purple-025 added
33-
- purple-050 added
34-
- purple-100 added
35-
- purple-200 added
36-
- purple-300 added
37-
- purple-400 added
38-
- purple-600 added
39-
- purple-700 added
40-
- purple-800 added
41-
- purple-900 added
42-
- violet-300 removed
43-
- lime-025 added
44-
- lime-050 added
45-
- lime-100 added
46-
- lime-200 added
47-
- lime-300 added
48-
- lime-400 added
49-
- lime-500 added
50-
- lime-600 added
51-
- lime-700 added
52-
- lime-800 added
53-
- lime-900 added
54-
- white-000 modified to white
55-
- white-010 removed
56-
- black-000 modified to black
57-
5815
#### CSS Variables
5916

6017
```
6118
--brand-colors-grey-grey030 modified to --brand-colors-grey-grey025
6219
--brand-colors-grey-grey040 modified to --brand-colors-grey-grey050
6320
--brand-colors-grey-grey750 removed
64-
--brand-colors-grey-grey1000 added
6521
--brand-colors-blue-blue000 modified to --brand-colors-blue-blue025
66-
--brand-colors-blue-blue050 added
6722
--brand-colors-green-green000 modified to --brand-colors-green-green025
68-
--brand-colors-green-green050 added
6923
--brand-colors-red-red000 modified to --brand-colors-red-red025
70-
--brand-colors-red-red050 added
7124
--brand-colors-yellow-yellow000 modified to --brand-colors-yellow-yellow025
72-
--brand-colors-yellow-yellow050 added
73-
--brand-colors-yellow-yellow700 added
74-
--brand-colors-yellow-yellow800 added
75-
--brand-colors-yellow-yellow900 added
7625
--brand-colors-orange-orange000 modified to --brand-colors-orange-orange025
77-
--brand-colors-orange-orange050 added
78-
--brand-colors-purple-purple025 added
79-
--brand-colors-purple-purple050 added
80-
--brand-colors-purple-purple100 added
81-
--brand-colors-purple-purple200 added
82-
--brand-colors-purple-purple300 added
83-
--brand-colors-purple-purple400 added
84-
--brand-colors-purple-purple600 added
85-
--brand-colors-purple-purple700 added
86-
--brand-colors-purple-purple800 added
87-
--brand-colors-purple-purple900 added
8826
--brand-colors-violet-violet300 removed
89-
--brand-colors-lime-lime025 added
90-
--brand-colors-lime-lime050 added
91-
--brand-colors-lime-lime100 added
92-
--brand-colors-lime-lime200 added
93-
--brand-colors-lime-lime300 added
94-
--brand-colors-lime-lime400 added
95-
--brand-colors-lime-lime500 added
96-
--brand-colors-lime-lime600 added
97-
--brand-colors-lime-lime700 added
98-
--brand-colors-lime-lime800 added
99-
--brand-colors-lime-lime900 added
10027
--brand-colors-white-white000 modified to --brand-colors-white
10128
--brand-colors-white-white010 removed
10229
--brand-colors-black-black000 modified to --brand-colors-black
10330
```
10431

10532
### Themed Colors
10633

107-
- overlay-inverse removed
108-
- primary-shadow modified to shadow-primary
109-
- primary-disabled removed
110-
- secondary-default removed
111-
- secondary-alternative removed
112-
- secondary-muted removed
113-
- secondary-inverse removed
114-
- secondary-disabled removed
115-
- error-shadow modified to shadow-primary
116-
- error-disabled removed
117-
- warning-alternative removed
118-
- warning-disabled removed
119-
- success-alternative removed
120-
- success-disabled removed
121-
- info-alternative removed
122-
- info-disabled removed
123-
- network-goerli-default removed
124-
- network-goerli-inverse removed
125-
- network-localhost-default removed
126-
- network-localhost-inverse removed
127-
- network-sepolia-default removed
128-
- network-sepolia-inverse removed
129-
- component-button-primary-shadow removed
130-
- component-button-danger-shadow removed
131-
13234
#### CSS Tokens
13335

13436
```

src/css/brand-colors.css

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,4 @@
107107
/* White and Black */
108108
--brand-colors-white: #ffffff;
109109
--brand-colors-black: #000000;
110-
/* Deprecated - To be removed */
111-
--brand-colors-grey-grey030: #fafbfc;
112-
--brand-colors-grey-grey040: #f2f4f6;
113-
--brand-colors-grey-grey750: #2e3339;
114-
--brand-colors-blue-blue000: #eaf6ff;
115-
--brand-colors-green-green000: #f3fcf5;
116-
--brand-colors-red-red000: #fcf2f3;
117-
--brand-colors-yellow-yellow000: #fffdf8;
118-
--brand-colors-orange-orange000: #fef5ef;
119-
--brand-colors-violet-violet300: #cfb5f0;
120-
--brand-colors-white-white010: #fcfcfc;
121110
}

src/css/dark-theme-colors.css

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -98,31 +98,4 @@
9898
--color-shadow-primary: #43aefc33;
9999
/* For critical/danger drop shadow color. */
100100
--color-shadow-error: #ff758466;
101-
/* Deprecated - To be removed */
102-
--color-overlay-inverse: var(--brand-colors-white-white010);
103-
--color-primary-disabled: #1098fc80;
104-
--color-primary-shadow: #0376c933;
105-
--color-secondary-default: var(--brand-colors-orange-orange400);
106-
--color-secondary-alternative: var(--brand-colors-orange-orange300);
107-
--color-secondary-muted: #f8883b26;
108-
--color-secondary-inverse: var(--brand-colors-grey-grey900);
109-
--color-secondary-disabled: #f8883b80;
110-
--color-error-disabled: #d7384780;
111-
--color-error-shadow: #ff526366;
112-
--color-warning-alternative: var(--brand-colors-yellow-yellow400);
113-
--color-warning-disabled: #ffd33d80;
114-
--color-success-alternative: var(--brand-colors-green-green400);
115-
--color-success-disabled: #28a74580;
116-
--color-info-alternative: var(--brand-colors-blue-blue300);
117-
--color-info-disabled: #0376c980;
118-
--color-network-goerli-default: var(--brand-colors-blue-blue400);
119-
--color-network-goerli-inverse: var(--brand-colors-white-white010);
120-
--color-network-localhost-default: var(--brand-colors-grey-grey200);
121-
--color-network-localhost-inverse: var(--brand-colors-white-white010);
122-
--color-network-sepolia-default: var(--brand-colors-violet-violet300);
123-
--color-network-sepolia-inverse: var(--brand-colors-white-white010);
124-
--component-button-primary-shadow: var(--shadow-size-sm)
125-
var(--color-primary-shadow);
126-
--component-button-danger-shadow: var(--shadow-size-sm)
127-
var(--color-error-shadow);
128101
}

src/css/light-theme-colors.css

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -99,31 +99,4 @@
9999
--color-shadow-primary: #0376c933;
100100
/* For critical/danger drop shadow color. */
101101
--color-shadow-error: #ca354266;
102-
/* Deprecated - To be removed */
103-
--color-overlay-inverse: var(--brand-colors-white-white010);
104-
--color-primary-disabled: #0376c980;
105-
--color-primary-shadow: #0376c933;
106-
--color-secondary-default: var(--brand-colors-orange-orange500);
107-
--color-secondary-alternative: var(--brand-colors-orange-orange600);
108-
--color-secondary-muted: #f66a0a19;
109-
--color-secondary-inverse: var(--brand-colors-white-white000);
110-
--color-secondary-disabled: #f66a0a80;
111-
--color-error-disabled: #d7384780;
112-
--color-error-shadow: #d7384766;
113-
--color-warning-alternative: var(--brand-colors-yellow-yellow600);
114-
--color-warning-disabled: #ffd33d80;
115-
--color-success-alternative: var(--brand-colors-green-green500);
116-
--color-success-disabled: #28a74580;
117-
--color-info-alternative: var(--brand-colors-blue-blue600);
118-
--color-info-disabled: #0376c980;
119-
--color-network-goerli-default: var(--brand-colors-blue-blue400);
120-
--color-network-goerli-inverse: var(--brand-colors-white-white010);
121-
--color-network-localhost-default: var(--brand-colors-grey-grey200);
122-
--color-network-localhost-inverse: var(--brand-colors-white-white010);
123-
--color-network-sepolia-default: var(--brand-colors-violet-violet300);
124-
--color-network-sepolia-inverse: var(--brand-colors-white-white010);
125-
--component-button-primary-shadow: var(--shadow-size-sm)
126-
var(--color-primary-shadow);
127-
--component-button-danger-shadow: var(--shadow-size-sm)
128-
var(--color-error-shadow);
129102
}

0 commit comments

Comments
 (0)