How do you use variables for wxss in Mini Program?

I have tried the following useless


--root {
  --Colors: red;
}

.container {
  color: var(--Colors);
}

is there another way to set variables?


page {
    --color: red;
}

this is the way to write


would like to ask what to do with variables


Wechat's native unsupported variables, which can be implemented in a framework, but I have never used this framework. Mini Program framework can take a look at this framework

.
Menu