developer.mozilla.org
Using CSS custom functions - CSS | MDN
CSS custom functions enable you to create reusable blocks of CSS code that can accept arguments, contain complex logic (defined using features such as CSS if() functions and @media at-rules), and retu...