F
Filament11mo ago
hayvern

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:
yes, if you are using a custom theme, then just put the css there and it will work.
Jump to solution
6 Replies
Jordy
Jordy11mo ago
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
hayvern
hayvernOP11mo ago
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?
Jordy
Jordy11mo ago
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
awcodes
awcodes11mo ago
yes, if you are using a custom theme, then just put the css there and it will work.
awcodes
awcodes11mo ago
or you can create a completely separate css file and register it with FilamentAsset in a service provider.
hayvern
hayvernOP11mo ago
Okay thanks, I will try it out.
Want results from more Discord servers?
Add your server