[system] Expose spacing
unit as a CSS variable
#37911
Labels
customization: theme
Centered around the theming features
enhancement
This is not a bug, nor a new feature
package: system
Specific to @mui/system
Summary 💡
I know I can access it using the theme as JS object, but I need it as a CSS variable for RSC styles.
Examples 🌈
It must include the PX to be able to use
calc
css fn.Motivation 🔦
I've found some interesting use cases where I need to use the theme spacing unit as a CSS variable.
The text was updated successfully, but these errors were encountered: