It turns out that I'm doing some outline, normal, and clean buttons.
Normal have background-color
, outlines only border, and clean only color, I also have color attributes, my intention is that this attribute is only used in html , for example:
<button --color-blue></button>
What in css would be:
[--color-blue] {
background-color: blue;
color: white;
}
But I do not know how to do that to fit the outline and clean buttons, because it puts background-color
and the text in white, would there be some kind of conditional only - CSS? how
[--color-blue] {
button.clean {
backround-color: transparent;
color: blue
}
button.outline {
background-color: transparent;
border-color: blue;
}
}