Callum Flack

Results 18 comments of Callum Flack

Just like sass, I save postcss variables in a file. I'm OK to import where required (I've done it 18 months w/ Nuxt) but it'd be great to use this...

@manniL that would be very cool! Thankyou

@manniL yes, I use `postcss-preset-env` to handle compatibility

@manniL sure, here's an [example](https://github.com/callumflack/callum-flack-design/blob/master/postcss.config.js). `postcss-preset-env` uses [`postcss-custom-properties`](https://preset-env.cssdb.org/features#custom-properties) which sticks to the CSS spec. Other plugins are a little more flexible, eg. [`postcss-css-variables`](https://github.com/MadLittleMods/postcss-css-variables) I'm not sure how `simple-vars` works as...

@manniL btw, I actually npm import a package of css utilities across all my projects, check it here: https://github.com/callumflack/iremono And this is a good example of a project it's used...

Noting: task #22 is a subtask of this task