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

Commit 4c34c83

Browse files
authored
added sepolia test network colors (#243)
* added sepolia test network colors * fixed linting issue * fixed default typo
1 parent f12d608 commit 4c34c83

File tree

7 files changed

+77
-1
lines changed

7 files changed

+77
-1
lines changed

src/css/design-tokens.css

+3
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
--brand-colors-red-red800: #64141c;
6363
--brand-colors-red-red900: #3a0c10;
6464
--brand-colors-purple-purple500: #8b45b6;
65+
--brand-colors-violet-violet300: #CFB5F0;
6566
--brand-colors-yellow-yellow000: #fffdf8;
6667
--brand-colors-yellow-yellow100: #fefcde;
6768
--brand-colors-yellow-yellow200: #fff2c5;
@@ -295,6 +296,8 @@
295296
--color-network-goerli-inverse: var(--brand-colors-white-white010);
296297
--color-network-localhost-default: var(--brand-colors-grey-grey200);
297298
--color-network-localhost-inverse: var(--brand-colors-white-white010);
299+
--color-network-sepolia-default: var(--brand-colors-violet-violet300);
300+
--color-network-sepolia-inverse: var(--brand-colors-white-white010);
298301
--color-flask-default: var(--brand-colors-purple-purple500);
299302
--color-flask-inverse: var(--brand-colors-white-white010);
300303

src/figma/tokens.json

+31
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,13 @@
297297
"type": "color"
298298
}
299299
},
300+
"violet": {
301+
"violet300": {
302+
"value": "#CFB5F0",
303+
"description": "(HEX: #CFB5F0)",
304+
"type": "color"
305+
}
306+
},
300307
"yellow": {
301308
"yellow000": {
302309
"value": "#FFFDF8",
@@ -1017,6 +1024,18 @@
10171024
"description": "(white010: #FCFCFC) For elements used on top of networks/localhost/default. Used for text, icon or border",
10181025
"type": "color"
10191026
}
1027+
},
1028+
"sepolia": {
1029+
"default": {
1030+
"value": "#CFB5F0",
1031+
"description": "(violet300: #CFB5F0) For sepolia test network",
1032+
"type": "color"
1033+
},
1034+
"inverse": {
1035+
"value": "#FCFCFC",
1036+
"description": "(white010: #FCFCFC) For elements used on top of networks/sepolia/default. Used for text, icon or border",
1037+
"type": "color"
1038+
}
10201039
}
10211040
},
10221041
"flask": {
@@ -1390,6 +1409,18 @@
13901409
"description": "(white010: #FCFCFC) For elements used on top of networks/localhost/default. Used for text, icon or border",
13911410
"type": "color"
13921411
}
1412+
},
1413+
"sepolia": {
1414+
"default": {
1415+
"value": "#CFB5F0",
1416+
"description": "(violet300: #CFB5F0) For sepolia test network",
1417+
"type": "color"
1418+
},
1419+
"inverse": {
1420+
"value": "#FCFCFC",
1421+
"description": "(white010: #FCFCFC) For elements used on top of networks/sepolia/default. Used for text, icon or border",
1422+
"type": "color"
1423+
}
13931424
}
13941425
},
13951426
"flask": {

src/js/themes/darkTheme/colors.test.ts

+12
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,18 @@ describe('Dark Theme Colors', () => {
304304
);
305305
});
306306

307+
it('js tokens for networks.sepolia.default matches figma tokens networks.sepolia.default', () => {
308+
expect(importableColors.networks.sepolia.default).toStrictEqual(
309+
designTokens.dark.colors.networks.sepolia.default.value,
310+
);
311+
});
312+
313+
it('js tokens for networks.sepolia.inverse matches figma tokens networks.sepolia.inverse', () => {
314+
expect(importableColors.networks.sepolia.inverse).toStrictEqual(
315+
designTokens.dark.colors.networks.sepolia.inverse.value,
316+
);
317+
});
318+
307319
it('js tokens for flask.default matches figma tokens flask.default', () => {
308320
expect(importableColors.flask.default).toStrictEqual(
309321
designTokens.dark.colors.flask.default.value,

src/js/themes/darkTheme/colors.ts

+4
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ export const colors: ThemeColors = {
8888
default: '#BBC0C5',
8989
inverse: '#FCFCFC',
9090
},
91+
sepolia: {
92+
default: '#CFB5F0',
93+
inverse: '#FCFCFC',
94+
},
9195
},
9296
flask: {
9397
default: '#8B45B6',

src/js/themes/lightTheme/colors.test.ts

+12
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,18 @@ describe('Light Theme Colors', () => {
304304
);
305305
});
306306

307+
it('js tokens for networks.sepolia.default matches figma tokens networks.sepolia.default', () => {
308+
expect(importableColors.networks.sepolia.default).toStrictEqual(
309+
designTokens.light.colors.networks.sepolia.default.value,
310+
);
311+
});
312+
313+
it('js tokens for networks.sepolia.inverse matches figma tokens networks.sepolia.inverse', () => {
314+
expect(importableColors.networks.sepolia.inverse).toStrictEqual(
315+
designTokens.light.colors.networks.sepolia.inverse.value,
316+
);
317+
});
318+
307319
it('js tokens for flask.default matches figma tokens flask.default', () => {
308320
expect(importableColors.flask.default).toStrictEqual(
309321
designTokens.light.colors.flask.default.value,

src/js/themes/lightTheme/colors.ts

+4
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ export const colors: ThemeColors = {
8888
default: '#BBC0C5',
8989
inverse: '#FCFCFC',
9090
},
91+
sepolia: {
92+
default: '#CFB5F0',
93+
inverse: '#FCFCFC',
94+
},
9195
},
9296
flask: {
9397
default: '#8B45B6',

src/js/themes/types.ts

+11-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export interface ThemeColors {
249249
networks: {
250250
goerli: {
251251
/**
252-
* {string} networks.;goerliDefault - For goerli test network colored elements
252+
* {string} networks.goerli.default - For goerli test network colored elements
253253
*/
254254
default: string;
255255
/**
@@ -267,6 +267,16 @@ export interface ThemeColors {
267267
*/
268268
inverse: string;
269269
};
270+
sepolia: {
271+
/**
272+
* {string} networks.sepolia.default - For sepolia test network colored elements
273+
*/
274+
default: string;
275+
/**
276+
* {string} networks.sepolia.inverse - For elements used on top of networks/sepolia/default
277+
*/
278+
inverse: string;
279+
};
270280
};
271281
flask: {
272282
/**

0 commit comments

Comments
 (0)