🚀 Feature: Add ability to remove theme preference #131
Labels
status: accepting prs
Please, send a pull request to resolve this!
type: feature
New enhancement or request
Bug Report Checklist
main
branch of the repository.Overview
Right now (as of #103), if you click the theme toggle in the header, it sets a
localStorage
preference for your theme:dot-com/src/components/ThemeToggle.astro
Line 11 in 6e02671
...but that means as you change your system color then the site will not update. What happens if a user wants to clear their setting?
Let's add a "clear" kind of button next to the theme toggle when it's set. That way folks can
localStorage.removeItem
the setting.Additional Info
No response
The text was updated successfully, but these errors were encountered: