andrewskm/utility-colors

List of color names for utility class generation.

v0.1.0 2025-04-21 01:32 UTC

This package is auto-updated.

Last update: 2025-08-21 15:51:55 UTC


README

CI Latest Stable Version License

A basic package that lists color names and allows the building of utility classes in PHP.

Compatibility

  • PHP 8.1+

Usage

Create a list of background utility classes with a shade of 300

$list = array_map(
    fn($case) => $case->build('bg', 300),
    UtilityColor::cases()
);