Skip to content

Commit

Permalink
[docs] Fix styleOverrides usage in README
Browse files Browse the repository at this point in the history
Signed-off-by: Brijesh Bittu <brijeshb42@gmail.com>
  • Loading branch information
brijeshb42 committed May 28, 2024
1 parent 698f036 commit f4fdac2
Showing 1 changed file with 30 additions and 26 deletions.
56 changes: 30 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1054,16 +1054,18 @@ module.exports = withPigment(
{ ...nextConfig },
{
theme: {
styleOverrides: {
components: {
PigmentStat: {
root: {
backgroundColor: 'tomato',
},
value: {
color: 'white',
},
unit: {
color: 'white',
styleOverrides: {
root: {
backgroundColor: 'tomato',
},
value: {
color: 'white',
},
unit: {
color: 'white',
},
},
},
},
Expand All @@ -1084,25 +1086,27 @@ module.exports = withPigment(
primary: 'tomato',
primaryLight: 'lightcoral',
},
styleOverrides: {
components: {
PigmentStat: {
root: ({ theme }) => ({
backgroundColor: 'tomato',
variants: [
{
props: { variant: 'outlined' },
style: {
border: `2px solid ${theme.colors.primary}`,
backgroundColor: theme.colors.primaryLight,
styleOverrides: {
root: ({ theme }) => ({
backgroundColor: 'tomato',
variants: [
{
props: { variant: 'outlined' },
style: {
border: `2px solid ${theme.colors.primary}`,
backgroundColor: theme.colors.primaryLight,
},
},
},
],
}),
value: {
color: 'white',
},
unit: {
color: 'white',
],
}),
value: {
color: 'white',
},
unit: {
color: 'white',
},
},
},
},
Expand Down

0 comments on commit f4fdac2

Please sign in to comment.