Leverage Theme Values in Globally Themed Components #44214
Labels
customization: theme
Centered around the theming features
support: question
Community support but can be turned into an improvement
Summary
I would like to leverage theme properties, such as the current mode and palette colors, to customize my themed components. However, this doesn’t currently seem possible. Please see the example below.
Examples
theme.js:
App.js:
Motivation
This would be the final touch, in my opinion, for creating a theme adaptable to different color modes. It would enable a modular, easily maintainable theme that can dynamically adjust to the selected mode and access palette values for custom styling across the application.
Search keywords: themes
The text was updated successfully, but these errors were encountered: