PHPackages                             zachleigh/laravel-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. zachleigh/laravel-colors

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

zachleigh/laravel-colors
========================

Color scheme vizualization for Laravel.

v0.3.7(10y ago)3733MITCSS

Since Mar 22Pushed 9y ago1 watchersCompare

[ Source](https://github.com/zachleigh/laravel-colors)[ Packagist](https://packagist.org/packages/zachleigh/laravel-colors)[ RSS](/packages/zachleigh-laravel-colors/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (8)Dependencies (4)Versions (10)Used By (0)

laravel-colors
==============

[](#laravel-colors)

[![Build Status](https://camo.githubusercontent.com/7fb0d0fee23f2a3248a6aba02dc9e285a2f72587abda2cff982338c3a2011708/68747470733a2f2f7472617669732d63692e6f72672f7a6163686c656967682f6c61726176656c2d636f6c6f72732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/zachleigh/laravel-colors)[![Latest Stable Version](https://camo.githubusercontent.com/ca6093c4ec09f6b454a2ff5f36ea08cd4cf2474acf2a5a3082f2305437605707/68747470733a2f2f706f7365722e707567782e6f72672f7a6163686c656967682f6c61726176656c2d636f6c6f72732f76657273696f6e2e737667)](//packagist.org/packages/zachleigh/laravel-colors)[![License](https://camo.githubusercontent.com/bf47332d5cd71567849437435eff54d6da779217756bb8eac0dd404819e230f2/68747470733a2f2f706f7365722e707567782e6f72672f7a6163686c656967682f6c61726176656c2d636f6c6f72732f6c6963656e73652e737667)](//packagist.org/packages/zachleigh/laravel-colors)

##### Build and manage color schemes for Laravel applications.

[](#build-and-manage-color-schemes-for-laravel-applications)

[![Screenshot](/screenshot.png?raw=true "Screenshot")](/screenshot.png?raw=true)

### About

[](#about)

laravel-colors allows you to view, create, and edit your project's color scheme in the browser. It reads the sass file where your color variables are declared and displays these colors in the browser. It also allows you to create and edit color schemes and save them to your database.
Notes:

- This package is not able to push color schemes to your actual project. You still must manually set the colors in your css/sass files.
- Reading your projects color scheme requires that you use sass and that you have a colors file where you declare your sass color variables ($purple: rgb(62, 62, 175); etc.)
- Currently supports hex color values (#ffffff) and rgb color values (rgb(255, 255, 255))
- Colors with transparency values are not yet supported so they may display incorrectly

### Installation and Setup

[](#installation-and-setup)

Install through composer:

```
composer require zachleigh/laravel-colors

```

Once installed, register the service provider in your Laravel project. Because laravel-colors is for development use only, conditionally load the provider in your project's AppServiceProvider register method and import the namespace at the top of the file.

```
use Illuminate\Support\ServiceProvider;
use LaravelColors\LaravelColorsServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
        //

        if ($this->app->environment('local')) {
            $this->app->register(LaravelColorsServiceProvider::class);
        }
    }
}
```

Next, publish the config file.

```
php artisan vendor:publish --provider="LaravelColors\LaravelColorsServiceProvider" --force

```

This will move the config file to App/config/laravel-colors.php. This file has two values, 'route' and 'sass\_file'. 'route' is the url where your project's color scheme can be seen in the browser. The default route is '/laravel-colors/colors'. 'sass\_file' is the location of your sass colors file. This file will be read by laravel-colors. If you do not have a sass file or do not want laravel-colors to attempt to read a file, set 'sass\_file' to 'none' and the default color scheme will be used.

The publish command will also put a migration in App/database/migrations/. This migration sets up the database table used to store your color schemes. Run the migration:

```
php artisan migrate

```

Finished. Now simply visit the route defined in the config file in your browser and see your project's color scheme in all its beautiful glory.

### Development

[](#development)

Pull requests are welcome.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

8

Last Release

3704d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/00a76b63e84a85f8770b1b02b1190c03400c48528f0c33262f7789d35eca875d?d=identicon)[zachleigh](/maintainers/zachleigh)

---

Top Contributors

[![zachleigh](https://avatars.githubusercontent.com/u/5616626?v=4)](https://github.com/zachleigh "zachleigh (9 commits)")

---

Tags

laravelcolorcolorscolor-palettecolor scheme

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zachleigh-laravel-colors/health.svg)

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

###  Alternatives

[tecnickcom/tc-lib-color

PHP library to manipulate various color representations

247.2M9](/packages/tecnickcom-tc-lib-color)[presseddigital/colorit

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

2132.1k](/packages/presseddigital-colorit)[stephenjude/filament-blog

Filament Blog Builder

20317.8k](/packages/stephenjude-filament-blog)

PHPackages © 2026

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