baks-dev/reference-color
Библиотека справочника цветов для проектов BaksDev: подключение через Composer, сервис ReferenceChoiceColor для вывода цветов в выпадающих списках (tag baks.reference.choice). Требует PHP 8.4+. Лицензия MIT.
#hex123 vs. rgb(18, 45, 67)). Aligns with initiatives to adopt a component-driven architecture where colors are reusable assets.<button class="bg-primary">).php artisan color:check).darken()) or Laravel’s built-in helpers (e.g., Str::of()->hex()).ContainerConfigurator, which may conflict with Laravel’s container).For Executives: "This is a zero-cost, high-impact way to eliminate color inconsistencies and accessibility risks across our product. Imagine never again debating whether a button’s green passes WCAG standards—just run a one-liner check. For teams, it’s like version control for design assets: colors defined once, reused everywhere, and auditable in Git. It’s a 10-minute Composer install that saves hours of manual QA and design handoffs. Perfect for scaling our design system without hiring dedicated frontend engineers. ROI? Fewer bugs, faster iterations, and compliance out of the box."
For Engineers: *"This package gives us a PHP-native way to manage colors without reinventing the wheel. Key wins:
config/colors.php and reuse them in Blade, APIs, or CLI tools—no more magic strings like #3a7bd5.if (!Color::get('primary')->isAccessible()) {
throw new \Exception('WCAG violation!');
}
For Designers:
*"This toolkit lets us ship designs faster and with fewer errors. Need a dark mode? Toggle a config flag. Spotting a contrast issue? Run php artisan color:check. It’s like having a color ‘lint’ for our work—no more ‘it looks fine on my screen’ debates. And since colors live in code, we can version them alongside features. For example:
config/colors.php and deploy—every UI element updates automatically.For Product Managers: *"This supports our goals to:
style='color: #ff5722').How can I help you explore Laravel packages today?