{{-- B2B tenancy step G (white-label B): inject the current org's primary colour as Filament's --primary-* shades, ONLY when the org has explicitly set one (so default/whole-system views keep the AGS admin palette). --}} @php $org = \App\Support\CurrentOrg::get(); $primary = data_get($org?->branding, 'colors.primary'); // explicit override only @endphp @if ($primary) @php $shades = \Filament\Support\Colors\Color::hex($primary); @endphp {{-- !important so the org primary wins over Filament's own --primary-* declaration regardless of stylesheet load order (the render hook can otherwise lose the cascade to a later-loaded Filament stylesheet). --}} @endif {{-- White-label: apply the org's chosen font across the panel. Kept in its OWN @endif