Skip to content

Commit

Permalink
Merge pull request #889 from sudhanshutech/use/tabs
Browse files Browse the repository at this point in the history
fix theme changes in tabs
  • Loading branch information
sudhanshutech authored Jan 16, 2025
2 parents ee11020 + a1432b8 commit 4abaca4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/theme/colors/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ export const charcoal = {
10: '#000D12'
};

export const gray = {
10: '#1A1A1A',
20: '#212121'
};

export const accentGrey = {
100: '#F6F8F8',
90: '#E8EFF3',
Expand Down
1 change: 1 addition & 0 deletions src/theme/colors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export {
darkSlateGray,
darkTeal,
eerieBlack,
gray,
green,
jungleGreen,
keppel,
Expand Down
2 changes: 1 addition & 1 deletion src/theme/components/tab.modifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const MuiTab: Components<Theme>['MuiTab'] = {
const {
palette: {
text: { default: defaultText },
background: { default: defaultBackground }
background: { tabs: defaultBackground }
}
} = theme;
return {
Expand Down
2 changes: 1 addition & 1 deletion src/theme/components/tabs.modifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Components, Theme } from '@mui/material';
export const MuiTabs: Components<Theme>['MuiTabs'] = {
styleOverrides: {
root: ({ theme }) => ({
backgroundColor: theme.palette.background.default
backgroundColor: theme.palette.background.tabs
}),
indicator: ({ theme }) => ({
backgroundColor: theme.palette.background.brand?.default
Expand Down
4 changes: 2 additions & 2 deletions src/theme/palette.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export const lightModePalette: PaletteOptions = {
default: Colors.charcoal[100],
secondary: Colors.accentGrey[90],
tertiary: Colors.accentGrey[80],
tabs: Colors.charcoal[70],
tabs: Colors.accentGrey[100], // TODO: Make this name or token to more genric
hover: Colors.charcoal[90],
supplementary: Colors.accentGrey[40],
blur: {
Expand Down Expand Up @@ -312,7 +312,7 @@ export const darkModePalette: PaletteOptions = {
default: Colors.charcoal[10],
secondary: Colors.accentGrey[20],
tertiary: Colors.accentGrey[30],
tabs: Colors.charcoal[110],
tabs: Colors.gray[10], // TODO: Make this name or token to more genric
hover: Colors.charcoal[20],
supplementary: Colors.accentGrey[40],
blur: {
Expand Down

0 comments on commit 4abaca4

Please sign in to comment.