-
Notifications
You must be signed in to change notification settings - Fork 801
Ruby on Rails installation instructions might be incorrect #1030
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 arises because the
You can stay on Tailwind v3 for now by pinning the
|
@bolshakov you can fix this issue with following code @import "tailwindcss";
@config "../../../tailwind.config.js"; You need to use it in your |
But I agree that we need to update rails-related docs |
If anyone does a PR to update the Rails docs I'll have a look at it and merge it. I'm still a little busy with the v4 update, but this looks to be the final way of getting things done: https://flowbite.com/docs/getting-started/quickstart/ Just introduced a new theme file called "default" that sets color variables in a better pattern. Thanks! |
@zoltanszogyenyi Is there any tool to convert tailwind v3 config to v4 format? I'll update docs if you point me to the right direction with tailwind and flowbite :) |
Yeah, I wrote about it here: https://flowbite.com/blog/tailwind-v4/ But the best final format is this one: https://flowbite.com/docs/getting-started/quickstart/#install-using-npm This configures properly the sources, theme file and everything new recommended for Tailwind v4. |
So to use JS modules, I need to use import maps like this: # config/importmap.rb
pin "flowbite", to: "https://cdn.jsdelivr.net/npm/flowbite@3.1.1/dist/flowbite.turbo.min.js" To configure tailwindcss with propshaft, I have to download flowbite under the @import "tailwindcss";
@import "../../../vendor/javascript/flowbite/src/themes/default.css";
@plugin "../../../vendor/javascript/flowbite/plugin";
@source "../../../vendor/javascript/flowbite"; The problem is that the plugin has other dependencies (like |
I'm also stuck with a brand new rails 8 project. I've read around all the docs and think I have my head wrapped around it, but when I try and run @import "tailwindcss";
@import "flowbite/src/themes/default";
@plugin "flowbite/plugin";
@source "../../../node_modules/flowbite"; I'm also using importmaps for front-end javascript, but I used Any idea what I'm missing, or how to get debug output from the tailwind cli? EDIT: Sorry—I just cracked it after posting this. My |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
I'm following installation instructions with a brand new Ruby on Rails 8.0.1 project as it's described here https://flowbite.com/docs/getting-started/rails/#install-flowbite and the
tailwind.config.js
is not generated.To Reproduce
Generate rails app:
Install the official tailwindcss-rails gem:
Run the install command to generate a tailwind.config.js file inside the ./config directory:
The command outputs:
Expected behavior
Generates
tailwind.config.js
inside the./config
directory.Actual behavior
The config file was not generated. It's impossible to follow the later instructions in the Guide since they rely on the configuration file which is missing.
The text was updated successfully, but these errors were encountered: