Google AI Professional Certificate - Learn AI Skills That Get You Hired
Get 35% Off CFI Certifications - Code CFI35
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