Zenika / react-workbench

Design your React component in an isolated context
MIT License
8 stars 1 forks source link

Use of postcss instead of glamor #115

Open bpetetot opened 7 years ago

bpetetot commented 7 years ago

postcss can inject css into <style> (if you put the extract: false) like glamor postcss could also bring css-modules, autoprefixer, nano, variables, imports, if we want...

Moreover with postcss we could add sass as preprocessor and consequently we could use (and improve) Kriya as main UI library.

@fabienjuif what do you think about that ?

fabienjuif commented 7 years ago

why we didn't use CSS at first ?

with css-in-js we could avoid both concerns. with postcss, I have the feeling that only the first one is resolved.

bpetetot commented 7 years ago

with css-modules, the second one is also resolve. no ?

fabienjuif commented 7 years ago

we still could use :global or use a lib that use :global