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.
This PR includes the migration of TailwindCSS to v4. This version changes makes
TailwindCSS rely mostly on CSS files, over other configuration formats. Taking
advantage of this migrations, many things are changed in favour of a simpler
setup.
Ideally, I'd want to also simplify the output CSS, as previously it is was a
mess.
Changes/Roadmap
postcss
tw configuration, in favor of running tw with the newvite plugin.
idea, I ended up having issues in the new version, as variables such as color
variables are being duplicated with each prefix. I'd prefer re-using variables
as it would simplify the code and the CSS size. This means that special care
will be required when re-using classes as some already generated classes may be
overlapped and due to the cascade approach, be ignored.
This will, for sure, help in having a reduced CSS file output. Another approach
that could be worth looking into, is serving CSS files separately. Having
different links into the generated CSS files from the various packages and then
the CSS of the app itself, taking precedence. This approach would difficult
reducing the output CSS, and would require more investigation on how would tw
generate the classes. Most likely using the
@source
directive would help.example, the
typography
plugin now is simply a CSS file exported from@stack/tailwind-config
.aria
plugin in favour oftw-aria