© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
rominronin

Action icon color

I have an anonymous action on a form with a prefix icon:
            return Actions::make([
                Action::make('configure')->label(__('Customize'))
                    ->icon('heroicon-s-adjustments-horizontal')
                    ->color('primary') // This works
                    ->extraAttributes([
                        'class' => '!text-black !fi-text-black', // Not sure how to force change the currentColor
                    ])
                    ->url(route('button.target'))
            ]);
            return Actions::make([
                Action::make('configure')->label(__('Customize'))
                    ->icon('heroicon-s-adjustments-horizontal')
                    ->color('primary') // This works
                    ->extraAttributes([
                        'class' => '!text-black !fi-text-black', // Not sure how to force change the currentColor
                    ])
                    ->url(route('button.target'))
            ]);

The icon shows up fine, however the color seems to be set automatically by the color. The problem here is that the primary color is very light, and the icon is rendered in white. I want to use a dark icon color for better contrast - image is attached.

The text color is dark, shouldn't the icon take the text color?

How can I override this?

Thanks
image.png
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

icon gray color
FilamentFFilament / ❓┊help
2mo ago
Icon Color Issues
FilamentFFilament / ❓┊help
16mo ago
action group icon
FilamentFFilament / ❓┊help
16mo ago
icon color in buttons
FilamentFFilament / ❓┊help
2mo ago