Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Introducing "CSS Custom Properties for Cascading Variables" 2:24
- Declaring and Using CSS Variables 9:46
- CSS Variables vs. Preprocessor Variables 5:28
- Cascade and Inheritance with CSS Variables 5:30
- Providing Fallbacks and Building Length Values 3:00
- Using CSS Variables with SVG 3:33
- Updating CSS Variables with JavaScript 6:41
- Best Practices and Tips 1:02

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
CSS variables weren't created just to offer the same functionality as preprocessor variables. Variables are a game changer in CSS, and there are plenty of differences and advantages to using CSS variables over preprocessor variables.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up