Added colour not working
I've added the following colours to my site in a service provider with the following code:
However, when I try to use one of them in a view like so:
It doesn't colour anything. What am I doing wrong?
(I've built assets)
Solution:Jump to solution
You need a custom theme if you are using any custom views so you can tell tailwind to scan those files.
6 Replies
Solution
You need a custom theme if you are using any custom views so you can tell tailwind to scan those files.
Thanks. I do have a custom theme setup but these are published vendor views. Do I just need to add
./resources/views/vendor/**/*.php
to my tailwind config?Yes. Btw. that registration code is for using colors inside filament stuff. Not for your Tailwind Classes.
By "inside filament stuff", do you mean like this or something else?
Yes.