Tailwind supports dark mode with the dark: variant. By default it uses the operating system preference (prefers-color-scheme), but you can switch to class-based manual control. Using Dark Mode Manual Dark Mode Toggle (Class Strategy) Dark Mode Component Pattern Tip: Always define both light and dark variants together to avoid visual inconsistencies.