Skip to content

Commit

Permalink
add CSS vars token for Button in mui-material-next
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeeshanTamboli committed Apr 14, 2023
1 parent 34451a8 commit 5abef5a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/mui-material-next/src/styles/extendTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ export default function extendTheme(options: CssVarsThemeOptions = {}, ...args:
'Alert',
'AppBar',
'Avatar',
'Button',
'Chip',
'FilledInput',
'LinearProgress',
Expand Down Expand Up @@ -250,6 +251,8 @@ export default function extendTheme(options: CssVarsThemeOptions = {}, ...args:
setColor(palette.Alert, 'warningIconColor', getCssVar('palette-warning-light'));
setColor(palette.AppBar, 'defaultBg', getCssVar('palette-grey-100'));
setColor(palette.Avatar, 'defaultBg', getCssVar('palette-grey-400'));
setColor(palette.Button, 'inheritContainedBg', getCssVar('palette-grey-300'));
setColor(palette.Button, 'inheritContainedHoverBg', getCssVar('palette-grey-A100'));
setColor(palette.Chip, 'defaultBorder', getCssVar('palette-grey-400'));
setColor(palette.Chip, 'defaultAvatarColor', getCssVar('palette-grey-700'));
setColor(palette.Chip, 'defaultIconColor', getCssVar('palette-grey-700'));
Expand Down Expand Up @@ -322,6 +325,8 @@ export default function extendTheme(options: CssVarsThemeOptions = {}, ...args:
setColor(palette.AppBar, 'darkBg', getCssVar('palette-background-paper')); // specific for dark mode
setColor(palette.AppBar, 'darkColor', getCssVar('palette-text-primary')); // specific for dark mode
setColor(palette.Avatar, 'defaultBg', getCssVar('palette-grey-600'));
setColor(palette.Button, 'inheritContainedBg', getCssVar('palette-grey-800'));
setColor(palette.Button, 'inheritContainedHoverBg', getCssVar('palette-grey-700'));
setColor(palette.Chip, 'defaultBorder', getCssVar('palette-grey-700'));
setColor(palette.Chip, 'defaultAvatarColor', getCssVar('palette-grey-300'));
setColor(palette.Chip, 'defaultIconColor', getCssVar('palette-grey-300'));
Expand Down

0 comments on commit 5abef5a

Please sign in to comment.