Skip to content

Commit

Permalink
Add dark styles to chart's strokes
Browse files Browse the repository at this point in the history
  • Loading branch information
zanivan committed May 28, 2024
1 parent 0c3b001 commit 31bcbb4
Showing 1 changed file with 23 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ export default function getDashboardTheme(mode: PaletteMode): ThemeOptions {
},
MuiChartsAxis: {
styleOverrides: {
root: {
root: ({ theme }) => ({
'& .MuiChartsAxis-line': {
stroke: gray[300],
},
Expand All @@ -897,7 +897,19 @@ export default function getDashboardTheme(mode: PaletteMode): ThemeOptions {
fill: gray[400],
fontWeight: 500,
},
},
...theme.applyStyles('dark', {
'& .MuiChartsAxis-line': {
stroke: gray[700],
},
'& .MuiChartsAxis-tick': {
stroke: gray[700],
},
'& .MuiChartsAxis-tickLabel': {
fill: gray[400],
fontWeight: 500,
},
}),
}),
},
},
MuiChartsLegend: {
Expand All @@ -911,13 +923,20 @@ export default function getDashboardTheme(mode: PaletteMode): ThemeOptions {
},
MuiChartsGrid: {
styleOverrides: {
root: {
root: ({ theme }) => ({
'& .MuiChartsGrid-line': {
stroke: gray[200],
strokeDasharray: '4 2',
strokeWidth: 0.8,
},
},
...theme.applyStyles('dark', {
'& .MuiChartsGrid-line': {
stroke: gray[700],
strokeDasharray: '4 2',
strokeWidth: 0.8,
},
}),
}),
},
},
MuiTreeItem2: {
Expand Down

0 comments on commit 31bcbb4

Please sign in to comment.