Astro
Wanna make your Astro project slick with dark mode? Here’s the playbook for getting that moody vibe on lock.
Astro supports inline scripts, so we can get localStorage and set the theme.
First, install the hq-icons
package.
In the terminal, run the following command to begin:
And then, add the following code the component where you want to use the theme switcher.