© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
Markwowz

Unable to override primary color on custom theme

Hi Folks,
I am missing something here. I have created a custom theme and applied a few styles which I see are appearing as expected, but I am trying to override the var for primary-50 and it does not change. I can see in :root it is still showing the original color. Here is what I have in the tailwinds config for my custom theme:

import preset from '../../../../vendor/filament/filament/tailwind.config.preset'

export default {
presets: [preset],
content: [
'./app/Filament//*.php',
'./resources/views/filament/
/.blade.php',
'./vendor/filament/**/
.blade.php',

],
theme: {
extend: {
colors: {
primary: {
50: '#479e58',
600: '#479e58',
},
custom: {
500: '#02911e',
600: '#479e58'
},
}
},
},
}

Is this the correct way I should be overriding the colors or is there a better approach? Thanks!
Solution
This can be ignored, I was overriding the color in the AppPanelProvider in ->colors.
Jump to solution
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

Issue with primary color theme.
FilamentFFilament / ❓┊help
3y ago
Custom theme (minimal theme) color issue
FilamentFFilament / ❓┊help
16mo ago
Unable to create a custom theme
FilamentFFilament / ❓┊help
8mo ago
Custom register page not set primary color
FilamentFFilament / ❓┊help
13mo ago