Weird error in compile theme
I create a custom theme using https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme If I didn't build then I can see all color. Then I run
npm run build
and all my color are gone..
What can be the problem? Warning is displaying when I build also
I didn't install another tailwind, I just create theme using the link aboveSolution:Jump to solution
This give me another Idea, now I use
style="border-color: {{ $attr['color'] }}"
and it's working fine.. thanks5 Replies
For now I just put all color I have and it's works now..
border-{{ $attr['color'] }}-500This will never work with Tailwind. It can't fetch the classes you use, when they are dynamic.
Thanks for explanation and what will be the best approach to deal with them?
Either write them out, or use Filaments color system:
Solution
This give me another Idea, now I use
style="border-color: {{ $attr['color'] }}"
and it's working fine.. thanks