Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A minimal Hugo starter integrating Tailwind CSS, PostCSS, and PurgeCSS for fast static sites.

A full-stack Next.js TypeScript template focused on functionality over UI, featuring Zustand, TanStack Query, and ESLint 9 support.
hugo-tailwind3-starter is a minimal Hugo starter project that integrates Tailwind CSS through PostCSS and strips unused styles with PurgeCSS in production builds. It doubles as both a project starter and a Hugo theme module, with a Netlify preview deployment that scores 100 on Google PageSpeed Insights for mobile and desktop.
hugo-tailwind3-starter is a bare-bones Hugo site starter created by BenjaminPrice and published on GitHub. It takes Hugo content as input and outputs a static site with a Tailwind CSS stylesheet, using PostCSS as the processing layer and PurgeCSS to remove unused CSS when building for production. The repository includes the Tailwind typography plugin so Markdown-generated content is styled out of the box.
github.com/BenjaminPrice/hugo-tailwind3-starter.npm install and npm start; theme users run hugo mod npm pack then npm install.As a project, cloning the repository and running npm install followed by npm start starts the Hugo development server with Tailwind processing. As a theme, you add github.com/BenjaminPrice/hugo-tailwind3-starter to your Hugo modules configuration, run hugo mod npm pack to generate the package files, then run npm install. The production build runs PostCSS and PurgeCSS so the final static site ships only the CSS classes actually used.
Yes. The readme explicitly states the setup works both as a starter project and as a theme. Import it with Hugo Modules by adding github.com/BenjaminPrice/hugo-tailwind3-starter, then run hugo mod npm pack and npm install.
The Netlify preview deployment currently receives a 100 on Google PageSpeed Insights for both mobile and desktop, plus a near-perfect Lighthouse score. These scores apply to the starter's default sample content.
The starter bundles Tailwind CSS version 3, the official Tailwind typography plugin, PostCSS as the preprocessing step, and PurgeCSS for production CSS cleanup.
Clone the repository, run npm install, then npm start. The Hugo development server starts with the Tailwind build pipeline already configured for you.
Yes, it ships with Markdown content adapted from mxstbr/markdown-test-file, which exercises headings, lists, blockquotes, and code blocks so you can see the typography plugin's output.
