@Artur-NeriSubmitted over 2 years ago
Hey, Frontend Mentor Community!
It would be awesome to get any feedback on how I could improve my code.
Hey, Frontend Mentor Community!
It would be awesome to get any feedback on how I could improve my code.
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); }