DEV Community

Simplifying React state and styled components

independnt on November 05, 2018

I've been in the middle of a course going through how to create a cryptocurrency dashboard, which has been great for learning new tricks regarding ...
Collapse
 
simoroshka profile image
Anna Simoroshka • Edited

I usually use styled-components theme provider and keep all colors and reusable settings in one theme file. And if I am planning to change themes at some point, I don't name colors by their color name but rather by the function in the application (brand, accent, background, etc.)

Collapse
 
independnt profile image
independnt

Very interesting! I think i actually like that better, thanks for the input :)