-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tailwind v3 support #6
Comments
Hi @bigardone :) There's some discussion about that in the elm-tailwind-modules repository: matheus23/elm-tailwind-modules#9 Unfortunately, it's likely not super easy to pull off :/ |
Is it possible to update this package now that elm-tailwind-modules is successfully updated? |
I haven't tried yet. It may or may not be. I think tailwind v3 just added a lot of new classes now that they've enabled the JIT by default in v3. When trying to publish this to the elm packages site, we may hit package size restrictions. |
Yeah, with tailwind v3 the Sorry, tailwind v3 will probably not land unless someone figures out a "sensible subset" of a tailwind v3 config that can be published. Anyone with a plan, please feel free to comment/open a new issue :) |
I see, thank you for looking. If I understand correctly the package repository doesn't have a problem with lines of code as such - I believe elm install always pulls the code directly from GitHub? - but it does place a hard limit of 768000 bytes on the size of the generated docs. Even with completely empty doc comments the v3 docs.json is close to 8mb - so yeah, a v3 version of this package isn't going to be publishable in its current form. |
Great research, thanks for that. |
I've added an issue regarding the size limit: elm/package.elm-lang.org#361. I'd also love to see Tailwind 3 support. |
An update on this: @dillonkearns and I have actually started some work on abstracting out the color values from tailwind styles. I.e. you'd write |
See also matheus23/elm-tailwind-modules#12. |
@matheus23 and @dillonkearns how is this going? would be happy to try and help out anyway i can! |
There's not much you can do without having a lot of context on the ongoing work, but feel free to follow along with the remaining todos and commits we're pushing #13. We're making good progress! |
The most recent PR is now matheus23/elm-tailwind-modules#16 (due to some logistics). We've got a todo-list for remaining work: https://github.com/matheus23/elm-tailwind-modules/blob/67ad0973cb6787b99a12d12302604f21cbe7d1c9/Plan.md It's pretty much generating the Sorry the bottleneck there is pretty much me! |
Awesome, no worries. I get how it goes. If it helps, I think elm-tailwind-modules is very much underrated and I very much appreciate both your guys hard work. Elm is great, tailwind is great, and the ability to get tailwind classes type checking in the compiler with this package (and the ability to autogenerate it with https://html-to-elm.com) makes it all even better. Looking forward to using the stuff whenever it's out. Cheers! |
matheus23/elm-tailwind-modules#16 is now merged and released as elm-tailwind-modules version 0.5.0-alpha1. It now supports "abstracted out colors" in tailwind utilities: https://package.elm-lang.org/packages/matheus23/elm-default-tailwind-modules/latest/Tailwind-Utilities#bg_color This allows elm-default-tailwind-modules to barely fit within the 768kB upload limit for the package documentation. And yeah, needless to say I've uploaded elm-default-tailwind-modules version 3.0.0. It's built with tailwind version 3.1.8 for now. Let me know how this goes :) |
Hi there!
Here is a big fan of this library :)
Tailwind v3 came out some weeks ago. Are you planning to upgrade this library to support it?
Cheers!
The text was updated successfully, but these errors were encountered: