Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A boilerplate for Hugo sites based on Tailwind CSS.
Hugo Tailwind Boilerplate is a minimal open-source starter template that pairs the Hugo static site generator with Tailwind CSS, using gulp and PostCSS as the build pipeline. The repository is designed as a very simple foundation for Hugo sites, providing the default Tailwind configuration file and a basic layout to build upon. It requires only Hugo and node/npm to run, and it currently has 21 stars on GitHub.
Hugo Tailwind Boilerplate is a boilerplate repository for creating Hugo static sites styled with Tailwind CSS. As input, it takes site content and layout files in the ./content and ./layouts folders; as output, it produces a static website in the ./public directory when the deploy script is run. The platform stack is Hugo for site generation, gulp for task automation, and PostCSS with the Tailwind CSS plugin for styling. It is intended as a starting point that developers can fork and extend.
dev-css and build-css, process Tailwind CSS through PostCSS to generate stylesheets for development and production.npm run start runs the local development environment, and npm run deploy builds the minified site into ./public using hugo --minify.tailwind.config.js is set up to automatically purge unused styles from the ./content and ./layouts folders when NODE_ENV=production, reducing the final CSS file size.layouts/_default/baseof.html, giving a simple HTML skeleton for the site.txt files to preserve the directory structure when the repository is downloaded or forked.localhost:1313.npm install, then npm run start to see a one-page demo at localhost:1313 with Tailwind classes available in the browser.layouts/_default/baseof.html and the content in ./content to shape your site's structure and pages.npm run deploy to generate a minified production build in ./public, ready to be hosted on any static file server.The workflow is simple: after installing dependencies, the start script runs the gulp dev-css task and serves the Hugo site locally, so you can develop with Tailwind utility classes instantly. The deploy script runs the build-css task with production purging enabled and then executes hugo --minify to produce the final static output.
Yes, it is an open-source boilerplate hosted on GitHub, so you can use, clone, and fork it without charge. The only costs are installing Hugo and node/npm on your machine.
The boilerplate links to Tailwind CSS v1 documentation for its purge functionality, so it is based on Tailwind v1. It uses PostCSS, so you can upgrade to newer versions with some configuration changes.
The deploy script builds the entire site into the ./public folder using hugo --minify, producing minified HTML and assets that can be uploaded to any static hosting service.
No, the repository carries a "No Maintenance Intended" badge, indicating that the original author does not plan to maintain it further. You may need to adapt it for newer versions of Hugo or Tailwind CSS.
