Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/twake-mui/src/lib/overrides.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1181,6 +1181,11 @@ export const overrides: NonNullable<ThemeOptions['components']> = {
primary: ({ theme }) => ({
color: theme.vars.palette.primary.dark,
backgroundColor: theme.vars.palette.primary.light,
// The dark palette's primary.dark is a light blue: 1.9:1 on
// primary.light. Its contrastText (dark grey) gives 5.7:1
Comment thread
9clg6 marked this conversation as resolved.
Resolved
...theme.applyStyles('dark', {
color: theme.vars.palette.primary.contrastText
}),
'&:hover': {
backgroundColor: `color-mix(in srgb, ${theme.vars.palette.primary.light}, #000 5%)`
},
Expand Down
Loading