Re: [csswg-drafts] [css-backgrounds] - Reappeal for Background Alpha's or Background Opacity | extremely useful for CMS's (#9910)

If I understand the use case correctly, you would rather want something like this, but Tab’s points are still as valid:

~~~~ css
.widget-background { 
--background-alpha: 50%; 
  background-color: rgb(from var(--color), r g b / var(--background-alpha)); 
}
.theme1 { --color: #FF6347; }
.theme2 { --color: #FFFF47; }
.theme3 { --color: #F52891; }
.theme4 { --color: #273FF5; }
~~~~

-- 
GitHub Notification of comment by Crissov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9910#issuecomment-1928824891 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 6 February 2024 05:44:10 UTC