Closed andyblac closed 1 year ago
This is not a button-card bug.
rgba(var(--button-card-light-color),0.2)
is not valid CSS because var(--button-card-light-color)
evaluates to a <color>
while rgb()
expects numbers.
You can use the recent function color-mix()
to add transparency to an already existing color: color-mix(in srgb, transparent, var(--button-card-light-color) 20%)
(note this requires an up-to-date browser)
that great thanks so much.... 😄
Checklist
Describe the bug when I use
- background-color: "rgba(var(--button-card-light-color),0.2)"
, all I get is default card color background,this
- background-color: "var(--button-card-light-color)"
give the correct color but it is solid, I am trying to have opacity of 20%