[colorManipulator] lighten/darken a CSS var() color #43324
Labels
customization: theme
Centered around the theming features
new feature
New feature or request
package: system
Specific to @mui/system
Summary
Hi, I'm working on my own design system implementation with MUI v6 (base + system). Previously, with utilities in colorManipulator I can easily lighten/darken a color defined in palette. With CSS variables, now it's difficult and I have to augment the palette a lot. For
alpha
the solution is with pure CSS functionrgba
, probably forlighten
/darken
I should go with the same way? Or, bygetComputedStyle
I can run the same function just as before?Examples
Motivation
No response
Search keywords: colorManipulator lighten darken var CSS color
The text was updated successfully, but these errors were encountered: