Skip to content
0/10

Tailwind CSS Intermediate: Theme, Variants and Reuse

Dark Mode and Theming

In this lesson you will

  • Use the dark variant with the system setting
  • Switch themes with a class or data attribute using @custom-variant
  • Build themes with CSS variables and avoid a flash on load