WordPress Tailwind Starter Theme
A minimalistic WordPress starter theme, based on Tailwind and PurgeCSS.
How to get started
- Clone or download the project onto your
- Run a find/replace for the following strings:
- Update the BrowserSyncPlugin configuration in
webpack.config.jsto the domain of your local installation.
npm startto begin development server.
@images alias. For example,
@images/example.jpg would be compiled to
npm run build
This will run both a production and development set of webpack tasks. The enqueue hook will load the correct version of the JS file, based on whether your development/staging server's
SCRIPT_DEBUG constant is set to
tailwind.js file, you can customize Tailwind's default styles before things get compiled. For more information on configuration, see detailed documentation on Tailwind.
WP Tailwind uses PurgeCSS to remove unused styles from the production build. It scans your project directory for strings that match SCSS declarations. You can modify the directories to search for in the
webpack.config.js file. Always check your production build to make sure styles you were developing with compiled correctly.