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

Ankit Zore's avatar

Laravel nova custom tool tailwind css not working

I have created custom tool and tried to change color of text using tailwind css following is code

class="text-yellow-400"

but somehow this doesn't seem to work. I tried other colors as well only gray css class works.

0 likes
8 replies
mariohbrino's avatar

I think you need to run npm run watch, because tailwind has a just in time feature to maximize performance, this feature will only compile the classes used in your project.

Ankit Zore's avatar

@mariohbrino I did run npm run watch but it still didn't work. I might have to try what @frankielee is suggesting but I don't know how to do it. Laravel nova already comes packed with tailwind but somehow this classes are not working and I don't know how to configure/find the tailwind config file.

frankielee's avatar

@Ankit Zore Try to search the keyword yellow or 400, since text-yellow-400 is working.

Try to publish all those assets, or search through the vendor folders.

As I said, I have never used nova before. I only can give you suggestions.

Ankit Zore's avatar

Didn't seem to solve the issue. Also @frankielee its other way around text-yellow-400 is not working whereas text-gray-400 is working

frankielee's avatar

@Ankit Zore So can you find the keyword like gray, 400?

I don't know what you tried. is there any error or warning message? Are you doing the configuration correctly? Did you check the asset files? Did you try to publish the asset files and modify them?

Please or to participate in this conversation.