3 ms·
Most apps should have two things: 1) A style guide or component library that is used by both design and engineering for any commonly-used component. In some pr
by encoderer 9y ago
Most apps should have two things:
1) A style guide or component library that is used by both design and engineering for any commonly-used component. In some projects this could just be vanilla Bootstrap.
2) An inline style strategy -- there are now several good options to choose from (Styled components, glamorous, etc). A cool idea here that an engineer on my team implemented recently is using a webpack loader to convert our SASS variables into javascript variables so they can be shared with your styled components.
- Raphmedia 9y ago> A cool idea here that an engineer on my team implemented recently is using a webpack loader to convert our SASS variables into javascript variables so they can be shared with your styled components. What I do is set my variables in a YAML file and inject those into both my JS and CSS files at build time.