Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

CSS Variables (Custom Properties) Tutorial

Scrimba via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn CSS Variables (also known as CSS custom properties) in this 29-minute tutorial that demonstrates how to leverage the power of variables in CSS for more efficient and maintainable styling. Discover how to write and declare CSS variables, understand the syntax and best practices for implementation, and master the technique of overriding variables for different contexts. Explore local variables and their scope within specific elements or components, then advance to theming applications using CSS variables for consistent design systems. Master the integration of CSS variables with JavaScript to create dynamic styling effects and interactive user interfaces. Understand how to implement responsive design patterns using CSS variables for different screen sizes and devices, and grasp the inheritance principles that govern how CSS variables cascade through the DOM hierarchy for optimal code organization and reusability.

Syllabus

Introduction to CSS variables (CSS custom properties)
How to write a CSS variable (CSS custom property)
How to override a CSS variable | Custom property
Local variables | CSS variables (CSS custom properties)
Theming CSS variables (CSS custom properties)
Changing CSS variables with JavaScript (CSS custom properties)
Responsiveness in CSS variables (CSS custom properties)
Inheritance in CSS variables (CSS custom properties)

Taught by

Scrimba

Reviews

Start your review of CSS Variables (Custom Properties) Tutorial

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.