Created
January 10, 2017 16:24
-
-
Save xcoderzach/a6a02c6d92cfbef4b1887b3539279ede to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Basically you put any "dynamic" styles in regular css | |
// and any postcss as an interpolated variable thing and | |
// then write a quick babel transform like https://github.com/4Catalyzer/css-literal-loader | |
// the downside being you can't use props with the postcss stuff | |
styled.div` | |
border-top: ${({top}) => top}; | |
${postcssify` | |
@mixin 'adfsa'; | |
@whateverFancyThing; | |
`} | |
` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment