You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issues of this repository and believe that this is not a duplicate.
Summary 馃挕
It makes sense to me to abstract the theme generation APIs into a single hook interface that returns the generated theme and a setter function to modify the theme.
@devskope Thanks for opening an issue. It's the third time I see somebody asking for a theme setter. From what I recall, it was about enabling the dark theme without having to handle the boilerplate around the React's context. What problem do you intend on solving?
@oliviertassinari Same problem, cutting down boilerplate and focusing on features .
oliviertassinari
changed the title
Aggregate theme creation functions, bake in dynamic theme updates.
Provide an API to update the theme from down the tree
May 31, 2020
Summary 馃挕
It makes sense to me to abstract the theme generation APIs into a single hook interface that returns the generated theme and a setter function to modify the theme.
Examples 馃寛
I published the
useMuiTheme
hook (@devskope/use-mui-theme) to solve this problem.The text was updated successfully, but these errors were encountered: