Closed DaniG2k closed 2 years ago
@DaniG2k
Thanks for this. As you've probably figured out, you just need to put the builder code on the path that tailwind can find (per the advice on SO). Dropping it in the app/helpers
folder is as good as any.
Appreciate your work here - helped me hugely.
I'm trying to write a custom builder to use with Breadcrumbs on Rails. I am using Tailwind for my styles but it doesn't seem to play nicely with Rails-generated code.
I have the following builder:
I initialize the breadcrumbs on the page with:
However, not all styles are being applied (for example, the white text on hover does not work). I suspect the Tailwind server doesn't compile these classes since they are Ruby-generated. Any idea how I can get a custom Breadcrumbs on Rails builder to work nicely with Tailwind? I can't seem to find any info in this regard.
I've also asked this question on SO
Thanks in advance 🙏🏻