F
Filament5mo ago
Zoltar

change icon color in blade view

Hello, which class i use for change color to icon in blade view? i try this but not work
<x-filament::icon
icon="heroicon-m-check-badge"
class="h-5 w-5 text-cyan-500 dark:text-gray-400"
/>
<x-filament::icon
icon="heroicon-m-check-badge"
class="h-5 w-5 text-cyan-500 dark:text-gray-400"
/>
Solution:
ok use text-primary-600 and it works
Jump to solution
3 Replies
Vp
Vp5mo ago
Base on the icon components it should work (https://github.com/filamentphp/filament/blob/3.x/packages/support/resources/views/components/icon.blade.php) are you sure your cyan-500 and gray-400 is available in your css file?
Zoltar
ZoltarOP5mo ago
shouldn't they be in standard css?
Solution
Zoltar
Zoltar5mo ago
ok use text-primary-600 and it works
Want results from more Discord servers?
Add your server