A starter kit for using the Jigsaw static site generator with Tailwind CSS.
- Webpack + Laravel Mix build system
tailwind.js
config file in root, customize as needed- Uses
mix()
to fetch the CSS asset path and apply versioning - Removes unused Tailwind CSS classes with laravel-mix-purgecss (production build only)
- Basic example of
@apply
ing Tailwind CSS classes. Useful when you write in Markdown and have no control over markup.
-
Clone this repo
-
Navigate to the folder
cd jigsaw-tailwindcss
-
Install JS dependencies
npm install
-
Install PHP dependencies
composer install
-
Run the dev script to build the site
npm run dev
To use Browsersync, run the watch script instead: npm run watch
Note: as mentioned, unused CSS will be removed only when you build for production: npm run production
A framework for rapidly building static sites using the same modern tooling that powers your web applications. - Jigsaw
A Utility-First CSS Framework for Rapid UI Development - Tailwind CSS