Skip to content

Commit 144eaa7

Browse files
committed
Remove remaining traces of the Inter font.
Note: we will need to smooth this out in an upgrade step.
1 parent 768594a commit 144eaa7

File tree

4 files changed

+3
-201
lines changed

4 files changed

+3
-201
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ The installer will generate a Tailwind input file in `app/assets/stylesheets/app
6565

6666
#### Output file: `app/assets/builds/tailwind.css`
6767

68-
When you run `rails tailwindcss:build`, the input file will be used to generate the output in `app/assets/builds/tailwind.css`. That's the output CSS that you'll include in your app (the installer automatically configures this, alongside the Inter font as well).
68+
When you run `rails tailwindcss:build`, the input file will be used to generate the output in `app/assets/builds/tailwind.css`. That's the output CSS that you'll include in your app.
6969

7070
#### Commands
7171

Diff for: app/assets/stylesheets/inter-font.css

-194
This file was deleted.

Diff for: lib/install/tailwindcss.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
if APPLICATION_LAYOUT_PATH.exist?
55
say "Add Tailwindcss include tags and container element in application layout"
66
insert_into_file APPLICATION_LAYOUT_PATH.to_s, <<~ERB.indent(4), before: /^\s*<%= stylesheet_link_tag/
7-
<%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %>
7+
<%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %>
88
ERB
99

1010
if File.open(APPLICATION_LAYOUT_PATH).read =~ /<body>\n\s*<%= yield %>\n\s*<\/body>/
@@ -13,7 +13,7 @@
1313
end
1414
else
1515
say "Default application.html.erb is missing!", :red
16-
say %( Add <%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %> within the <head> tag in your custom layout.)
16+
say %( Add <%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %> within the <head> tag in your custom layout.)
1717
end
1818

1919
say "Build into app/assets/builds"

Diff for: lib/tailwindcss/engine.rb

-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
module Tailwindcss
44
class Engine < ::Rails::Engine
5-
initializer "tailwindcss.assets" do
6-
Rails.application.config.assets.precompile += %w( inter-font.css )
7-
end
8-
95
initializer "tailwindcss.disable_generator_stylesheets" do
106
Rails.application.config.generators.stylesheets = false
117
end

0 commit comments

Comments
 (0)