themeRoot in tailwind config should modify the :root styles in base to be under the root as well #3158
tholub99
started this conversation in
Ideas / feature requests
Replies: 1 comment
-
Yes, please! I am right now needing to search a lot about complex management of shadow dom and other ideas just because of this issue :( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
themeRoot
works well when trying to nest daisyUI in existing projects, except for 3 styles that still are added from daisybase
to the built css file at the:root
scope of the page. Even withthemeRoot
ifbase
is not disabled in daisy tailwind config every element on the page will receive these themes, which can interfere with page styling outside of daisyUI.Specifically:
Currently to make nesting work you can disable base in daisy config and copy these styles 1-for-1 into the final css build, replacing
:root
with your desiredthemeRoot
.I think it makes sense though to update the base styles to adhere to
themeRoot
if it is set, or to add abaseRoot
option to the config as well asthemeRoot
.Beta Was this translation helpful? Give feedback.
All reactions