A WordPress theme for 73k.us that utilizes Bootstrap 5, Webpack 5, MaterialDesignIcons via SVG sprite, + PurgeCSS.
Find a file
dependabot[bot] 439adc5c5d
Bump lodash from 4.17.11 to 4.17.15
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.15.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.11...4.17.15)

Signed-off-by: dependabot[bot] <support@github.com>
2020-04-06 15:52:08 +00:00
assets initial commit, yay 2019-05-23 10:30:31 -06:00
content-templates initial commit, yay 2019-05-23 10:30:31 -06:00
page-templates initial commit, yay 2019-05-23 10:30:31 -06:00
src initial commit, yay 2019-05-23 10:30:31 -06:00
.gitignore remove tracked vendor files 2019-10-24 21:06:55 -06:00
404.php initial commit, yay 2019-05-23 10:30:31 -06:00
archive.php initial commit, yay 2019-05-23 10:30:31 -06:00
comments.php initial commit, yay 2019-05-23 10:30:31 -06:00
composer.json add composer and update 2019-10-24 21:06:18 -06:00
composer.lock add composer and update 2019-10-24 21:06:18 -06:00
footer.php initial commit, yay 2019-05-23 10:30:31 -06:00
functions.php add composer and update 2019-10-24 21:06:18 -06:00
header.php initial commit, yay 2019-05-23 10:30:31 -06:00
index.php initial commit, yay 2019-05-23 10:30:31 -06:00
package-lock.json Bump lodash from 4.17.11 to 4.17.15 2020-04-06 15:52:08 +00:00
package.json updates 2019-11-04 20:57:00 -07:00
README.md add composer and update 2019-10-24 21:06:18 -06:00
screenshot.png initial commit, yay 2019-05-23 10:30:31 -06:00
search.php initial commit, yay 2019-05-23 10:30:31 -06:00
sidebar.php initial commit, yay 2019-05-23 10:30:31 -06:00
style.css initial commit, yay 2019-05-23 10:30:31 -06:00
tailwind.js initial commit, yay 2019-05-23 10:30:31 -06:00
webpack.config.js initial commit, yay 2019-05-23 10:30:31 -06:00

WordPress Tailwind Starter Theme

A minimalistic WordPress starter theme, based on Tailwind and PurgeCSS.

Requirements

How to get started

  1. Clone or download the project onto your themes directory (./wp-content/themes)
  2. Run a find/replace for the following strings:
  • wp-tailwind
  • WP_Tailwind
  • wp_tailwind_
  1. Run composer install
  2. Run npm install
  3. Update the BrowserSyncPlugin configuration in webpack.config.js to the domain of your local installation.
  4. Run npm start to begin development server.

Webpack

The theme uses Webpack as its bundler with ES6 modules for JavaScript files. It also compresses images found in src automatically, and maps images to the appropriate destination through the @images alias. For example, @images/example.jpg would be compiled to ../images/example.jpg.

Deployment

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 true.

Tailwind

Using the tailwind.js file, you can customize Tailwind's default styles before things get compiled. For more information on configuration, see detailed documentation on Tailwind.

PurgeCSS

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.

Credits

Originally inspired by the Heisenberg by Zeek Interactive.