Could you clarify the difference between the css function var(--red) and @value red from css modules for me?
CSS Modules Example:
@value red from "./color.m.css";
.background {
background-color: red;
}
CSS Var() Example:
@import "./color.m.css";
.background {
background-color: var(--red);
}
Are there any distinct advantages to using one over the other?
I appreciate any insight you can provide, thank you!