Define and use CSS Custom Properties

Share this video with your friends

Send Tweet

Learn how to define and use a CSS custom property (also called CSS variable). We'll look at the difference between global and scoped custom properties. And we'll see how using local variables for element states - in this case, a:hover - allows extending default CSS capabilities by enabling overriding the :hover color via an inline style.