distortedfusion/blade-colors

CSS variable color management.

1.0.0 2024-07-09 19:48 UTC

This package is auto-updated.

Last update: 2024-12-05 22:24:58 UTC


README

Latest Version Software License Build Status

Blade Colors offers Tailwind CSS compatible, CSS variable based, color palettes. Color definitions can be configured dynamically during runtime using the provided color manager.

<?php

use DistortedFusion\BladeColors\Facades\BladeColor;
use DistortedFusion\BladeColors\Palettes\Tailwind;

BladeColor::register(['primary' => Tailwind::INDIGO]);
?>

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

<!-- Or with the optional additional presets -->
<div class="bg-primary-500"></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.