© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Custom row classes - Filament
F
Filament
•
3y ago
•
9 replies
MajistraFila
Custom row classes
Hi everyone
, i
'm trying to use this code
: recordClasses
(fn
(Model
$record
)
=
> match
(
$record
-
>is
_confidential
)
{
true
=
>
'bg
-red
-500
'
,
default
=
> null
,
}
)
but that is not working and without errors
.
thank you
Solution
If you are using the panel builder
:
https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme
if you are using the table builder only
:
https://filamentphp.com/docs/3.x/tables/installation#installing-tailwind-css
Installation - Table Builder - Filament
Themes - Panel Builder - Filament
Jump to solution
Filament
Join
A powerful open-source UI framework for Laravel • Build and ship apps & admin panels fast with Livewire
20,181
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Was this page helpful?
Yes
No
Similar Threads
Similar Threads
Custom row classes border colour weirdness
F
Filament / ❓┊help
3y ago
Custom column classes
F
Filament / ❓┊help
2y ago
Custom Row Classes - How to assign a different background color to each row (Category)
F
Filament / ❓┊help
3y ago
Custom Row Accordion
F
Filament / ❓┊help
11mo ago