laracoft's avatar

Public facing Filament 4 form with Tailwind 4

  1. I'm using Filament 4 and Tailwind 4 to build a public facing Filament form using these references
  2. I also had to add @import '../../vendor/filament/filament/resources/css/theme.css'; into resources/css/app.css
  3. But once I added theme.css, my website's original colors (from flowbite.com) are overwritten
  4. I tried to shift @import ... to the last line of resources/css/app.css, but had no effect
  5. I need the @import ..., without it, the Filament form does not layout properly
  6. How do I maintain my original colors?
1 like
4 replies
laracoft's avatar

Wait a second, I'm not using any other CSS framework, only Tailwind, and Filament claims to also use Tailwind.

And Tailwind's claim to prominence is to style new stuff without affecting others.

Isn't it?

1 like
vincent15000's avatar

No matter which other framework you are using ... here Filament also uses TailwindCSS with its own classes. If you want to use YOUR own classes, you need to define different classes than those one used by Filament. To ensure you are the only to define your own classes, you can prefix them.

laracoft's avatar

I don't think you addressed my previous 3 points, especially the one: to style new stuff without affecting others

Can you give me an example of Filament's own classes?? Because I do not use any of my own classes, all are copied from Tailwind examples.

1 like

Please or to participate in this conversation.