Levi McGlone• 20
@smcglone-lower
Posted
You could use CSS variables to set up the colors.
Also, you could use CSS variables to set the background colors of the cards like so:
<div class="cards">
<div class="card orange">...</div>
<div class="card light-green">...</div>
<div class="card dark-green">...</div>
</div>
.orange { background-color: hsl(...); }
.light-green { background-color: hsl(...); }
.dark-green { background-color: hsl(...); }
.card {
background-color: var(--bg-color);
}
Marked as helpful
0
P
Artur Neri• 130
@Artur-Neri
Posted
@smcglone-lower, thanks! I will give CSS variables a go on my next project, then.
0