[ANSWERED] html – Object with the same color, but with different opacities
Solution 1 : You can add an extra layer between the text and background where you apply the opacity: .box { padding:10px; display:inline-block; color:var(--c); background:var(--c); position:relative; z-index:0; } .box::before {…