All Questions
Tagged with tailwind-css ruby-on-rails
148
questions
1
vote
0
answers
29
views
Why Tailwind CSS doesn't works with public/*.html files in my Ruby on Rails project
I'm using Tailwind CSS for my Ruby on Rails project, the CSS works fine with all the layouts in views but it doesn't works with public/*.html files in my project.
I have a 404.html page and a 500.html ...
0
votes
0
answers
42
views
How to run ./bin/dev for Ruby on Rails from WSL
I cloned a repository which uses /bin/dev to update the changes in the code (tailwind css) dynamically without the need of asssets:recompilation.
As I am using Windows, in order to run ./bin/dev, I ...
1
vote
1
answer
44
views
Hover:Scale not working for tailwind-rails? Any suggestions?
This is my code and I want to apply the hover:Scale utility from tailwindCSS to my link boxes but it's not working. Any idea what conflicts I'm creating here?
<% content_for :javascript_includes do ...
1
vote
1
answer
149
views
How can I use Tailwind/Regular CSS with Wicked PDF?
So I'm new to Rails 7 and I'm trying to make a simple order management web app. I'm using Wicked PDF 2.8 (wkhtmltopdf 0.12.6) to automatically generate invoices based off of orders. The pdf is working,...
1
vote
2
answers
149
views
Flash message view component rendering :type as a :message?
I have followed this post https://reinteractive.com/articles/how-to-create-flash-messages-in-Rails-7 to add nice flash messages with tailwind, which got me into View Components. Everything works apart ...
0
votes
0
answers
110
views
Rails 7 and Stimulus: How to integrated TailwindCSS without any other JS library?
For my new hobby project, I wanted to use Rails 7, Stimulus and the TailwindCSS framework. I was looking for some TailwindCSS templates and I found out that basically all of the templates require some ...
0
votes
1
answer
42
views
rails tailwind css - cannot get two columns
I can't get two columns using Tailwind CSS. Any thoughts on why this is happening?
My rails code
<div class="grid grid-cols-6 gap-4">
<div class="col-span-1">...
0
votes
0
answers
237
views
Tailwind with React and Ruby on Rails
I have a new Rails app with a React frontend, and I want to use Tailwind in my React frontend, but my styles are not applying. I installed tailwind with just yarn add tailwindcss and then ran npx ...
0
votes
0
answers
24
views
Rails application with Vuejs and TailwindCSS outputs error when starting server. Problem with webpack configuration or compatibility versions
I am trying to add TailwindCSS to my rails application with the frontend managed by Vuejs.
I get this error message when running yarn start.
webpack-dev-server --config config/webpack/environment.js
[...
1
vote
1
answer
814
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 ...
0
votes
0
answers
111
views
Transition doesn't happen when Tailwind classes are changed by Stimulus
When I change a Tailwind class with Stimulus, the styling updates, but there is no transition:
Here is my JavaScript:
import { Controller } from '@hotwired/stimulus'; ...
-1
votes
1
answer
119
views
TailwindCSS arbitrary value in Rails view [duplicate]
In a Rails 7 app with TailwindCSS (with the tailwindcss-rails gem), I have the car model with the color attribute stored as hexadecimal colors (i.e. #a565cc).
According to TailwindCSS documentation, ...
1
vote
1
answer
442
views
Flowbite plugin in a Rails app with Import map and Tailwind CSS
I got this error from tailwind.config.js
Error: Cannot find module 'flowbite/plugin'
Require stack:
/home/runner/work/project/project/config/tailwind.config.js
at Function.Module._resolveFilename (...
0
votes
0
answers
27
views
TailwindCss + Rails troubleshooting
I'm using TailwindCSS for a new rails app, following this guideline - https://tailwindcss.com/docs/guides/ruby-on-rails
I keep getting 404 in my networks tab when loading tailwind assets but couldn't ...
0
votes
1
answer
102
views
Tailwind and Rails – Warnings despite configuration
I am trying out Tailwind for the first time in a Rails app (7.0.8). I have installed the tailwindcss-rail gem and run tailwindcss:install. Steps 3 and 4 from the rails tailwind setup guide are ...