Skip to content

Commit 4abaca4

Browse files
Merge pull request #889 from sudhanshutech/use/tabs
fix theme changes in tabs
2 parents ee11020 + a1432b8 commit 4abaca4

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

src/theme/colors/colors.ts

+5
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ export const charcoal = {
102102
10: '#000D12'
103103
};
104104

105+
export const gray = {
106+
10: '#1A1A1A',
107+
20: '#212121'
108+
};
109+
105110
export const accentGrey = {
106111
100: '#F6F8F8',
107112
90: '#E8EFF3',

src/theme/colors/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export {
5757
darkSlateGray,
5858
darkTeal,
5959
eerieBlack,
60+
gray,
6061
green,
6162
jungleGreen,
6263
keppel,

src/theme/components/tab.modifier.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const MuiTab: Components<Theme>['MuiTab'] = {
66
const {
77
palette: {
88
text: { default: defaultText },
9-
background: { default: defaultBackground }
9+
background: { tabs: defaultBackground }
1010
}
1111
} = theme;
1212
return {

src/theme/components/tabs.modifier.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Components, Theme } from '@mui/material';
33
export const MuiTabs: Components<Theme>['MuiTabs'] = {
44
styleOverrides: {
55
root: ({ theme }) => ({
6-
backgroundColor: theme.palette.background.default
6+
backgroundColor: theme.palette.background.tabs
77
}),
88
indicator: ({ theme }) => ({
99
backgroundColor: theme.palette.background.brand?.default

src/theme/palette.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export const lightModePalette: PaletteOptions = {
195195
default: Colors.charcoal[100],
196196
secondary: Colors.accentGrey[90],
197197
tertiary: Colors.accentGrey[80],
198-
tabs: Colors.charcoal[70],
198+
tabs: Colors.accentGrey[100], // TODO: Make this name or token to more genric
199199
hover: Colors.charcoal[90],
200200
supplementary: Colors.accentGrey[40],
201201
blur: {
@@ -312,7 +312,7 @@ export const darkModePalette: PaletteOptions = {
312312
default: Colors.charcoal[10],
313313
secondary: Colors.accentGrey[20],
314314
tertiary: Colors.accentGrey[30],
315-
tabs: Colors.charcoal[110],
315+
tabs: Colors.gray[10], // TODO: Make this name or token to more genric
316316
hover: Colors.charcoal[20],
317317
supplementary: Colors.accentGrey[40],
318318
blur: {

0 commit comments

Comments
 (0)