Open cj opened 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?
color(${ theme.color.tertiary } contrast(100%))
color(#444 contrast(100%))
unfortunately this is not optimal because we would need to run postcss at runtime and on the browser
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 ofcolor(#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?