© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•8mo ago•
61 replies
Booltje124

V4 css problem with individual componenst

Hi all!

I set up a fresh new Laravel project using the Livewire Starter Kit. While implementing the styling, I ran into an issue.
According to the documentation, I need to add a few CSS imports to resources/css/app.css. However, one specific import causes an error:

/* Required by actions and infolists */
@import '../../vendor/filament/infolists/resources/css/index.css';
/* Required by actions and infolists */
@import '../../vendor/filament/infolists/resources/css/index.css';


error message (also attached):
[plugin:@tailwindcss/vite:generate:serve] Cannot apply unknown utility class: wrap-break-word
[plugin:@tailwindcss/vite:generate:serve] Cannot apply unknown utility class: wrap-break-word


When I comment out this line, everything compiles correctly, but then I'm missing some styling in certain parts of the UI.
I’m using individual Filament components (not the full Filament panel):
https://filamentphp.com/docs/4.x/introduction/installation#configuring-styles

I’m not sure what the correct approach is for Filament v4, and how the UI supposed to look.
Schermafbeelding_2025-07-08_om_09.05.59.png
Schermafbeelding_2025-07-08_om_09.14.20.png
Schermafbeelding_2025-07-08_om_09.15.06.png
Installation - Introduction - Filament
Solution
try to add
@filamentScripts
@filamentScripts
to the
head.blade.php
head.blade.php
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements
Next page

Similar Threads

problem in css after upgrading to v4
FilamentFFilament / ❓┊help
5mo ago
Table individual component css not loading
FilamentFFilament / ❓┊help
8mo ago
Problem with RepeatableEntry\TableColumn in V4?
FilamentFFilament / ❓┊help
4mo ago
Filament-Shield v4 problem with new resources
FilamentFFilament / ❓┊help
5mo ago