Installation
About TailPress
TailPress is a boilerplate theme for WordPress using Tailwind CSS. In its current iteration, in addition to being a boilerplate, a more robust ecosystem is being built around it.
Requirements
To use TailPress, we recommend using:
- Composer
- NPM
- PHP 8.0 or higher
- WordPress 6.2 or higher
Creating a TailPress theme
Using the installer
The easiest way to create a theme is by using the TailPress installer. To install it you'll need to have Composer installed. Then, run the following command:
1composer global require tailpress/installer
After that, you should be able to use the tailpress
executable. To test it, try running:
1tailpress --version
If the command is not found, make sure to place Composer's global vendor bin directory in your $PATH
so the tailpress
executable can be found by your system. This directory exists in different locations based on your operating system; however, some common locations include:
- macOS:
$HOME/.composer/vendor/bin
- Windows:
%USERPROFILE%\AppData\Roaming\Composer\vendor\bin
- GNU / Linux Distributions:
$HOME/.config/composer/vendor/bin or $HOME/.composer/vendor/bin
You could also find the composer's global installation path by running composer global about
and looking up from the first line.
Creating a theme
After you have installed PHP, Composer, and the TailPress installer, you're ready to create your new theme. The installer will prompt you to select your preferred setup:
1tailpress new your-theme-folder-name
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.