You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-3
Original file line number
Diff line number
Diff line change
@@ -6,16 +6,17 @@ Tailwind CSS for Rails makes it easy to use this CSS framework with the asset pi
6
6
7
7
This gem just gives access to the standard Tailwind CSS framework. If you need to customize Tailwind, you will need to install it the traditional way using [Webpacker](https://github.com/rails/webpacker) instead. This gem is purely intended for those who wish to use Tailwind CSS with the asset pipeline.
8
8
9
-
The version of Tailwind included in this gem has been configured for dark mode, forms, aspect-ratio, and typography.
9
+
The version of Tailwind included in this gem has been configured for dark mode, forms, aspect-ratio, typography, and the Inter font.
10
+
10
11
11
12
## Installation
12
13
13
14
1. Run `./bin/bundle add tailwindcss-rails`
14
15
2. Run `./bin/rails tailwindcss:install` (on a fresh Rails application)
15
16
16
-
The last option adds the purger compressor to `config/environments/production.rb`. This ensures that when `assets:precompile` is called during deployment that the unused class names are not included in the tailwind output css used by the app. It also adds a `stylesheet_link_tag "tailwind"` to your `app/views/application.html.erb` file.
17
+
The last option adds the purger compressor to `config/environments/production.rb`. This ensures that when `assets:precompile` is called during deployment that the unused class names are not included in the tailwind output css used by the app. It also adds a `stylesheet_link_tag "tailwind"`and `stylesheet_link_tag "inter-font"`to your `app/views/application.html.erb` file.
17
18
18
-
You can do both things yourself, if you've changed the default setup.
19
+
You can do these things yourself, if you've changed the default setup.
19
20
20
21
21
22
## Purging in production
@@ -39,6 +40,7 @@ By default, the CSS purger will only operate on the tailwind css file included w
0 commit comments