Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tailwind 4 is finally out!
We manually upgraded with @MinixBF using the migration guide. Unfortunately, the migration script didn’t work due to a cryptic error, and we had to go over everything by hand.
I also used some of the new features of Svelte 5 introduced during the advent of Svelte, namely built-in clsx and svelte/reactivity/window, to fix Tailwind no longer recognizing Svelte class directives (tailwindlabs/tailwindcss/discussions/15312).
Pain points
Could not load the configuration file: localAPI.addDefaults is not a function
The migration guide doesn't state that we have to installit turns out it's not even useful anymore; all of that is gone!@tailwindcss/postcss
(same for/vite
, though this one is obvious from the import in the example)background-image
- the docs tell us to use--color
but it doesn't work with thatcursor-pointer
styles seem gone from the Preflight despite not being mentioned anywherebackdrop-blur
are also concerned by the "blur
migration" despite not being called outedit: it works when reordering the Vite plugins, which is not what the official installation docs state!class:
directives are broken (see discussion linked above)--font-sans: MyFont, var(--font-sans);
) without creating a new propertytext-primary
andbg-primary
)