Filament blade components on a non-panel page
Maybe I'm missing something but if I render something like
<x-filament::badge color="success">
in a regular livewire component how do I get the colors to work? π€ The rendered badge tries to refer to text-custom-600
etc. but how do I import them?3 Replies
What do you mean with "import them"?
Do you mean "how to get text-custom-600 into your css" or what?
Have you properly configured tailwind? Added the
'./vendor/filament/**/*.blade.php''
to you content array in your apps tailwind.config.jsin the installation of each package in the docs (in case you wanna use only a packge) there is an instructions on who to get the filament scripts and styles in the non-filament page:
https://filamentphp.com/docs/3.x/forms/installation
@filamentStyles
and @filamentScripts
fro example