PHPackages                             cnzaicom/tailwindcss - 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. cnzaicom/tailwindcss

ActiveLibrary

cnzaicom/tailwindcss
====================

Laravel frontend preset for Tailwind CSS

09Blade

Since May 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/cnzaicom/tailwindcss)[ Packagist](https://packagist.org/packages/cnzaicom/tailwindcss)[ RSS](/packages/cnzaicom-tailwindcss/feed)WikiDiscussions main Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Usage
-----

[](#usage)

1. Fresh install Laravel &gt;= 7.0 and `cd` to your app.
2. Install this preset via `composer require cnzaicom/tailwindcss --dev`. Laravel will automatically discover this package. No need to register the service provider.
3. Edit tailwindcss.config.js to add `plugins: [ require('@tailwindcss/forms'), require('@tailwindcss/typography'), require('tailwindcss-children'), ]`
4. Edit webpack.mix.js like this

```
mix.js('resources/js/app.js', 'public/js')
    .postCss('resources/css/app.css', 'public/css', [
        require('tailwindcss'),
        /*自动增加 CSS 前缀词*/
        require("autoprefixer"),
        /*在 CSS 用嵌套的写法*/
        require('postcss-nested'),
        /*在 CSS 里可以 import 其他 CSS*/
        require('postcss-import'),
    ]);

```

### a. For Presets without Authentication

[](#a-for-presets-without-authentication)

1. Use `php artisan ui tailwindcss` for the basic Tailwind CSS preset
2. `npm install && npm run dev`
3. `php artisan serve` (or equivalent) to run server and test preset.

### b. For Presets with Authentication

[](#b-for-presets-with-authentication)

1. Use `php artisan ui tailwindcss --auth` for the basic preset, auth route entry, and Tailwind CSS auth views in one go. (NOTE: If you run this command several times, be sure to clean up the duplicate Auth entries in `routes/web.php`)
2. `npm install && npm run dev`
3. Configure your favorite database (mysql, sqlite etc.)
4. `php artisan migrate` to create basic user tables.
5. `php artisan serve` (or equivalent) to run server and test preset.

### Screenshots

[](#screenshots)

[![Welcome](/screenshots/welcome.png)](/screenshots/welcome.png)

[![Register](/screenshots/register.png)](/screenshots/register.png)

[![Login](/screenshots/login.png)](/screenshots/login.png)

[![Reset Password](/screenshots/reset-password.png)](/screenshots/reset-password.png)

[![Dashboard](/screenshots/dashboard.png)](/screenshots/dashboard.png)

[![Verify](/screenshots/verify.png)](/screenshots/verify.png)

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19220423?v=4)[cnzaicom](/maintainers/cnzaicom)[@cnzaicom](https://github.com/cnzaicom)

---

Top Contributors

[![cnzaicom](https://avatars.githubusercontent.com/u/19220423?v=4)](https://github.com/cnzaicom "cnzaicom (16 commits)")

### Embed Badge

![Health badge](/badges/cnzaicom-tailwindcss/health.svg)

```
[![Health](https://phpackages.com/badges/cnzaicom-tailwindcss/health.svg)](https://phpackages.com/packages/cnzaicom-tailwindcss)
```

PHPackages © 2026

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