PHPackages                             bolt/color - 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. bolt/color

ActiveBolt-extension[Utility &amp; Helpers](/categories/utility)

bolt/color
==========

🎨 Bolt Color extension

1.0.1(5y ago)211.0k—0%1MITPHPPHP &gt;=7.2.9

Since Aug 6Pushed 5y ago2 watchersCompare

[ Source](https://github.com/bolt/color)[ Packagist](https://packagist.org/packages/bolt/color)[ RSS](/packages/bolt-color/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

🎨 Bolt Color Field Extension
============================

[](#-bolt-color-field-extension)

This extension allows you to use fields of `type: color` in your ContentTypes, as defined in `contenttypes.yaml`.

You can also manipulate colors in Twig, with all the might of the [Iris PHP Color library](https://github.com/ozdemirburak/iris).

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

[](#installation)

```
composer require bolt/color
```

---

Usage
-----

[](#usage)

### Definition

[](#definition)

In your `contenttypes.yaml`, you can define the following field:

```
      background:
          type: color
          label: Background color
```

Which will show up as a colorpicker field like this (without red highlight):

[![Color field](./screenshots/color-field.png)](./screenshots/color-field.png)

### In twig

[](#in-twig)

To get the hex value (`#ff0000`), simply use:

```
{{ record.background }}
```

The [Iris library](https://github.com/ozdemirburak/iris) allows many ways in which you can manipulate the value of the field, for example:

```
{{ record.background.red }} {# get the amount of red #}
{{ record.background.values }} {# array with ['ff', '00', 'ff'] rgb values #}
{{ record.background.lighten(20) }}
{{ record.background.darken(10) }}
{{ record.background.dark }} {# true if color is dark #}
{{ record.background.hsl }} {# converts to HSL #}
{{ record.background.rgba }} {# converts to RGBA #}
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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 ~82 days

Total

2

Last Release

2029d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1835343?v=4)[Bob van de Vijver](/maintainers/bobvandevijver)[@bobvandevijver](https://github.com/bobvandevijver)

![](https://avatars.githubusercontent.com/u/3901745?v=4)[Tobias Feijten](/maintainers/tobias-93)[@tobias-93](https://github.com/tobias-93)

![](https://avatars.githubusercontent.com/u/1833361?v=4)[Bob den Otter](/maintainers/bobdenotter)[@bobdenotter](https://github.com/bobdenotter)

---

Top Contributors

[![I-Valchev](https://avatars.githubusercontent.com/u/7093518?v=4)](https://github.com/I-Valchev "I-Valchev (6 commits)")[![bobdenotter](https://avatars.githubusercontent.com/u/1833361?v=4)](https://github.com/bobdenotter "bobdenotter (1 commits)")

###  Code Quality

Code StyleECS

### Embed Badge

![Health badge](/badges/bolt-color/health.svg)

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

###  Alternatives

[one2tek/larasheets

Laravel Google Sheets

242.1k](/packages/one2tek-larasheets)

PHPackages © 2026

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