Is there a way to implement theming with color picking for elements? Check out the example here.
I've explored using CSS variables and changing the document classname, but I'm uncertain if this is the best approach.
@tailwind base;
@tailwind components;
@tailwind utilities;
/* Example:
:root.green{
--bg-color: green;
}
:root.red{
--bg-color: red;
} */
.slate[data-theme="light"] {
--bg-color: #E2E8F0;
}
.slate[data-theme="dark"] {
--bg-color: #EBF0F7;
}