git-blog-theme Tailwind Templates

Git Blog Theme

github blog theme - using tailwind-css

git-blog-theme

Introduction

Firstly all rights and credit to Jeffrey van Rossum & TailPress website. I got into Wordpress following the you-tube screencasts series, and 90% of this theme was done back then, I only recently found time to finish the last 10% & felt it maybe helpful to others just starting out.

I was a Ruby developer so please excuse the php that you find around the place, and I may have layed things out in a non Wordpress way.

git-blog-theme is a minimal boilerplate theme for WordPress using Tailwind CSS.

Getting started

My setup includes developing Wordpress using Local on top of Ubuntu 23.10 Linux. I've just been using Local in isolation and not connecting to any of their services.

View the Theme

Currently in use at git-blog-theme

Clone Theme & Install

  • Clone repo git clone https://github.com/matoni109/git-blog-theme.git && cd git-blog-theme
  • Run npm install
  • Run npm run watch to start developing
  • I use npm run watch-sync which uses browser-sync - check package.json for proxy setup info using Local

Can I just download git-blog-theme ?

Yes you can. Head over to releases and download the latest.

Upload the zip file to your WordPress install in Appearance > Themes.

General

You will find the editable CSS and Javascript files within the /resources folder.

template-parts/components & cards contain the main features that I've added along the way, others include:

  • Pagination
  • Responsive CSS
  • Search / Author / Category / Archive Pages
  • Gravatar
  • Wordpress template page identifier - "on/off" in functions.php ~ line050

Before you use your theme in production, make sure you run npm run production.

NPM Scripts

There are several NPM scripts available. You'll find the full list in the package.json file under "scripts". A script is executed through the terminal by running npm run script-name.

Script Description
production Creates a production (minified) build of app.js, app.css and editor-style.css.
dev Creates a development build of app.js, app.css and editor-style.css.
watch Runs several watch scripts concurrently.
production-zip Runs production and then creates a zip for theme export.

Define theme colors and font sizes

Several colors and font sizes are defined from the beginning. You can modify them in theme.json.

Contributors

License

MIT. Please see the License File for more information.

Top categories

Loading Svelte Themes