1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Create Dynamic Styles with CSS Variables

    cssCSS

    In this lesson we are going to use CSS variables to keep our application's colors consistent. This includes defining the variables inside our the pseudo class :root and using the var function within our classes.

    We finish up the lesson using JavaScript to log and modify our defined CSS variables.