You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to somehow make the selectors more flexible? By passing an array to selector, or so that the selectors don't attach to baseSelector? I've got a kind of complex set up where certain components always need the dark theme, while others always need the light theme (and then a page that the user can choose which theme they want), so the current functionality doesn't really work for me. I need something that could basically do the following:
dark theme applies tobody[data-theme="dark"] light theme applies tobody[data-theme="light"], body[data-theme="dark"] .some-light-component
button {
@apply light:bg-red dark:bg-blue;
}
<bodydata-theme="dark"><divclass="some-light-component"><!-- button is red --><button></button></div></body><bodydata-theme="light"><!-- button is red --><button></button></body><bodydata-theme="dark"><!-- button is blue --><button></button></body>
Thanks in advance, and thanks for the great work on this project.
The text was updated successfully, but these errors were encountered:
More of a question than an issue:
Is it possible to somehow make the selectors more flexible? By passing an array to
selector
, or so that the selectors don't attach tobaseSelector
? I've got a kind of complex set up where certain components always need the dark theme, while others always need the light theme (and then a page that the user can choose which theme they want), so the current functionality doesn't really work for me. I need something that could basically do the following:dark theme applies to
body[data-theme="dark"]
light theme applies to
body[data-theme="light"], body[data-theme="dark"] .some-light-component
Thanks in advance, and thanks for the great work on this project.
The text was updated successfully, but these errors were encountered: