Is it possible to force darkmode layout on component ? #966
-
Hi, I am using flux UI on my webapp, but also on my landing page which has not darkmode nor lightmode. It is a "mix" with sections in bg light, and some in bg dark. I am trying to add a flux button in a dark section but I would like to have the darkmode version of the button. Usually with some tailwindcss components, we can use data-dark or something like this. Is it possible with flux ? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@joffreypersia Have you tried a wrapping
The Tailwind CSS docs indicate this should work:
|
Beta Was this translation helpful? Give feedback.
@joffreypersia Have you tried a wrapping
<div>
around the component markup that you wish to display in 'dark mode'? e.g.:The Tailwind CSS docs indicate this should work: