Replies: 1 comment 1 reply
-
Hot reload doesn't works with tailwind css with v 0.5. Try to use 0.6 with tailwind cdn |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been looking a way to add repetitive CSS classes into one class.
Following is my project dir:
. ├── Cargo.lock ├── Cargo.toml ├── Dioxus.toml ├── LICENSE ├── README.md ├── assets │ ├── favicon.ico │ ├── header.svg │ ├── main.css │ └── tailwind.css ├── input.css ├── public │ └── tailwind.css ├── src │ ├── contacts.rs │ ├── home.rs │ ├── main.rs │ ├── payment.rs │ ├── profile.rs │ └── wallet.rs └── tailwind.config.js
I added CSS classes into `public/tailwind.css`:
And the rust code:
But, on running the 2 terminals (one for tailwind compilation & the other for
dx serve
):I couldn't get my CSS design reflected in the UI.
Current output:
Expected ouput:
I am not sure what I am missing 🤔.
Any help please?
Beta Was this translation helpful? Give feedback.
All reactions