Skip to content
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 4 (in progress) #19

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Tailwind 4 (in progress) #19

wants to merge 3 commits into from

Conversation

bep
Copy link
Owner

@bep bep commented Jun 21, 2024

https://tailwindcss.com/blog/tailwindcss-v4-alpha

This seems to work on the fundamental level.

Some notes:

  • Tailwind now comes with @import suppport built in, which isn't compatible with Hugo's inlineImports=true option. We probably need to establish some kind of namespace in Hugo to get both to work well together.
  • This seem to work fine with PostCSS, but since the autoprefixer now is built into TailwindCSS, this could probably be much more performant if we created a resources.TailwindCSS func that uses the Tailwind Oxide directly ... Maybe.

A new feature coming in next Hugo.

See gohugoio/hugo#12587
@bep
Copy link
Owner Author

bep commented Jun 23, 2024

I will add a css.TailwindCSS template func to Hugo v0.128.0. Will be out in a day or two. It works very well with TailwindCSS v4 alpha 16.

gohugoio/hugo#12619

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant