Closed Random72IsTaken closed 2 years ago
Color functionality is determined by Badge Column.
By default the following are supported: primary
, secondary
, success
, warning
or danger
.
However if you look at Badge Column's View, it indicates that, you may also pass custom CSS classes (eg: text-blue-700 bg-blue-500/10
). Bear in mind in this case you are responsible to ensure styles for these classes are loaded.
When Filament is customized with a custom style and colors, the package doesn't account for them. That is, if my theme's color for danger is Tailwind's
red
, the package still accounts for the default theme color ofgray
or something.I think listening to a
FilamentServed
event - if there is one - would help to identify if its$theme
isn'tnull
, and therefore would be injected as a style too.