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

Commit 3ee2b4f

Browse files
committed
refactor: simplified deprecated tokens
1 parent 9907b98 commit 3ee2b4f

File tree

7 files changed

+65
-76
lines changed

7 files changed

+65
-76
lines changed

src/css/brand-colors-deprecated.css

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/css/brand-colors.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,15 @@
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;
110121
}

src/css/dark-theme-colors-deprecated.css

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/css/dark-theme-colors.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,31 @@
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);
101128
}

src/css/index.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
@import './brand-colors.css';
2-
@import './brand-colors-deprecated.css';
32
@import './typography.css';
43
@import './shadow.css';
54
@import './light-theme-colors.css';
6-
@import './light-theme-colors-deprecated.css';
75
@import './dark-theme-colors.css';
8-
@import './dark-theme-colors-deprecated.css';

src/css/light-theme-colors-deprecated.css

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/css/light-theme-colors.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,31 @@
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);
102129
}

0 commit comments

Comments
 (0)