PHPackages                             phpcolor/tailwind-colors - 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. phpcolor/tailwind-colors

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

phpcolor/tailwind-colors
========================

Tailwind Colors - PHP Color Palette

v0.2.0(2y ago)187MITPHPPHP &gt;=8.3

Since Apr 10Pushed 5mo agoCompare

[ Source](https://github.com/phpcolor/tailwind-colors)[ Packagist](https://packagist.org/packages/phpcolor/tailwind-colors)[ Docs](https://phpcolor.dev/)[ RSS](/packages/phpcolor-tailwind-colors/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (6)Used By (0)

Tailwind Colors
===============

[](#tailwind-colors)

This package provides access to the color palettes used in Tailwind interfaces.

[![Tailwind Colors](Resources/colors.svg)](Resources/colors.svg)

Installation
------------

[](#installation)

```
composer require phpcolor/tailwind-colors
```

Usage
-----

[](#usage)

### Color names

[](#color-names)

```
use PhpColor\Colors\Tailwind\TailwindColors as Tailwind;

$colors = Tailwind::colors();

$names = $colors->getNames();
// 'gray', 'red', 'yellow', 'green', 'blue', 'indigo', 'purple',
// 'pink', 'teal', 'orange', 'cyan', 'white', 'black'
```

### Color shades

[](#color-shades)

```
use PhpColor\Colors\Tailwind\TailwindColors as Tailwind;

$colors = Tailwind::colors();

$shades = $colors->getShades();
// 50,  100,  200,  300,  400,  500,  600,  700,  800,  900,  950
```

### Color values

[](#color-values)

```
use PhpColor\Colors\Tailwind\TailwindColors as Tailwind;

$colors = Tailwind::colors();

echo $colors->teal;             // #14b8a6
echo $colors->teal();           // #14b8a6
echo $colors->teal(500)         // #14b8a6

echo $colors->get('teal');      // #14b8a6
echo $colors->get('teal', 500); // #14b8a6
```

---

[![Tailwind Colors](Resources/colors.svg)](Resources/colors.svg)

Credits
-------

[](#credits)

The colors listed in this project are based on the colors used by [TailwindCss](https://tailwindcss.com).

License
-------

[](#license)

This [PHPColor](https://phpcolor.dev) package is released under the [MIT license](LICENSE).

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance49

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~1 days

Total

5

Last Release

811d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a8951d49b371d210280a58ce48969a07d1f49924810f8a1fab3a9343eb46fdc9?d=identicon)[simonandre](/maintainers/simonandre)

![](https://avatars.githubusercontent.com/u/81738559?v=4)[Raphaël Geffroy](/maintainers/raphael-geffroy)[@raphael-geffroy](https://github.com/raphael-geffroy)

---

Top Contributors

[![smnandre](https://avatars.githubusercontent.com/u/1359581?v=4)](https://github.com/smnandre "smnandre (8 commits)")

---

Tags

colorcolorspalettephpscaletailwindtailwindcsscolorscaletailwindthemetailwindcsspalette

### Embed Badge

![Health badge](/badges/phpcolor-tailwind-colors/health.svg)

```
[![Health](https://phpackages.com/badges/phpcolor-tailwind-colors/health.svg)](https://phpackages.com/packages/phpcolor-tailwind-colors)
```

###  Alternatives

[lukapeharda/tailwindcss-color-palette-generator

Generate TailwindCSS color palette from a single color.

22113.3k1](/packages/lukapeharda-tailwindcss-color-palette-generator)[yieldstudio/tailwind-merge-php

Merge Tailwind CSS classes without style conflicts

4975.4k1](/packages/yieldstudio-tailwind-merge-php)[presseddigital/colorit

A slick color picker fieldtype plugin for the Craft CMS 3 control panel.

2032.5k](/packages/presseddigital-colorit)[arnolem/tailwindphp

TailwindPHP - use Tailwind CSS in your PHP projects (without npm)

1426.4k](/packages/arnolem-tailwindphp)[tailwindphp/tailwindphp

A full port of TailwindCSS 4.x to PHP

193.0k4](/packages/tailwindphp-tailwindphp)

PHPackages © 2026

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