Utilizing color opacity with rgb
has been a challenge for me. I frequently encounter the issue of not having the desired background underneath it, and I am unable to add additional HTML or pseudo elements to serve as backgrounds for the opacity.
Therefore, my solution approach involves exploring the use of CSS multiple backgrounds.
My ideal first layer background is rgb(0 0 0 / 74%)
.
I would like to have a gradient var(--gradient) fixed
below it, so that the opacity from the rgb
is applied to the mentioned gradient.