Last active
July 19, 2019 14:51
-
-
Save raglan-road/d42e4e39d0b104dfe2562f001d978f8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Some file, like layout-constants.js | |
export default BASE_PADDING = '1'; | |
export default BASE_UNIT = 'rem'; | |
// Another file, like blahcomponent.jsx | |
import * as CSS from 'layout-constants'; | |
const Componet = css(` | |
margin: 1.5*${BASE_PADDING}${BASE_UNIT}, | |
padding: ${BASE_PADDING}${BASE_UNIT} | |
`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment