0

Color appears when rgba is not typed. But then how can I give it transparency?

:root {

     --color-primary-light: #7ed56f;
     --color-primary-dark: #28b485;
}


.header {
    height: 95vh;
    background-image: linear-gradient(
        to right bottom,
        rgba(var(--color-primary-light), 0.8),
        rgba(var(--color-primary-dark), 0.8)
    );

Bora Erdem
  • 11
  • 1
  • Your style definition is malformed (it’s missing the closing ‘}’, but here’s the answer to your question: https://stackoverflow.com/questions/40010597/how-do-i-apply-opacity-to-a-css-color-variable – padeso Feb 24 '23 at 12:13

0 Answers0