Skip to content

Commit efd0cce

Browse files
committed
feat: refactor palette to have secondary color as grey
1 parent 23d1c77 commit efd0cce

File tree

1 file changed

+36
-11
lines changed

1 file changed

+36
-11
lines changed

src/theme/palette/index.ts

+36-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,32 @@
1-
/* Legacy Exabyte.io: primary - main: "#1056BE", dark: "#0A3677", light: "#0A6EBD" */
2-
const palette = {
1+
// Note: https://bareynol.github.io/mui-theme-creator/#Dialog can be used to preview theme changes
2+
3+
const primaryColorConfig = {
4+
main: "#5b37c0",
5+
// To be better readable on dark backgrounds
6+
lighter: "#7c5fcd",
7+
};
8+
9+
const secondaryColorConfig = {
10+
main: "#757575",
11+
};
12+
13+
const primaryAndSecondaryColorOptionsLight = {
314
primary: {
4-
main: "#3F2A98",
5-
dark: "#00114A",
6-
light: "#533AC0",
7-
contrastText: "#FFFFFF",
15+
main: primaryColorConfig.main,
816
},
917
secondary: {
10-
main: "#03DAC6",
11-
dark: "#018786",
12-
light: "#23E0CF",
13-
contrastText: "#FFFFFF",
18+
main: secondaryColorConfig.main,
19+
},
20+
};
21+
const primaryAndSecondaryColorOptionsDark = {
22+
primary: {
23+
main: primaryColorConfig.lighter,
24+
},
25+
secondary: {
26+
main: secondaryColorConfig.main,
1427
},
28+
};
29+
const otherColorOptions = {
1530
success: {
1631
main: "#72E128",
1732
dark: "#64C623",
@@ -69,4 +84,14 @@ const palette = {
6984
},
7085
};
7186

72-
export default palette;
87+
export const paletteLight = {
88+
type: "light",
89+
...otherColorOptions,
90+
...primaryAndSecondaryColorOptionsLight,
91+
};
92+
93+
export const paletteDark = {
94+
type: "dark",
95+
...otherColorOptions,
96+
...primaryAndSecondaryColorOptionsDark,
97+
};

0 commit comments

Comments
 (0)