Skip to content

Instantly share code, notes, and snippets.

@xcoderzach
Created January 10, 2017 16:24
Show Gist options
  • Save xcoderzach/a6a02c6d92cfbef4b1887b3539279ede to your computer and use it in GitHub Desktop.
Save xcoderzach/a6a02c6d92cfbef4b1887b3539279ede to your computer and use it in GitHub Desktop.
// 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