Become a member
to unlock all features

Level Up!

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


    Create Dynamic Styles with CSS Variables


    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.