© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago
Wojtek-R

Primary color set as an array not working.

Hello! I have tried to use custom color pallet as described in the docs https://filamentphp.com/docs/3.x/panels/themes#changing-the-colors
I have added it to the
$panel
$panel
like so:
->colors([
        'primary' => [
                    50 => '253, 238, 229',
                    100 => '246, 176, 111',
                    200 => '234, 150, 63',
                    300 => '240, 124, 15',
                    400 => '213, 111, 14',
                    500 => '192, 73, 32',
                    600 => '166, 59, 30',
                    700 => '140, 45, 28',
                    800 => '115, 32, 26',
                    900 => '89, 18, 23',
                    950 => '77, 12, 20',
                ],
            ])
->colors([
        'primary' => [
                    50 => '253, 238, 229',
                    100 => '246, 176, 111',
                    200 => '234, 150, 63',
                    300 => '240, 124, 15',
                    400 => '213, 111, 14',
                    500 => '192, 73, 32',
                    600 => '166, 59, 30',
                    700 => '140, 45, 28',
                    800 => '115, 32, 26',
                    900 => '89, 18, 23',
                    950 => '77, 12, 20',
                ],
            ])

using class on an element like
bg-primary-500
bg-primary-500
works, but shades are not applying.

I ran
npm run build
npm run build
command.
Themes - Panel Builder - Filament
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Custom register page not set primary color
FilamentFFilament / ❓┊help
13mo ago
Primary Color for v3?
FilamentFFilament / ❓┊help
3y ago
Dark mode different primary color
FilamentFFilament / ❓┊help
15mo ago
Panel primary color in widget
FilamentFFilament / ❓┊help
3y ago