# CSS Variables (Custom Properties)

> How do CSS custom properties work? How are they different from Sass variables?

Canonical: https://www.internhack.in/learn/interview/html-css-interview/css-variables
Last updated: 2026-11-28

Difficulty: Intermediate

## Question

How do CSS custom properties work? How are they different from Sass variables?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

Custom Properties, CSS Variables, Theming, Cascading, Dynamic Styles

Previous: [Pseudo-Classes & Pseudo-Elements](https://www.internhack.in/learn/interview/html-css-interview/css-pseudo) · Next: [CSS Units (rem, em, vw, vh, %)](https://www.internhack.in/learn/interview/html-css-interview/css-units) · [All of HTML & CSS Interview](https://www.internhack.in/learn/interview/html-css-interview)

## More HTML & CSS Interview questions

- [Media Queries & Breakpoints](https://www.internhack.in/learn/interview/html-css-interview/css-media-queries)
- [BEM Methodology](https://www.internhack.in/learn/interview/html-css-interview/css-bem)
- [CSS-in-JS vs CSS Modules](https://www.internhack.in/learn/interview/html-css-interview/css-in-js)
- [Sass/SCSS Basics](https://www.internhack.in/learn/interview/html-css-interview/css-sass)
- [Browser Rendering Pipeline](https://www.internhack.in/learn/interview/html-css-interview/css-rendering)
- [Web Vitals (CLS, LCP, FID)](https://www.internhack.in/learn/interview/html-css-interview/css-web-vitals)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [HTML & CSS Interview](https://www.internhack.in/learn/interview/html-css-interview)
