Material-ui: How to dynamically change Material global theme without touching components?

Created on 21 Dec 2018  路  3Comments  路  Source: mui-org/material-ui

Is there a way like to have theme provider on top of app and then force this styles to every component without a need to change components?

https://material-ui.com/customization/default-theme/ i think this one but somehow to do it dynamically.

question

All 3 comments

Hey, this is better suited to be asked on StackOverflow. But I think you are looking for theme overrides: https://material-ui.com/customization/globals/.

Hey, this is better suited to be asked on StackOverflow. But I think you are looking for theme overrides: https://material-ui.com/customization/themes/#customizing-all-instances-of-a-component-type

The link does not work anymore and I think that this should be asked here, as this is a question about a dynamic themes selection solution for MUI themeing.

The link does not work anymore

Did you try the docs search?

I think that this should be asked here

GutHub issues is for... issues. StackOverflow is better suited to Q&A.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

newoga picture newoga  路  3Comments

reflog picture reflog  路  3Comments

ghost picture ghost  路  3Comments

TimoRuetten picture TimoRuetten  路  3Comments

finaiized picture finaiized  路  3Comments