Skip to content

When I set a class "grow-14" in the element classes, the tailwind css class is not generated #4468

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

Open
spacether opened this issue Mar 12, 2025 · 4 comments
Labels
blocked Status: Blocked by another issue or dependency dependencies Type/scope: Third party libraries
Milestone

Comments

@spacether
Copy link

Description

When I set a class "grow-14" in the element classes, the tailwind css class is not generated

@evnchn
Copy link
Collaborator

evnchn commented Mar 12, 2025

https://github.com/zauberzeug/nicegui/blob/main/DEPENDENCIES.md

NiceGUI so far uses v3 of Tailwind CSS.

Image

First result if you search "tailwind flex grow" yields https://tailwindcss.com/docs/flex-grow, which, as of writing, links to the v4 documentation.

The website is a bit counter-intuitive in a sense that when you select v3.4.17 in the top-left, it redirects you to the homepage of Tailwind CSS v3... 😡

But, you can manually go to https://v3.tailwindcss.com/docs/flex-grow

Image

Getting back to how to do the equivalent of grow-14, at the end of the day, Tailwind CSS classes are just CSS styles under a trenchcoat. You can freely apply .style() to the elements.

grow- would be flex-grow: ;

So, grow-14 would be flex-grow: 14;

@falkoschindler any plans to go to Tailwind CSS v4? Perhaps milestone 3.0?

@falkoschindler
Copy link
Contributor

@evnchn Yes, we're usually upgrading third-party dependencies during major releases. So Tailwind version 4 will probably come with NiceGUI 3.0. We don't have a release schedule yet, but given 2.0 came in August 2024, I guess some time this summer would make sense.

@falkoschindler falkoschindler added the dependencies Type/scope: Third party libraries label Mar 13, 2025
@falkoschindler falkoschindler added this to the 3.0 milestone Mar 13, 2025
@evnchn
Copy link
Collaborator

evnchn commented Mar 13, 2025

Should we link to the C3 Tailwind CSS page and also put some description at https://nicegui.io/documentation/section_styling_appearance ?

Since Tailwind CSS changed the https://tailwindcss.com/ link to serve V4 content instead

@falkoschindler
Copy link
Contributor

Good idea. I've updated the links in d87ee22.

@falkoschindler falkoschindler added the blocked Status: Blocked by another issue or dependency label Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Status: Blocked by another issue or dependency dependencies Type/scope: Third party libraries
Projects
None yet
Development

No branches or pull requests

3 participants