Can you run standard css alongside Tailwindcss?
Is it possible to run standard css alongside Tailwindcss? There are some css classes that are not available in Tailwind such as radial-gradient.
I've created a custom theme and all that works. Prior to using a custom theme, standard css was working on my custom table column component blade file. Once I use the custom theme, the standard css died, and I resorted to recreating my component from scratch. But as I am trying to build dashboards with circular progress bars, Tailwind alone doesn't seem to have what I need for the design.
Can point me in the right direction?
Solution:Jump to solution
yes, if you are using a custom theme, then just put the css there and it will work.
6 Replies
not quite a filament question, but yes
you can still use regular css on top of tailwind.. I would be mindfull of not using classnames that tailwind has in use
as to what the issue is with your custom theme.. you have not provided alot of info to work with
I recognize it is borderline use case, but I just wasn't sure. I am building the project on filament though.
Do I just specify regular css in the theme.css file?
im not sure if that would work, I was assuming you needed to style a specific component
Personally havent had to go deeper then https://filamentphp.com/docs/3.x/infolists/layout/getting-started#adding-extra-html-attributes and a custom theme.. widgets can be given custom styling aswell
Solution
yes, if you are using a custom theme, then just put the css there and it will work.
or you can create a completely separate css file and register it with FilamentAsset in a service provider.
Okay thanks, I will try it out.