A static website starter project using Eleventy and Tailwind CSS.
To install: npm i
To run live server: npm run serve
, you can then navigate to localhost:8080 to view the site.
To build for production: npm run build
, the output is in the folder /_site
All CSS is defined a single file, /styles/tailwind.css
. Alongside it is /styles/tailwind.config.js
which contains config (eg, for custom colors)
Site content is in /site
Templates are in /_includes
11ty
: static site generatortailwindcss
: CSS frameworkpostcss
: CSS processingautoprefixer
: postcss plugin, needed for tailwindcssnano
: postcss plugin, for CSS minificationcross-env
: cross platform setting env vars in npm scriptsconcurrently
: cross platform (works in windows) instead of &
in npm scriptsnpm-run-all
: to run multiple npm scripts in the package.json