Overview
Syllabus
- Introduction
- What we’re starting with
- Setting up the color theme selector
- Hiding the labels
- Styling the color theme picker
- Adding functionality with :has
- Using localStorage to remember the users choice
- Adding a fallback for when there is no :has support
I should have made separate selectors here, as this won't work in Firefox - see codepen in description for a working version
Because I moved this here, the theme should have been changed to activeTheme - see codepen in description for a working version
Taught by
Kevin Powell