styled-jsx-postcss
styled-jsx-postcss copied to clipboard
change build order?
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?
unfortunately this is not optimal because we would need to run postcss at runtime and on the browser