NEW in Framer: Dark/Light Mode Toggles

Tinkerdom on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI27 min

About this video

Walks through building an animated dark/light mode toggle in Framer, from drawing the knob and moon and sun shapes to converting it into a component with variants. It also covers setting up light and dark color styles and a helper component that actually switches the site's theme.

What you’ll learn

  • Build a toggle knob with moon and sun shapes using masking
  • Create dark and light variants of a reusable toggle component
  • Set up light and dark color styles and switch themes with a helper component