F
Filament2d ago
Cem

Add styling to heading ?

Is it possible to 'somehow' add styling to the heading ? Using the minimal theme it's hard to read & differentiate ... Seems ExtraAttributes doesn't do anything either
No description
Solution:
->heading(new HtmlString('<span class="text-blue-500">Identité</span>'))
->heading(new HtmlString('<span class="text-blue-500">Identité</span>'))
you should also update your content configuration in tailwind.config.js to scan for classes inside your directory as './app/Filament/**/*.php', etc...
Jump to solution
4 Replies
Cem
CemOP2d ago
@Leandro Ferreira yes; using the minimal theme from filament
Solution
LeandroFerreira
->heading(new HtmlString('<span class="text-blue-500">Identité</span>'))
->heading(new HtmlString('<span class="text-blue-500">Identité</span>'))
you should also update your content configuration in tailwind.config.js to scan for classes inside your directory as './app/Filament/**/*.php', etc
Cem
CemOP2d ago
@Leandro Ferreira ahhhhh; right i was missing that part ! Thanks man !

Did you find this page helpful?