Question. How to use constants in css?
NXTaar opened this issue · 1 comments
NXTaar commented
my constants.js
file which i pass to the variables
option
module.exports = {
colors: {
main: "#562d91",
side: "#d11774"
}
sizes: {
general: '40px'
}
};
what should i write in css to get this variables?
ai commented
Sorry, this plugin is for simple variables :). There are many other plugins with more complicated syntax and objects support:
https://github.com/postcss/postcss/blob/master/docs/plugins.md#language-extensions