Skip to main content

All Questions

1 vote
1 answer
798 views

How can I troubleshoot TailwindCss in my Rails 7 app to properly apply basic tailwind classes?

A Rails7 app that used -c tailwind is not displaying the styles consistently when I try to do something basic like border-5. I've started the app using ./bin/dev In the Procfile.dev is css: bin/rails ...
J.R. Bob Dobbs's user avatar
4 votes
1 answer
451 views

Activeadmin Rails 7 Tailwind Issue

Just install active_admin in rails 7 and ruby 3.1.0 gem 'activeadmin', github: 'activeadmin/activeadmin', branch: 'master' It add two style files. One is active_admin_old.scss and other is ...
Haseeb Ahmad's user avatar
  • 8,528
0 votes
0 answers
105 views

HMR not working when updating app/components/{component_name}.html.erb in Rails 7

Setup: rails new fake_app -d postgresql -c tailwind Configuration: followed all instructions verbatim at tailwind docs Additional gems: bundle add view_component Created a new component: rails ...
J.R. Bob Dobbs's user avatar
1 vote
2 answers
953 views

How to add action text rich_content in a rails app with tailwind css

Hello everyone, I've been working on a Rails 7 application, and I initially set it up with Tailwind CSS as the CSS compiler. However, I've run into some challenges when integrating Action Text's ...
mutebi godfrey's user avatar
0 votes
1 answer
120 views

Rails and Fly.io - tailwind.css blink

I have followed the default Rails tutorial on the Fly.io website : https://fly.io/docs/rails/getting-started/ It works well but when you reload the page, the css "blink" : https://rails-demo....
Louis Bertin's user avatar
1 vote
2 answers
1k views

Error: Cannot find module 'tailwindcss/defaultTheme' issue with Rails 7.0.5 and Ruby 3.1.2 and Tailwindcss

I am having a heck of a time getting tailwindcss and flowbite to deploy on my Rails 7.0.5 server. Please let me know if you have any suggestions on how to fix. It works just fine in development mode, ...
acoustic_north's user avatar
0 votes
0 answers
259 views

Tailwind classes that use helper methods stop working after restarting Rails server

I have a Rails 7 app that uses Tailwind CSS. I have flash messages that use a helper method to set the background color of the flash message in the view. When I restart the server with ./bin/dev the ...
don_Bigote's user avatar
1 vote
0 answers
909 views

DaisyUI not loading style

Working on Rails 7 app where I added postcss and Tailwind, removed redundant tailwind gem and tailwind stylesheet_link_tag in the application.html.erb. My problem starts when I wanted to include ...
Mr.Code's user avatar
  • 225
3 votes
2 answers
1k views

Javascript not working when using Tailwind Elements with Ruby on Rails

I just started a new rails 7 project with TailwindCSS using the new rails new my-app --css tailwind syntax. Tailwind CSS is working properly. I wanted to add a navbar from tailwind elements, and I ...
wruckie's user avatar
  • 1,779
3 votes
1 answer
649 views

Not able install & setup tailwindcss-rails in ruby on rails app

I'm trying to use tailwind in my rails project, but I'm not able to install & run it on my system. It seems like there is some issue with the x86_64-linux platform as I'm using WSL to build my ...
Rishabh Singh's user avatar
2 votes
1 answer
187 views

Rails 7: tailwind.config.js is not picked up or supported out of the box

In a new Rails 7 project created with the css tailwind argument, Tailwind itself works as expected. However, making changes to the tailwind.config.js file are not picked up. No explanation is given in ...
nickmjones's user avatar
2 votes
1 answer
2k views

Rails 7, tailwind and view components, classes added to component not compiled / updated

I'm working on a Rails 7 project where I use ViewComponents and Tailwindcss. I'm having some problem getting changes in component's .html.erb files to update properly. When I run ./bin/dev and make ...
Anders's user avatar
  • 2,911
1 vote
1 answer
1k views

Is there anyone using TailwindUI package with React Native, can I inherit TailwindUI style that we're using on the website frontend?

I have created a website using Ruby on Rails 7 with TailwindUI package: https://tailwindui.com/ Now, I'm planning to create a mobile app for this website, so I wonder can I reuse the TailwindUI style ...
Dang Trung Tu's user avatar
1 vote
1 answer
2k views

upgrade rails 6 to 7, "No loader is configured for '.scss'

I'm trying to upgrade rails 6, but when I launch server via "bin/dev" command, I get this error: " 10:58:29 web.1 | started with pid 11431 10:58:29 css.1 | started with pid 11432 ...
Shruikan's user avatar
4 votes
2 answers
4k views

Rails 7 - Using daisyUI with importmap-rails

I'm trying to build a new Rails 7 project, testing out Hotwire and some of the new default stuff. I'm excited by the idea of leaving Webpacker (and maybe React) behind. But I'm having trouble figuring ...
Phillip Longman's user avatar

15 30 50 per page