F
Filament3mo ago
shabxs

Which is the best option to switch icon color for custom svg icon

I am using custom svg icons as instructed in https://filamentphp.com/docs/4.x/styling/icons#using-custom-svgs-as-icons it remains same when changing to dark mode (obvious). How do if switch the color of this icon when switching to dark mode
1 Reply
Dennis Koch
Dennis Koch3mo ago
You should use currentColor for fills/outlines

Did you find this page helpful?