giuseppeg / styled-jsx-postcss

Use PostCSS with styled-jsx 💥
MIT License
64 stars 11 forks source link

change build order? #21

Open cj opened 7 years ago

cj commented 7 years ago

postcss plugins like https://github.com/postcss/postcss-color-function are not working, due to the build order, right now it's being processed by postcss like color(${ theme.color.tertiary } contrast(100%)), instead of color(#444 contrast(100%)). Could we change the build order, so https://github.com/giuseppeg/styled-jsx-postcss/blob/master/src/babel.js#L117 is run first?

giuseppeg commented 7 years ago

unfortunately this is not optimal because we would need to run postcss at runtime and on the browser