

Next lesson playing in 5 seconds
CancelThe Complete Guide to Using CSS Variables
Welcome to the Course
01:11
CSS custom properties, also known as CSS variables, are entities that contain specific values that can be reused in a stylesheet. They are like LESS or Sass variables, except you don’t need a preprocessor to use them. In fact, browsers have supported them for the past few years.
In this course, you’ll learn everything you need to know in order to use CSS variables in the most efficient way. You’ll learn about the proper syntax, naming, and what kind of values you can store, and you’ll also see a lot of examples along the way.
1.Introduction1 lesson, 01:11
1 lesson, 01:11
1.1Welcome to the Course01:11
1.1
Welcome to the Course
01:11
2.The Basics of CSS Variables5 lessons, 55:52
5 lessons, 55:52
2.1What Are CSS Variables?09:36
2.1
What Are CSS Variables?
09:36
2.2Inheritance and Scoping23:45
2.2
Inheritance and Scoping
23:45
2.3Working With Invalid Variables and Fallback Values11:19
2.3
Working With Invalid Variables and Fallback Values
11:19
2.4Using CSS Variables With Inline Styles03:49
2.4
Using CSS Variables With Inline Styles
03:49
2.5Storing Single and Multiple Values07:23
2.5
Storing Single and Multiple Values
07:23
3.Some Things You Should Know About CSS Variables2 lessons, 16:57
2 lessons, 16:57
3.1Using CSS Variables With Media Queries and JavaScript10:47
3.1
Using CSS Variables With Media Queries and JavaScript
10:47
3.2Working With Variables Inside Browser DevTools06:10
3.2
Working With Variables Inside Browser DevTools
06:10
Adi Purdila is a web design instructor for Tuts+. With over 100 courses and 200 tutorials published to date, Adi's goal is to help students become better web designers and developers by creating content that’s easy to follow and offers great value.
Being self-taught himself, Adi strongly believes that constant learning (academic or otherwise) is the only way to move forward and achieve your goals.
When not typing away at his keyboard, he loves woodworking and caring for his ever-growing family of rescue pets.
You can stay up to date with what he's doing by following him on social media or visiting his website at adipurdila.com.