distortedfusion/blade-colors

CSS variable color management.
4,802 1
Install
composer require distortedfusion/blade-colors
Latest Version:2.0.3
PHP:^8.0
License:MIT
Last Updated:Dec 30, 2025
Links: GitHub  ·  Packagist
Maintainer: kevindierkx

Blade Colors

Latest Version Software License Build Status

<?php

use DistortedFusion\BladeColors\Facades\BladeColor;

BladeColor::register(['brand' => [
    'primary'   => '#000000',
    'secondary' => '#eaeaea',
]]);
?>

<!-- Applied directly using a CSS variable -->
<div class="bg-[rgb(var(--brand-primary))]"></div>

Documentation

You will find full documentation on the dedicated documentation site.

Testing

To run the tests, run the following command from the project folder:

composer test

Security

If you discover a security vulnerability within this package, please send an e-mail to Kevin Dierkx via kevin@distortedfusion.com. All security vulnerabilities will be promptly addressed.

Contributing

Contributions are welcome and will be fully credited. Please see CONTRIBUTING for details.

License

The MIT License (MIT). Please see License File for more information.