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