Tech
Adding Dark Mode to Any Site With Tailwind and localStorage
Good dark mode should be instant, persistent, and user-controlled. Here's how to build it in about 20 lines of code — no library, no framework, no flash of wrong theme.