A Hugo minimal boilerplate with TailwindCSS + JIT + Tailwind/typography

After failing with many Hugo+Tailwind tries I finally found a working one that cleans and minimizes the CSS - and I added Tailwind JIT and @tailwind/typography.

My try is on GIT

And here is a demo:
https://hugo-tailwind-jit.netlify.app

(I am far far away from being an expert, just doing a starter kit here)

1 Like

The above repo worked for me, but had some issues. Sometimes you had to re-start to make a class work, and some classes (like the code on dark background on md pages) I had to add manually into the final css. With Tailwind 3.0 this repo is obsolete, here is a new one with Tailwind 3.0 (also with typogrphy pre-installed, otherwise very barebone) >>

1 Like