CSS Variables - CSS vs Sass - variables inside media queries

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUI6 min

About this video

Compares CSS custom properties with Sass variables and shows how CSS variables can be used inside media queries to reduce the amount of stylesheet code needed.

What you’ll learn

  • Compare CSS variables with Sass variables
  • Use CSS variables inside media queries
  • Reduce repeated responsive styles in a stylesheet