A basic and simple to set up Hugo with TailwindCSS starter project.
The Hugo Basic Starter for TailwindCSS v3.x is a simple starter template designed to quickly set up a Hugo project with TailwindCSS and its typography plugin. It also includes a build setup using PostCSS and PurgeCSS for optimizing the production build. The starter template has been optimized for performance and currently achieves a perfect score of 100 on both mobile and desktop on Google PageSpeed when deployed on Netlify. This template can be used both as a starter project or as a theme for existing Hugo projects.
To use the Hugo Basic Starter for TailwindCSS v3.x:
Import the starter template into your project by adding the following line to your project’s config.toml
file:
import github.com/bep/hugo-starter-tailwind-basic/v3
If you are using TailwindCSS 2.x, use the following import instead:
import github.com/bep/hugo-starter-tailwind-basic/v2
Run your Hugo project as usual.
The Hugo Basic Starter for TailwindCSS v3.x is a lightweight and optimized starter template that enables developers to quickly set up a Hugo project with TailwindCSS and its typography plugin. With built-in build optimization techniques like PostCSS and PurgeCSS, the template ensures faster page load times and improved performance. Whether used as a starter project or as a theme with an existing Hugo project, this template provides a solid foundation for efficient and visually appealing websites.