I'm in the process of changing the text color on home.html
. I've defined the color property in a :root variable
, but for some reason, it's not appearing correctly on the HTML page.
Take a look at my code:
home.scss
:root {
--prim-headclr : #004c3f;
}
/* heading */
.phead_clr{
color:var(--prim-headclr);
}
home.html
<div class="col-md-12 phead_clr">
<h1>Build an online business—no matter what business you’re in</h1>
</div>
Can anyone explain why the color specified in the root variable isn't being applied to the HTML side?