Skip to content

deggler/hugo-starter-tailwind-basic

 
 

Repository files navigation

hugo-starter-tailwind-basic

Netlify Status

Note: There is a bug that is fixed in the upcoming Hugo 0.76 where styles are not rebuilt when your Tailwind or PostCSS config changes. If you want that sooner you can build Hugo from source.

A very simple starter set up with TailwindCSS and its typography plugin and a build setup using PostCSS and PurgeCSS (when running the production build).

This setup can be used both as a starter project and a theme.

As a Project

npm install
hugo server

As a Theme

Import it into your project, and then run:

hugo mod npm pack
npm install

You need to add this to your config.toml (the stats are used by the CSS purging):

[build]
writeStats = true

Then run your project as usual.

About

A basic and simple to set up Hugo with TailwindCSS starter project.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 55.7%
  • HTML 35.7%
  • CSS 8.6%