Closed molleweide closed 1 year ago
Unfortunately I have very limited knowledge about tailwind css. As of now I can assure that if you set up the tailwind css setup separately, then style macro will work fine and generate separate main.css file. Then you can include both of these generated css files separately in the index.html file. In future we may try weather we can integrate tailwind css with stylers. If you have some idea please share here we can work on it.
Allright thanks! Yes, I will definitely come back here if I find some relevant info :)
it's probably out of scope with this directly. it'd be nice if there was something which handled this that you could integrate as a cargo feature. but any of these features are useful to tailwind users and can sometimes be found implemented, so i'll go over what i wish existed. people do all sorts of fancy things with postcss etc, but focusing on core tailwind functionality without mentioning javascript.
tailwind is a set of utility classes and properties that can be reused in many projects, a sort of standard library for css. it runs in full mode, generates multiple megabytes with all css from the "@" imports you provide, and then has a binary you can use which scans your code and generates a release mode version with only the specific lines you need, kilobytes. ( heres a 10m video with some tips for tailwind users https://www.youtube.com/watch?v=aSlK3GhRuXA )
so with tailwind, rust needs a crate that handles things each as optional feature such as
Hi @dezren39 thank you for putting your thoughts here. As for as I know I am not sure how we can integrate tailwind css with this library. This library focuses on compile time scoped css for Leptos component.
I think there is already someway of integrating tailwind css to the Leptos framework. If you post message on Leptos discard channel or in the Leptos repository you will get a guidance for achieving the same. Please let me know if I can help you in some way.
Hi there,
Great work with this project. This is awesome!
I am a beginner looking to learn rust and my question is: If I use tailwind, can I use its functions and directives in my rust style components with
stylers
?With react and styled components I would do it like this: