Configure Tailwind CSS to Precisely Match data-theme Dark Mode
· 2 min read
TL;DR
Docusaurus uses the data-theme attribute to control themes. Tailwind's default attribute mode matches any data-theme value. Use selector mode to precisely match data-theme="dark".