Ask questionsOverride value of variables

We have developed a product, where we use this plugin to have some variables. Now some people want to adjust the styling of this product. I thought it could be as simple as using the onVariables callback and override the value. I imagined something like this:

module.exports = {
    plugins: {
        'postcss-simple-vars': {
            onVariables: function(variables) {
                variables.viewPadding = '20px';

However, overriding the variables like this does not seem to work... Isn't that what this function was built for? Is there another way of doing something like this?


Answer questions Saggitarie

@ai Thanks for your reply. After further investigation, I realized that we are using precss plugin for our project. I've contacted the maintainer for postcss-advanced-variables about override readonly variable.


Related questions

No questions were found.
Kohki Shiga Saggitarie Tokyo (✧ω✧)Cooking/🧘‍♂️Hot yoga/(─‿‿─)Anime. Based in Tokyo.
Github User Rank List