major ui updates

This commit is contained in:
Mark Gregory
2026-06-12 15:11:51 +01:00
parent 3c9b39d83b
commit 7bc8f20ed5
154 changed files with 3796 additions and 4117 deletions
+24
View File
@@ -0,0 +1,24 @@
<?php
declare(strict_types=1);
namespace Modules\Helpdesk\Support;
final class Color
{
public static function css(?string $color): string
{
return match ($color) {
'red', 'rose' => '#e11d48',
'amber', 'yellow' => '#d97706',
'emerald', 'green' => '#059669',
'blue' => '#2563eb',
'sky', 'cyan' => '#0284c7',
'indigo' => '#4f46e5',
'violet', 'purple' => '#7c3aed',
'slate' => '#334155',
'zinc', null, '' => '#52525b',
default => str_starts_with((string) $color, '#') ? (string) $color : '#52525b',
};
}
}