var function

suggest change

The var() function allows CSS variables to be accessed.

/* set a variable */
:root {
    --primary-color: blue;
}

/* access variable */
selector {
    color: var(--primary-color);
}

This feature is currently under development. Check caniuse.com for the latest browser support.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents