cssbundling-rails
Bundle and process CSS in Rails with Tailwind, PostCSS, and Sass via Node.js. (by rails)
tailwindcss-stimulus-components
A set of StimulusJS components for TailwindCSS apps similar to Bootstrap JS components. (by excid3)
Our great sponsors
cssbundling-rails | tailwindcss-stimulus-components | |
---|---|---|
27 | 11 | |
552 | 1,305 | |
2.5% | - | |
6.4 | 8.7 | |
6 days ago | 24 days ago | |
Ruby | JavaScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cssbundling-rails
Posts with mentions or reviews of cssbundling-rails.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-19.
-
Live reload a Rails 7 application, an unsatisfaying attempt
See the issue I opened on Github. [EDIT: closed by DHH recently]
-
Connecting Debugger to Rails Applications
In the Procfile.dev that's currently generated by the cssbundling-rails and jsbundling-rails gems, we can see that they write the web process like:
- Ruby 3.2 + Rails 7 + Tailwind + Font Awesome - should be blazing fast, yet tests very slow. 20 requests are being made. How do I make fewer requests, create fewer objects and make this simple app super fast? Production : https pickaxe dot ca. Thank you! -Dan H
-
Comparing Phoenix to Rails in December 2022
The functionality comes from https://github.com/rails/jsbundling-rails and https://github.com/rails/cssbundling-rails -- both come with Rails 7 and all you have to do is generate your app with the choices you want such as -j esbuild --css tailwind.
-
Setup TailwindCSS, postcss and esbuild on Rails 7
TailwindCSS from CSS Bundling for Rails - (this post)
-
New Rails project - help me choose JS + CSS bundling option.
Maybe https://github.com/rails/cssbundling-rails does what you want? For CSS only, afaik it's perfectly fine to mix different approaches for CSS and JS within one Rails app, so you could still use importmaps for JS.
-
Cannot import styles with postcss using cssbundling and esbuild
The docs at https://github.com/rails/cssbundling-rails clearly state that
-
Foundation + Rails 7 tutorial
Install cssbundling-rails gem.
-
How to migrate rails sprockets to propshaft
Propshaft has a smaller scope than sprockets and requires you to rely on the js-bundling and css-bundling gems to handle the building of CSS and JS assets. Read the docs for an extensive upgrade guide.
-
New view helpers for jsbundling ?
As you may know there's also a [CSS bundling](https://github.com/rails/cssbundling-rails). However, I've only upgraded a trivial project, don't know how involved that would be.
tailwindcss-stimulus-components
Posts with mentions or reviews of tailwindcss-stimulus-components.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-06-04.
-
Tailwind UI, JS and Rails
My question is I have seen tailwindcss-stimulus-components and wondered if there are any video tutorials on how to implement it?
-
Building UI with Rails 7 + Tailwind
If you don't want to pay for it, you can build your own, or use components other people have created, like tailwindcss-stimulus-components.
-
Adding Custom Attributes to Trix's toolbar
Tailwind CSS Stimulus Components
-
What is your Rails 7 Stack? And other questions, I need help
Have you seen this? https://github.com/excid3/tailwindcss-stimulus-components
- Tailwind (JavaScript) with new rails 7 app
-
hotwire turbo + tailwindui experiences?
yeah just got started. iโm using the gem at https://github.com/excid3/tailwindcss-stimulus-components for now, and iโm hard coding in all the transitions. but starting to get cumbersome. wondering if i should just use their react/vue components for anything pre-built, and write my own stimulus controllers for whatever limited needs i have. (goal is to leverage server side rendered html plus hotwire for most of the heavy lifting)
-
Server-rendered modal forms on Rails with CableReady, Mrujs, Stimulus, and Tailwind
// Credit: This controller is an edited-to-the-essentials version // of the modal component created by @excid3 as part of the essential // tailwind-stimulus-components package found here: // https://github.com/excid3/tailwindcss-stimulus-components // In production, use the full component from the // library or expand this controller to allow for // keyboard closing and dealing with scroll positions import { Controller } from "@hotwired/stimulus" export default class extends Controller { static targets = ['container']; connect() { this.toggleClass = 'hidden'; this.backgroundId = 'modal-background'; this.backgroundHtml = this._backgroundHTML(); this.allowBackgroundClose = true; } disconnect() { this.close(); } open() { document.body.classList.add('fixed', 'inset-x-0', 'overflow-hidden'); this.containerTarget.classList.remove(this.toggleClass); document.body.insertAdjacentHTML('beforeend', this.backgroundHtml); this.background = document.querySelector(`#${this.backgroundId}`); } close() { if (typeof event !== 'undefined') { event.preventDefault() } this.containerTarget.classList.add(this.toggleClass); if (this.background) { this.background.remove() } } _backgroundHTML() { return `${this.backgroundId}" class="fixed top-0 left-0 w-full h-full" style="background-color: rgba(0, 0, 0, 0.7); z-index: 9998;">`; } }
-
Do you wish Bootstrap had a StimulusJS library instead of relying on jQuery and Popper?
Yeah, I made this to replicate the JS features of Bootstrap in Tailwind & Stimulus: https://github.com/excid3/tailwindcss-stimulus-components
-
How to use modals with forms in Rails using Turbo
this is extended from the original modal supplied from tailwindcss-stimulus-components
What are some alternatives?
When comparing cssbundling-rails and tailwindcss-stimulus-components you can also consider the following projects:
PostCSS - Transforming styles with JS plugins
trix - A rich text editor for everyday writing
sprockets-rails - Sprockets Rails integration
jsbundling-rails - Bundle and transpile JavaScript in Rails with esbuild, rollup.js, or Webpack.
propshaft - Deliver assets for Rails
daisyui - ๐ผ ๐ผ ๐ผ ๐ผ ๐ผ โThe most popular, free and open-source Tailwind CSS component library
tailwindcss-rails
bootstrap.native - Bootstrap components build with Typescript
turbo-rails - Use Turbo in your Ruby on Rails app
turbo_modal
Sass - Sass makes CSS fun!
Ruby on Rails - Ruby on Rails
cssbundling-rails vs PostCSS
tailwindcss-stimulus-components vs trix
cssbundling-rails vs sprockets-rails
tailwindcss-stimulus-components vs jsbundling-rails
cssbundling-rails vs propshaft
tailwindcss-stimulus-components vs daisyui
cssbundling-rails vs tailwindcss-rails
tailwindcss-stimulus-components vs bootstrap.native
cssbundling-rails vs turbo-rails
tailwindcss-stimulus-components vs turbo_modal
cssbundling-rails vs Sass
tailwindcss-stimulus-components vs Ruby on Rails