Solving The Biggest Challenge of Custom Properties

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI8 min

About this video

Explains why overwriting a CSS custom property does not always behave as expected, such as with box-shadow, and why it works for color and background color. Shows the fix to use and the workaround to avoid. Aimed at developers who already use CSS custom properties.

What you’ll learn

  • Explain why some CSS custom property overrides fail to apply
  • Apply a correct workaround for custom property overrides in box-shadow
  • Avoid a common but incorrect fix for custom property overrides