Light and Dark mode, Statamic and Tailwindcss

I want to implement a light and dark mode (scheme dark and light) with Statamic and Tailwind, not using the media query prefers_color_scheme, but with a custom toggle where the user can select her mode by toggling it on and off.

Anyone with experiences, or an idea on how to approach it the best with (with with JavaScript, alpinejs or pure css or ....)?

PS Adam Wathan did a live stream on this where he uses TailwinCSS and React (as part of Gatsby JS i think so).

>>>>>>> Unanswered <<<<<<<
0 Replies
1 Follower