Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A static site starter template using Tailwind CSS and Gulp.
Tailwind Template is a static site starter template that couples the Tailwind CSS utility-first framework with a Gulp build pipeline, giving you a pre-configured project for compiling custom utility classes into a minified stylesheet and packaging a plain HTML site for deployment.
Tailwind Template is a GitHub-hosted boilerplate maintained by harvanchik for hand-written HTML websites. You install dependencies with pnpm install, author HTML in the root folder, and the project compiles the source file assets/styles/tailwind.css into a production-ready assets/styles/styles.css using Tailwind's JIT engine and PostCSS. It takes HTML files, Tailwind utility classes, and a tailwind.config.js as inputs, and produces a dist folder containing minified HTML, SVG, JavaScript, optimized images, and the compiled CSS.
pnpm install instead of npm install to generate node_modules.pnpm run dev starts a long-running watch process that recompiles CSS whenever you save an HTML file, tailwind.css, or tailwind.config.js, without minifying the output.pnpm run prod compiles CSS exactly once, using only classes found in root HTML files, and writes minified styles to assets/styles/styles.css.gulp creates a dist folder, copies source and assets, minifies HTML, SVG, and JavaScript files, and optimizes PNG, JPG, and GIF images via gulp-image.destination variable in gulpfile.js controls the build folder name (defaults to dist), so you can switch it to docs to deploy to GitHub Pages.pnpm run dev for instant CSS updates, then run gulp to produce a minified dist folder.destination variable in gulpfile.js from dist to docs, run the prod and gulp builds, and push the docs folder.pnpm install in the project root.pnpm run dev to start the CSS watcher; it recompiles on every save of HTML, tailwind.css, or tailwind.config.js.tailwind.css again — development builds only add classes, they do not remove unused ones until a full rebuild.pnpm run prod to compile minified CSS once.gulp to build the dist folder with minified and optimized files.Yes, the template is hosted on GitHub under a license (see the LICENSE file) and can be cloned and used by anyone. No payment is mentioned in the documentation.
You need Node.js with pnpm installed. For the recommended workflow, install the Tailwind CSS Extension Pack and Live Server extensions in VS Code. Then run pnpm install to get all dependencies.
Edit the variable named destination near the top of gulpfile.js. It defaults to dist; changing it to docs is a common way to prepare a project for GitHub Pages.
No. pnpm run dev outputs unminified CSS while watching for changes. Only pnpm run prod and the Gulp build produce minified CSS.
Tailwind Template is free to use as an open-source static site starter repository on GitHub.
