Skip to content

Commit def63f3

Browse files
committed
Update color pallete and toggle button component
1 parent ac83511 commit def63f3

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

Diff for: src/theme/index.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -689,11 +689,11 @@ const components: Components = {
689689
},
690690
},
691691
MuiToggleButton: {
692-
styleOverrides: {
692+
styleOverrides: ({ theme }: { theme: any }) => ({
693693
sizeSmall: {
694-
fontSize: "16px",
694+
...theme.typography.body2,
695695
},
696-
},
696+
}),
697697
},
698698
MuiListItemText: {
699699
styleOverrides: {
@@ -783,4 +783,4 @@ export let darkTheme = createTheme(theme, {
783783
},
784784
},
785785
},
786-
});
786+
});

Diff for: src/theme/palette.ts

+7-5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const lightThemePalette: PaletteOptions = {
3636
main: "#12B76A",
3737
dark: "#027A48",
3838
light: "#D1FADF",
39+
contrastText: "#ffffff",
3940
},
4041
warning: {
4142
main: "#F79009",
@@ -51,6 +52,7 @@ const lightThemePalette: PaletteOptions = {
5152
main: "#0BA5EC",
5253
dark: "#026AA2",
5354
light: "#7CD4FD",
55+
contrastText: "#ffffff",
5456
},
5557
text: {
5658
primary: "#101828",
@@ -167,11 +169,11 @@ const lightThemePalette: PaletteOptions = {
167169
},
168170
border: "#F2F4F7",
169171
action: {
170-
active: "rgba(16, 24, 40, 0.40)",
172+
active: "rgba(127, 127, 126, 0.6)",
171173
hover: "rgba(16, 24, 40, 0.04)",
172-
selected: "rgba(16, 24, 40, 0.08)",
173-
disabled: "rgba(16, 24, 40, 0.26)",
174-
disabledBackground: "rgba(16, 24, 40, 0.12)",
174+
selected: "rgba(127,127, 126, 0.13)",
175+
disabled: "rgba(127,127, 126, 0.48)",
176+
disabledBackground: "rgba(127,127, 126, 0.2)",
175177
focus: "rgba(16, 24, 40, 0.12)",
176178
},
177179
};
@@ -194,4 +196,4 @@ const darkThemePalette = {
194196
},
195197
};
196198

197-
export { lightThemePalette, darkThemePalette };
199+
export { lightThemePalette, darkThemePalette };

0 commit comments

Comments
 (0)