Why does solid-router break DaisyUI styles?
I have a solidJS app all setup and have used daisyUI for styling. However, when implementing solid-router, it breaks some of the functionality of the styling... especially the themes (no more dark mode )
Any thoughts or ideas? If you'd like to see any parts of my code feel free to ask!
16 Replies
index.tsx
i also noticed on this part of the docs, that its telling you to import
Routes
but when i tried that it wasn't workingthe docs is kinda behind, this is no longer the case
The docs seem all sorts of messed up rn…
But either way I got the routes to work without' that import, but it messed up my daisyUI styles and I can’t for the life of me figure out why that would effect the styles
i wouldn't rely on the docs atm, look at the source instead
What exactly is broken with the themes? do you have a repo?
@benton__ @lxsmnsyc 🤖 thank you both for the replies. the issue was found to be conflicting styles with a date picking component that was being used on one of the pages
after removing the date picking component, daisyUI works as expecting with solidrouter 👍
here's a better pic to see what was broken
right is how it should look, left is how it did look. daisyUI will follow your system theme and i had mine in dark mode
glad you figured it out
what do you mean by source?
source for the router? i did go off of the github readme for the router, but what about for other solidjs stuff are the docs not the place to look rn?
just the stuff related to solid start newer betas
so the best place for solidjs docs is solidstart which is a different framework built on solidjs?
no if it's pure solid the solid docs are fine
https://docs.solidjs.com/guides/how-to-guides/get-ready-for-solid/solid-best-practices
https://docs.solidjs.com/guides/how-to-guides/accessibility-in-solid
https://docs.solidjs.com/guides/how-to-guides/animations-in-solid/motionone-for-solid
https://docs.solidjs.com/guides/how-to-guides/testing-in-solid/uvu
https://docs.solidjs.com/references/concepts/ssr/hydration
these docs are so half baked