evaluate-inner-styles
Compile the css-in-js before-hand for styled-components
Inspired by -> https://github.com/styled-components/styled-components/blob/master/src/constructors/css.js
We can export evaluated css styles from an object.
Basic usage:
; ` h1: { height: 10px; }`// returns =>// 'h1: {// height: 10px;// }'
Usage with themes:
; const headColor = mode === 'dark' ? "#303030" : "#000000"; ` .head { color: }`;// returns => // .head {// color: #303030// } ` .head { color: }`;// returns => // .head {// color: #000000// }