-
Notifications
You must be signed in to change notification settings - Fork 187
Tailwind and Rails 7 import-maps? #66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This gem does that? |
Sorry I meant tailwind with customisations. It says in the README that it's not possible without webpacker though, my bad. |
I don't think I understand? If you want to use Tailwind with Webpacker, you can use the normal Tailwind installation instructions, since you'll be compiling everything yourself. This gem sidesteps all of that for a simpler, unconfigured version of tailwind. |
@dhh I think the question is, is there a way to customise tailwind without using webpacker? The super exciting about importmaps is being able to throw webpacker & node.js in the bin, but at the moment that doesn't seem practical if you want to use any Tailwind customisations (eg. |
https://tailwindcss.com/docs/installation#using-tailwind-via-cdn isn't giving me much hope |
No TW customization without the whole node rigamarole at the moment, no. I think @apply is better done via Rails helpers, though. That's how we're using this gem at Basecamp. But if you need custom color scheme etc, you will have to compile it yourself for now. |
Being able to customize without the whole node rigamarole would be a winning feature. Otherwise, adopting Tailwind struggles against adopting Import Maps. Or, am I missing something? |
Not in the cards, I'm afraid. But someone could build a web service that could do it! Like a specializing CDN. Have at it 😄 |
I got it to work using this (granted not for prod): https://github.com/tailwindlabs/tailwindcss/releases/tag/v3.0.0-alpha.1
|
How do we make tailwindcss work without webpacker?
The text was updated successfully, but these errors were encountered: