• Stars
    star
    1,251
  • Rank 37,562 (Top 0.8 %)
  • Language
    PHP
  • License
    MIT License
  • Created about 5 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

TailPress is a minimal boilerplate theme for WordPress using Tailwind CSS.

TailPress

GitHub release License issues - tailpress

Introduction

TailPress is a minimal boilerplate theme for WordPress using Tailwind CSS.

Getting started

Using the installer

You can get started using the installer (using composer):

composer global require jeffreyvanrossum/tailpress-installer

tailpress new example-theme

If you haven't already, make sure to place the ~/.composer/vendor/bin directory in your PATH so the tailpress executable is found when you run the tailpress command in your terminal.

You can optionally set the theme name.

tailpress new example-theme --name="Example Theme"

By default, TailPress uses Laravel Mix for compiling. Rather use Esbuild?

tailpress new example-theme --compiler="esbuild"

You can also initialize a new Git repository (branch defaults to main):

tailpress new example-theme --name="Example Theme" --git --branch="main"

Once your theme is ready, don't forget to cd into the directory.

You will be asked if you would like to have WordPress installed as well. Keep in mind that you still need a local development environment for PHP and MySQL.

Regular method

  • Clone repo git clone https://github.com/jeffreyvr/tailpress.git && cd tailpress
  • Run rm -rf .git to remove git (or rmdir .git for Windows)
  • Run npm install
  • Run npm run watch to start developing

General

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

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.

Block editor support

TailPress comes with support for the block editor.

A basic setup for theme.json is included. This also means that you need to at least use WordPress 5.8. If you wan't to support earlier WordPress versions, you can use an older version of TailPress instead.

CSS-classes for alignment (full, wide etc.) are generated automatically. You can opt-out on this by removing the plugin from the tailwind.config.js file.

To make the editing experience within the block editor more in line with the front end styling, a editor-style.css is generated.

Define theme colors and font sizes

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

Links

Contributors

License

MIT. Please see the License File for more information.

More Repositories

1

dropblockeditor

A nice block based editor made with Laravel Livewire.
PHP
96
star
2

wp-settings

A package that makes creating WordPress settings pages a breeze.
PHP
77
star
3

paver

The drag and drop editor for PHP developers.
JavaScript
21
star
4

thegithubblog

CSS
10
star
5

tailwindcss-tailpress

Tailwind CSS plugin for TailPress.
JavaScript
8
star
6

taylor-otwell-vscode-theme

Theme based on Taylor Otwell's Sublime theme.
6
star
7

wp-meta-box

PHP
5
star
8

easy-liveblogs

Liveblogs for WordPress.
PHP
3
star
9

tailpress-sass-demo

TailPress using Sass instead of PostCSS.
PHP
3
star
10

vanrossum.dev

Personal site
PHP
3
star
11

phpstorm-inspired-github-theme

Inspired Github theme for PHPStorm.
3
star
12

tailpress-installer

A handy installer for TailPress.
PHP
3
star
13

rdw-opendata-php

Simple library for getting vehicle data by license plate number.
PHP
3
star
14

laravel-simple-media

SimpleMedia for Laravel is a package to handle media attached or unattached to Eloquent models.
PHP
3
star
15

tailpress-child-theme-demo

JavaScript
2
star
16

batch-script

WordPress batch script plugin
PHP
2
star
17

wp-log

Simple package to write and display a log file in WordPress
PHP
2
star
18

paver-for-wordpress

The drag and drop editor for PHP developers.
PHP
1
star
19

paver-for-laravel

The drag and drop editor for PHP developers.
PHP
1
star
20

wp-job-scheduler

PHP
1
star
21

vanrossum-dev-tools

WordPress plugin that provides some development tools for local development.
PHP
1
star
22

tailpress-custom-font-example

An example of TailPress with a custom font.
CSS
1
star
23

members-multisite-user-roles-sync

This is a simple Multisite add-on for Justin Tadlock's Members plugin, which synchronizes user (multiple) roles on all network sites.
PHP
1
star
24

wp-plugin-skeleton

PHP
1
star
25

wp-simple-encryption

A simple package to encrypt and decrypt strings in WordPress.
PHP
1
star