Last active
November 4, 2015 00:05
-
-
Save necolas/1ac943f72f2cfbcbbb9e to your computer and use it in GitHub Desktop.
CSS-in-JS to CSS
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
/* same output as css-loader's :local() provides */ | |
.hash1 { | |
align-items: center; | |
background: blue; | |
color: red; | |
} | |
.hash2 { | |
align-items: center; | |
color: red; | |
} |
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
import theme from '../theme'; | |
const styles = { | |
button: { | |
alignItems: 'center', | |
background: theme.background, | |
color: theme.color | |
}, | |
icon: { | |
alignItems: 'center', | |
color: theme.color | |
} | |
}; | |
export default styles; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I dig this style - is this related to what you're doing with react-web-sdk? I'd love to use this as an alternative to
css-loader?modules
...