title: Is it possible to use CSS custom properties with LESS functions?
body: <p>I'd like to be able to use LESS's darken function with a CSS custom property. I had something like this in mind:</p>
  
  <pre><code>:root {
    --color-primary: green;
  }
  
  div {
    background-color: darken(var(--color-primary), 50%);
  }
  </code></pre>
  
  <p>But this gives me an error. Is there another way to do it?</p>