I have issues with tailwind using the axum workspace template #2028
-
I am trying to setup the axum workspace with tailwind. I already did it with the plain actix (no workspace) and it worked fine. However when doing it with axum workspace template the styling is removed and adding tailwind classes has no effect. I added the style/tailwind.css file to workspace Cargo.toml and the /target/site/pkg/tailwind.css is generated. in the app/src/lib.rs I am calling if I have for instance a h1 tag with If i remove the stylesheet it will show normal h1 large text. So from that I think it is safe to say that the generated tailwind css file is working. But the class is not read from the html tags. Maybe it is an issue in leptos implementation. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
It would be useful to have some kind of reproduction or steps to reproduce, to understand whether you're setting it up correctly. What command are you running for Tailwind? Or are you using |
Beta Was this translation helpful? Give feedback.
-
This works fine for me (literally set it up yesterday), so I suspect it's a misconfiguration. |
Beta Was this translation helpful? Give feedback.
In your
tailwind.config.js
, tailwind is looking forcontent
undersrc
:But that starter template has no
src
directory.