@php /** @var array> $light */ $light = $light ?? config('colors', []); /** @var array> $dark */ $dark = $dark ?? config('dark_colors', []); $dark = array_replace_recursive($light, $dark); /** @var callable(string): string $normalize */ $normalize = static fn (string $value): string => preg_replace('/\s+/', ' ', str_replace(',', ' ', trim($value))); @endphp