HTML Academy
  • HTML Academy
  • Skills Matrix
  • Courses
  • Tutorials
  • Blog
  • Skills Matrix
  • Courses
  • Tutorials
  • Blog
  • Sign up
  • Log in
  • Home
  • Interactive courses
  • CSS Custom Properties
  1. Introduction to CSS custom properties
    • Theory 0/13
    • Variable practice 0/4

Chapter 1: Introduction to CSS custom properties

TheoryVariable practice
Theory 12 tasks, 1 challenge

Learn how to declare and use CSS custom properties, how they inherit their values, and how to define shared values for a page and override them for individual components.

Start
1. Declaring custom properties Task
2. Reusing values with var() Task
3. Changing a custom property’s value Task
4. Case-sensitive property names Task
5. Naming custom properties Task
6. Storing sizes in custom properties Task
7. Sharing spacing values Task
8. Sharing values with :root Task
9. Referencing other custom properties Task
10. Custom properties for a component Task
11. Shared and local values Task
12. Chains of custom properties Task
13. Challenge: Custom properties Challenge

Cookies ∙ Privacy ∙ License Agreement ∙ About ∙ Contacts ∙ © HTML Academy OÜ, 2019−2026

VISAMastercard

Log in

or

Forgot your password?

Sign up

Sign up

or
Log in

Restore access

Have you forgotten your password or lost access to your profile? Enter your email connected to your profile and we will send you a link to restore access.

Forgot to connect your email to the profile? Email us and we’ll help.

We are using cookies to gather information which will help you use our website most effectively. You can read about this here or disable this feature if you want. By continuing to browse the site, you agree to our use of cookies.