PHPackages                             drozzi-pro/wp-theme - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. drozzi-pro/wp-theme

ActiveProject[Utility &amp; Helpers](/categories/utility)

drozzi-pro/wp-theme
===================

Theme Wordpress for development. Includes: Webpack

1.0.1(3y ago)015proprietaryPHP

Since Sep 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/drozzi-pro/wp-theme)[ Packagist](https://packagist.org/packages/drozzi-pro/wp-theme)[ RSS](/packages/drozzi-pro-wp-theme/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (1)Versions (6)Used By (0)

Boilerplate Wordpress Theme with Tailwindcss &amp; Vite
=======================================================

[](#boilerplate-wordpress-theme-with-tailwindcss--vite)

Example of using Vite + TailwindCSS in Wordpress Theme development. Auto generating CSS, auto refresh on every file save/edit and easy production build tool with no hassle. Inspired by [vitejs/vite#341](https://github.com/vitejs/vite/issues/341)

[![](assets/img/hello-world.jpg)](assets/img/hello-world.jpg)

Main features
-------------

[](#main-features)

- fast Auto browser refresh/sync file change/save
- built in Tailwindcss Just-in-time compiler
- extremely small CSS as there is no unsued css at all
- keep your local domain while developing
- `npm run build` for production packing Javascript and CSS

Installation (Node.js/npm required):
------------------------------------

[](#installation-nodejsnpm-required)

Clone or Unpack and copy folder to your Wordpress installation /wp-content/themes/ folder, or install theme via wp-admin by uploading .zip file and activate the theme. Then from your console or command prompt go to the theme folder and run **npm install**. Note: NodeJS is requred.

```
npm install
```

Quick commands:

```
# dev server start
npm run dev

# production build
npm run build
```

Setup
-----

[](#setup)

Entry point file **main.js** is where you include all your scripts and styles. It can be changed via **vite.config.json** and **functions.php**.

```
# get styles
import "./assets/css/styles.css"

# get scripts
import "./assets/js/scripts.js"
```

Development with live preview/refresh
-------------------------------------

[](#development-with-live-previewrefresh)

Ensure **define("IS\_VITE\_DEVELOPMENT", true);** exists in your **wp-config.php** or theme/plugin **functions.php**. Just run **npm run dev** and refresh your development website.

```
npm run dev
```

After Vite dev server is started open your installed Wordpress website in any browser or refresh it. Then you can start editing index.php, or any other php file in your theme, by adding elements and Tailwind classes. After saving changes your browser page eg your site should refresh immediately. You can freely edit asset files like styles.css, scripts.js too.

Production build
----------------

[](#production-build)

Just run **npm run build**, set defined **IS\_VITE\_DEVELOPMENT** to **false** and refresh local website.

```
npm run build
```

Wordpress should load now production generated assets.

Note: To ensure classes used inside CMS to be processed just add them to safelist.txt and run build again.

Sass / Less
-----------

[](#sass--less)

CSS Pre-processors are also supported by ViteJS

```
# .scss and .sass
npm add -D sass

# .less
npm add -D less
```

Please check link for details.

Note for httpS serving
----------------------

[](#note-for-https-serving)

If your local development domain is served via **https**:// then generating certificate for localhost usage and some changes in config are required

- install mkcert utility and follow the instructions how to generate &amp; install certificate
    - example on Windows 10 (PowerShell as Administrator)

```
# install mkcert
choco install mkcert

# global one time install
mkcert -install

# run in project/theme folder to create localhost-key.pem & localhost.pem
mkcert localhost
```

- enable server.https option in **vite.config.js**
- change VITE\_SERVER to http**s** in your **functions.php**

Customizations
--------------

[](#customizations)

More info on the links below

-
-

Visual Studio Code Tailwind Intellisense plugin is a must.

---

That's it.

Happy coding! :)

---

Change log
----------

[](#change-log)

### v0.3.2

[](#v032)

- Refresh speed improved (file search pattern fixed in tailwind.config.js)
- Package name changed
- Vite script loading logic moved to inc/inc.vite.php
- Homepage updated
- Hashed assets filenames on build, force reload not needed

### v0.3.1

[](#v031)

- Demo layout updated
- Hello World preview image replaced
- Package updates:
    - postcss ^8.4.7 → ^8.4.12
    - autoprefixer ^10.4.2 → ^10.4.4
    - vite ^2.8.6 → ^2.9.1

### v0.3.0

[](#v030)

- Tailwindcss 3 config fixes

Packages updates:

- autoprefixer ^10.2.5 → ^10.4.2
- postcss ^8.2.14 → ^8.4.7
- postcss-nested ^5.0.5 → ^5.0.6
- tailwindcss ^2.1.2 → ^3.0.23
- vite ^2.2.4 → ^2.8.6

### v0.2.7

[](#v027)

- Tailwind updated to 2.2.16
- PostCSS updated to v8.3.8
- Autoprefixer updated to 10.3.6
- Vite updated to v2.6.2

### v0.2.6

[](#v026)

- Tailwind updated to 2.2.15
- Vite updated to v2.5.7
- Autoprefixer updated to 10.3.4
- PostCSS updated to v8.3.6
- PostCSS-Nested updated to 5.0.6
- IS\_VITE\_DEVELOPMENT check fix

### v0.2.5

[](#v025)

- PostCSS updated to v8.2.14

### v0.2.4

[](#v024)

- https solution added
- 404.php template file added

### v0.2.3

[](#v023)

- Vite updated to v2.2.4
- PostCSS updated to v8.2.13
- Tailwindcss updated to v2.1.2
- https option included into server vite.config.js

### v0.2.2

[](#v022)

- small workaround added in order Tailwindcss Intellisense to work
- postcss package updated to v8.2.10
- index.php splited into header.php &amp; footer.php
- example page.php template with responsive container added

### v0.2.1

[](#v021)

- TailwindCSS updated to 2.1.1 (JIT is included in this version)
- experimental @tailwindcss/jit removed
- functions.php cleanup
- tailwind.config.js, mode 'JIT' added (v2.1.1)
- postcss.config.js updated

### v0.1.0

[](#v010)

- initial release

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~37 days

Total

4

Last Release

1285d ago

Major Versions

0.0.2 → 1.0.12022-09-07

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/101870556?v=4)[Дрожжи](/maintainers/drozzi-pro)[@drozzi-pro](https://github.com/drozzi-pro)

---

Top Contributors

[![drozzi-pro](https://avatars.githubusercontent.com/u/101870556?v=4)](https://github.com/drozzi-pro "drozzi-pro (1 commits)")[![kviron](https://avatars.githubusercontent.com/u/69055185?v=4)](https://github.com/kviron "kviron (1 commits)")

### Embed Badge

![Health badge](/badges/drozzi-pro-wp-theme/health.svg)

```
[![Health](https://phpackages.com/badges/drozzi-pro-wp-theme/health.svg)](https://phpackages.com/packages/drozzi-pro-wp-theme)
```

###  Alternatives

[martin1982/live-broadcast-bundle

Bundle for live-streaming to various online networks

502.5k1](/packages/martin1982-live-broadcast-bundle)[skecskes/calendar

Laravel 5 Flexible Calendar

144.3k](/packages/skecskes-calendar)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
