Skip to content
JS

Dynamic CSS with Custom Properties (aka CSS Variables)

Course on Master.dev by Lea Verou

View on Master.dev (opens in a new tab)
3 h 54 min
LengthVideo runtime
Subscription
Price modelMaster.dev plan
38
Lessons
Nov 2021
Published9 Nov 2021

About this course

Description from Master.dev

Modern browsers ship with CSS Custom Properties, also known as "CSS variables", a superpower that enables us to create reusable components without any JavaScript dependencies needed – using only vanilla CSS! Learn how to leverage Custom Properties to improve code reuse, maintainability, and downright enable possibilities that previously required large amounts of hard-to-maintain JavaScript and violated the separation of concerns. See practical examples of why CSS Custom Properties are a revolution in the way we write CSS!

What it covers

38 lessons
  1. 01

    Introduction

    1. Introduction
    2. CSS Variables Overview
  2. 02

    Inheritance & Fallbacks

    1. Inheritance
    2. Creating Style Hooks
    3. Fallbacks
    4. Fallbacks Exercise
    5. Fallbacks Solution
    6. DRY Fallback Strategies
  3. 03

    Invalid Values & Custom Properties Practice

    1. Invalid Values & Computed Values
    2. @supports & Custom Properties
    3. Custom Properties Exercise
    4. Custom Properties Solution
    5. Cycles & Overriding Properties
    6. Flexible Pie Chart Exercise
    7. Flexible Pie Chart Solution
    8. Custom Property with a Sass Loop
  4. 04

    Toggles, Responsive Design and Colors

    1. Space Toggles
    2. Responsive Design with Custom Properties
    3. Colors
    4. Colors Exercise
    5. Colors Solution
    6. Color: Present and Future
    7. Transitions & Animations
  5. 05

    Numbers, Strings, and Images

    1. Numbers, Lengths, & Variable Values
    2. Number Toggles
    3. Range Mapping
    4. Numeric Range Exercise
    5. Numeric Range Solution
    6. General Linear Range Mapping
    7. Strings & Numbers in Strings
    8. Images
  6. 06

    JavaScript

    1. Javascript
    2. Dynamic Button Ripple Effect Exercise
    3. Dynamic Button Ripple Effect Solution
    4. Dynamic Form Element Styling
    5. Heading Typing Effect
    6. Dynamic Scrollbar
  7. 07

    Wrapping Up

    1. Wrapping Up

Similar HTML and CSS courses

  1. HTML Email Development, v2

    Master.dev · Jason Rodriguez · 40 lessons · Nov 2019

    3 h 56 minSubscription
    Master.dev40Nov 2019
  2. CSS Foundations

    Master.dev · Emma Bostian · 30 lessons · Aug 2023

    3 h 57 minSubscription
    Master.dev30Aug 2023
  3. Learn CSS: Flexbox and Grid

    Codecademy · 3 lessons · Oct 2022

    Beginner4 h
    Codecademy3Oct 2022
  4. Modern CSS Layout: Decking Zombies with Style

    Educative · John Rhea · 21 lessons · Apr 2026

    Beginner4 hSubscription
    Educative21Apr 2026
  5. Advanced CSS Layouts

    Master.dev · Jen Kramer · 38 lessons · Sept 2019

    3 h 46 minSubscription
    Master.dev38Sept 2019
  6. CSS Theming for Professionals

    Educative · Mohammad Rahhal · 22 lessons · Apr 2026

    Intermediate3 hSubscription
    Educative22Apr 2026
  7. Learn HTML: Fundamentals

    Codecademy · 2 lessons · Jan 2023

    Beginner3 h
    Codecademy2Jan 2023
  8. Learn Sass

    Codecademy · 4 lessons · Apr 2018

    Intermediate3 h
    Codecademy4Apr 2018

A hyphen means the provider's catalogue does not state the value.

Same topic, nearest in length, up to three from any one provider.

Data read from the Master.dev catalogue on 28 Nov 2026. How the data is collected.

    Compare