This is a starter template for creating a custom Hugo theme. It comes pre-configured with Tailwind CSS, so you don’t have to set it up yourself. Ideal for developers building their own Hugo theme with Tailwind CSS.
hugo-tailwind-starter
|
│ .gitignore
│ .prettierrc
│ go.mod
│ hugo.toml
│ LICENSE
│ package-lock.json
│ package.json
| postcss.config.js
│ README.md
| tailwind.config.js
| theme.toml
| public/
|
├─── static
| └─── banner.png
|
├─── assets
| └─── css
| └─── index.css
| └─── main.css
|
├─── content
| └─── _index.md
|
├─── layouts
| ├─── 404.html
| └─── _default
| └─── baseof.html
| └─── home.html
| └─── partials
| ├─── footer.html
| ├─── head.html
| ├─── header.html
| └─── head
| └─── css.html
git clone https://github.com/aidil-sekandar/hugo-tailwind-starter.git
theme.toml:
Contains essential information about the theme.tailwind.config.js:
Tailwind’s configuration file.postcss.config.js:
PostCSS’s configuration file.package.json:
List of necessary npm dependencies..prettierrc:
Prettier’s configuration file./assets/css/index.css:
Auto-generated CSS classes by Tailwind./assets/css/main.css:
The theme’s main/global CSS filenpm install
to install the necessary dependencies.npm run dev
to start the development server