Skip to content

Commit 53089c1

Browse files
author
David Heinemeier Hansson
committed
Add Inter as the default font
1 parent 448ec97 commit 53089c1

22 files changed

+218
-13
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@ Tailwind CSS for Rails makes it easy to use this CSS framework with the asset pi
66

77
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.
88

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+
1011

1112
## Installation
1213

1314
1. Run `./bin/bundle add tailwindcss-rails`
1415
2. Run `./bin/rails tailwindcss:install` (on a fresh Rails application)
1516

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.
1718

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.
1920

2021

2122
## Purging in production
@@ -39,6 +40,7 @@ By default, the CSS purger will only operate on the tailwind css file included w
3940
config.assets.css_compressor = Tailwindcss::Compressor.new(only_purge: %w[ tailwind and_my_other_css_file ])
4041
```
4142

43+
4244
## License
4345

4446
Tailwind for Rails is released under the [MIT License](https://opensource.org/licenses/MIT).
Binary file not shown.
36.5 KB
Binary file not shown.
32.4 KB
Binary file not shown.
30.6 KB
Binary file not shown.
Binary file not shown.
54.8 KB
Binary file not shown.
20.2 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)