I was wondering what exactly is the difference between the css function var(--red) and @value red from css modules.
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);
}
Is there an advantage using one of them?
Thanks in advance for helping me out!
CSS modules @value is
CSS Var() is