Is there a way to convert rgb into rgba in CSS?

so I already setup my css variables like this
--colorBgSurface: rgb(0, 64, 55);
--colorBgSurface: rgb(0, 64, 55);
I was wondering if I could insert this variable into something but add an alpha like rgba instead for glassy effect
1 Reply
Jochem
Jochem2y ago
If you can't just mess with the opacity property, the only thing I can think of (though that's not saying too much, I'm by no means a CSS expert) is to use color-mix and a fully transparent second color https://codepen.io/jochemm/pen/mdQQRav
Want results from more Discord servers?
Add your server