Expose theme
for mixins
#44213
Labels
customization: theme
Centered around the theming features
new feature
New feature or request
out of scope
The problem looks valid but we won't fix it (maybe we will revisit it in the future)
Summary
There are 2 problems:
mixins
type is part ofThemeOptions
in:material-ui/packages/mui-material/src/styles/createThemeNoVars.d.ts
Line 35 in 2359c0b
It's a duplicate as
mixins
already exists in:material-ui/packages/mui-system/src/createTheme/createTheme.d.ts
Line 27 in 2359c0b
mixins
expects anobject
; it should also allow to pass a function(theme) => mixins
theme.vars.palette
-dependent styles in mixins, because there's no built-in way to access themMotivation
Similar to
components[COMPONENT_NAME].styleOverrides.root
, It should be possible to set:Search keywords: theme, mixins
The text was updated successfully, but these errors were encountered: