Dynamic CSS with Custom Properties (aka CSS Variables)
Course on Master.dev by Lea Verou
- 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
- 01
Introduction
- Introduction
- CSS Variables Overview
- 02
Inheritance & Fallbacks
- Inheritance
- Creating Style Hooks
- Fallbacks
- Fallbacks Exercise
- Fallbacks Solution
- DRY Fallback Strategies
- 03
Invalid Values & Custom Properties Practice
- Invalid Values & Computed Values
- @supports & Custom Properties
- Custom Properties Exercise
- Custom Properties Solution
- Cycles & Overriding Properties
- Flexible Pie Chart Exercise
- Flexible Pie Chart Solution
- Custom Property with a Sass Loop
- 04
Toggles, Responsive Design and Colors
- Space Toggles
- Responsive Design with Custom Properties
- Colors
- Colors Exercise
- Colors Solution
- Color: Present and Future
- Transitions & Animations
- 05
Numbers, Strings, and Images
- Numbers, Lengths, & Variable Values
- Number Toggles
- Range Mapping
- Numeric Range Exercise
- Numeric Range Solution
- General Linear Range Mapping
- Strings & Numbers in Strings
- Images
- 06
JavaScript
- Javascript
- Dynamic Button Ripple Effect Exercise
- Dynamic Button Ripple Effect Solution
- Dynamic Form Element Styling
- Heading Typing Effect
- Dynamic Scrollbar
- 07
Wrapping Up
- Wrapping Up
Similar HTML and CSS courses
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.