-
-
Notifications
You must be signed in to change notification settings - Fork 198
chore: upgrade tailwind v4 #784
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
base: main
Are you sure you want to change the base?
chore: upgrade tailwind v4 #784
Conversation
|
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
❌ Deploy Preview for histoire-site failed.
|
❌ Deploy Preview for histoire-controls failed.
|
❌ Deploy Preview for histoire-examples-svelte3 failed.
|
❌ Deploy Preview for histoire-examples-vue3 failed.
|
Hey Dennis, thank you so much for your contribution 😄 ! It seems some tests are failing, so we're waiting for everything to work properly before reviewing 😉 (don't mind the svelte test) If you need any help, feel free to ask! |
Thank you! 🫶 Of course this turned out to be more of a hassle than I initially thought. I'm trying to get each app inside
I will let you know how my progress is this week 👍 |
![]() @hugoattal this is what it currently looks like :) I'm still trying to port over the config to the css-based approach - the grays are giving me a hard time, I'm definitely gonna need someone to review the config-logic once I'm done 👍 |
I think I'm close to done on the core now - it looks/feels pretty much the same, but I probably missed some things. I'll get started on the plugins next, the tests are passing locally so far ✅ |
You rock 🤟 ! Let me know if you manage to make the tokens work! |
histoire
@histoire/app
@histoire/controls
@histoire/plugin-nuxt
@histoire/plugin-percy
@histoire/plugin-screenshot
@histoire/plugin-svelte
@histoire/plugin-vue
@histoire/shared
@histoire/vendors
commit: |
@hugoattal unfortunately, I don't think there is a way to actually do this right now 😢 Without the ability to get the users' actual config through javascript, we can't really display "their design system" inside the story. We could only "hardcode" the actual stories and variants, but I don't think that would be wise, since it wouldn't account for custom namings/scales the user would have in their repo. The only thing that ended up working was the I'm not sure how to proceed tbh - I've found a relevant discussion on the tailwind repo here. ![]() Let me know how we should proceed, other than this roadbump I'm pretty happy with the upgrade so far 👍 |
Hum, do you think it would be possible to list the tokens using something like getComputedStyle? Histoire would lose a big advantage for Tailwind users if we drop this completely 😕... If there are no solutions, I guess you could disable the tests related to tailwind tokens. Maybe we'll reintroduce them later, if they ever ship an alternative to the |
I agree that it would be a downgrade! You might be right, the official docs also suggest doing So (if I understand correctly) we can't really get the css-vars that are on root/document at this point in the code. |
Description
Upgrade Tailwind to v4.
Additional context
Has a couple of breaking changes that need some attention
https://tailwindcss.com/docs/upgrade-guide
What is the purpose of this pull request?