czehnter
How to use all available Tailwind classes in custom ViewRecord page?
You can compensate some problems by defining colors in the
tailwind.config.js
like this:
But this isn't perfect either. Some colors are not being used this way. I haven't found out why.13 replies
How to use all available Tailwind classes in custom ViewRecord page?
This is my setup right now:
-
XXXPanelProvider.php
: ->viteTheme('resources/css/app.css')
- run npm install tailwindcss
if you haven't added it already
- app.css
:
- tailwind.config.js
:
This way I can use all available tailwind classes in my blade files. The downside is that some native filament color attributes won't work anymore (for example ->color('success')
won't be green anymore etc.). I haven't found a way to fix this yet.13 replies
preserveFilenames() not working with SpatieMediaLibraryFileUpload
I also tried using the default
FileUpload
field instead and it doesn't work there either. I also found someone else with the same problem, so at least I'm not alone 😅 https://github.com/filamentphp/filament/issues/1236812 replies
preserveFilenames() not working with SpatieMediaLibraryFileUpload
I tested different disks, but the result is always the same. I also tried using the documented method for custom names and then just returning the original name in it, but this also doesn't change anything:
12 replies
preserveFilenames() not working with SpatieMediaLibraryFileUpload
I might be wrong, but I don't think the Spatie Media Library is renaming files by default. It seems like it is the standard filament behaviour and
preserveFilenames()
is just not working.12 replies
How to use all available Tailwind classes in custom ViewRecord page?
Importing
forms
and typography
definitely helped. But it seems like once I add ->viteTheme()
, the color palette defined with ->colors()
doesn't work anymore, so all the colored buttons etc. in the panel are broken.13 replies