I have been trying to add Tailwind to a Solidus store with no luck. Adding Tailwind the usual way you would do on any Rails app does not work, as Tailwind components do not display properly. Unfortunately, I haven't found any guide on how to achieve this.
Basically, I would like to apply changes to Solidus' Starter Frontend using Tailwind.
Adding Tailwind's CDN to storefront.html.erb
seems to work however (with the text being very small).
Steps
- I have followed every steps on the Getting Started page from Solidus' official documentation, but with
rails new amazing_store --css tailwind --skip-javascript
instead of justrails new amazing_store --skip-javascript
. - Then, when prompted, I chose to install the solidus_starter_frontend storefront.
I have checked this repository (found on this GitHub issue) and compared it with my own code and I cannot find any difference with mine.
Do you have any idea on how to achieve this?