Skip to content

Instantly share code, notes, and snippets.

@xcoderzach
Created January 10, 2017 16:24

Revisions

  1. xcoderzach renamed this gist Jan 10, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. xcoderzach created this gist Jan 10, 2017.
    13 changes: 13 additions & 0 deletions whatever.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    // 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;
    `}
    `