Skip to content
All Challenges
#31

CSS Variable Usage var()

Easy
Category: Modern CSS

Apply the custom variable var(--brand-color) as the background color of .hero.

Target HTML in preview:
<div class="hero">Hero Section</div>
Verification Criteria:
Set background to var(--brand-color)
styles.css
Live Evaluation
Loading...
|
Live Browser Output
Sandboxed Preview