A minimal Hugo theme starter with only TailwindCSS.
What it has:
This is how it's set up:
hugo new theme
create basic theme structure.exampleSite
directory, cd
to it and:content
in theme root to hereconfig
direcory, cd
to it and:_default
directory for exampleSite developmenttheme
directory for theme developmenttailwind.config.js
postcss.config.js
layout/head/css.html
To Preview ExampleSite:
hugo server --logLevel=debug --environment=theme --source=exampleSite --themesDir=../.. --disableFastRender -D --port 1313
# or
npm run dev:theme
To build theme:
npx postcss --config postcss.config.js --env production assets/css/styles.css -o assets/css/main.css
# or
npm run build:css