5 points · by botvader · 7y ago · 6 comments
Also, if you are using a react framework such as material UI or ant design, styled components make it very easy to change the style of those without braking anything.
Theming is actually handled quite nicely[1]. Essentially, you create a JS object which represents your theme (colours, fonts, spacing etc.) and pass it to a provider component. This will then provide the theme object to any components beneath it in the component tree, so you can pull out values and use them to style your app.