Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

aureliee123's avatar

Laravel nova custom field

Hello ,

i'm trying to build a custom field in laravel nova but i'm having issues when it comes to styling nova uses tailwind css however when i use tailwind css components it doesn't work

for example i tried using this button :

Button

but the output is not the same as tailwindcss

any help ?

0 likes
1 reply
ramonrietdijk's avatar

Although Laravel Nova has been created using Tailwind CSS, not all classes are included. This means that classes that are not used by Nova are also not available.

The easiest solution to this is by including Tailwind CSS yourself for your field. I would also recommend using prefixed classes.

Please or to participate in this conversation.