Looking at Tailwind CSS, it seems that you need to specify specific colors in your classes like this:
<div class="bg-yellow-200 dark:bg-gray-800"></div>
But what if I want to offer 10 different themes that users can choose from in my web app? Like I might have themes like halloween and summer and winter and party etc.
I know that with regular CSS this is very easy done like this:
[data-theme="halloween"] {
--color-bg: #000;
--color-body: #757981;
}
<body data-theme="halloween"></div>
And then using Javascript I can change the data-theme property and the theme will change.
But how could I do this with Tailwind CSS? I couldn't find anything in the documentation about this.