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)185MITPHPPHP &gt;=8.3

Since Apr 10Pushed 3mo 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 1mo 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

33

—

LowBetter than 75% of packages

Maintenance54

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

763d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/a798e0337c09608ab5c3d78d5bd120490a8e8689c4ef026bea27cfc136c7d60c?d=identicon)[raphael-geffroy](/maintainers/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.

22102.1k1](/packages/lukapeharda-tailwindcss-color-palette-generator)[presseddigital/colorit

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

2132.1k](/packages/presseddigital-colorit)[tailwindphp/tailwindphp

A full port of TailwindCSS 4.x to PHP

171.7k1](/packages/tailwindphp-tailwindphp)[arnolem/tailwindphp

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

131.1k](/packages/arnolem-tailwindphp)

PHPackages © 2026

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