We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Light and Dark mode, Statamic and Tailwindcss

Joseph M.K. October 9, 2020 by Joseph M.K.

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