Skip to content

Commit d46ca0c

Browse files
committed
doc: add a README section on choosing a specific version of tailwindcss
1 parent 7ce669b commit d46ca0c

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

README.md

+19-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<!-- toc -->
88

99
- [Installation](#installation)
10+
* [Choosing a specific version of `tailwindcss`](#choosing-a-specific-version-of-tailwindcss)
1011
* [Using a local installation of `tailwindcss`](#using-a-local-installation-of-tailwindcss)
1112
- [Developing with Tailwindcss](#developing-with-tailwindcss)
1213
* [Configuration and commands](#configuration-and-commands)
@@ -17,7 +18,7 @@
1718
* [Using with PostCSS](#using-with-postcss)
1819
* [Custom inputs or outputs](#custom-inputs-or-outputs)
1920
- [Troubleshooting](#troubleshooting)
20-
* [Lost keystrokes or hanging when using `ruby/debug` with the Puma plugin](#lost-keystrokes-or-hanging-when-using-rubydebug-with-the-puma-plugin)
21+
* [Lost keystrokes or hanging when using terminal-based debugging tools (e.g. IRB, Pry, `ruby/debug`...etc.) with the Puma plugin](#lost-keystrokes-or-hanging-when-using-terminal-based-debugging-tools-eg-irb-pry-rubydebugetc-with-the-puma-plugin)
2122
* [Running in a docker container exits prematurely](#running-in-a-docker-container-exits-prematurely)
2223
* [Conflict with sassc-rails](#conflict-with-sassc-rails)
2324
* [Class names must be spelled out](#class-names-must-be-spelled-out)
@@ -35,7 +36,23 @@ With Rails 7 you can generate a new application preconfigured with Tailwind by u
3536
1. Run `./bin/bundle add tailwindcss-rails`
3637
2. Run `./bin/rails tailwindcss:install`
3738

38-
This gem depends on the `tailwindcss-ruby` gem to install a working tailwind executable. You can also use a local (npm-based) installation if you prefer, please go to https://github.com/flavorjones/tailwindcss-ruby for more information.
39+
This gem depends on the `tailwindcss-ruby` gem to install a working tailwind executable.
40+
41+
42+
### Choosing a specific version of `tailwindcss`
43+
44+
The `tailwindcss-ruby` gem is declared as a floating dependency of this gem, so by default you will get the most recent stable version. However, you can select a specific version of tailwind by pinning that gem to the analogous version in your application's `Gemfile`. For example,
45+
46+
``` ruby
47+
gem "tailwindcss-rails"
48+
49+
# pin to tailwindcss version 3.4.13
50+
gem "tailwindcss-ruby", "3.4.13"
51+
```
52+
53+
### Using a local installation of `tailwindcss`
54+
55+
You can also use a local (npm-based) installation if you prefer, please go to https://github.com/flavorjones/tailwindcss-ruby for more information.
3956

4057

4158
## Developing with Tailwindcss

0 commit comments

Comments
 (0)