Skip to content

Commit

Permalink
Use variable mono font, reducing size and requests (#2052)
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim authored Jan 21, 2025
1 parent 4648166 commit 51cd422
Show file tree
Hide file tree
Showing 23 changed files with 31 additions and 18 deletions.
3 changes: 1 addition & 2 deletions assets/css/_html.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
@import "@fontsource/lato/300.css";
@import "@fontsource/lato/400.css";
@import "@fontsource/lato/700.css";
@import "@fontsource/inconsolata/400.css";
@import "@fontsource/inconsolata/700.css";
@import "@fontsource-variable/inconsolata";

@import "custom-props/common.css";
@import "custom-props/theme-light.css";
Expand Down
2 changes: 1 addition & 1 deletion assets/css/custom-props/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
--defaultFontFamily: -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif,
"Apple Color Emoji", "Segoe UI Emoji";
--sansFontFamily: "Lato", sans-serif;
--monoFontFamily: "Inconsolata", Menlo, Courier, monospace;
--monoFontFamily: "Inconsolata Variable", Menlo, Courier, monospace;

/* Typography */
--baseFontSize: 18px;
Expand Down
14 changes: 14 additions & 0 deletions assets/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"homepage": "https://github.com/elixir-lang/ex_doc#readme",
"browserslist": "last 2 versions",
"devDependencies": {
"@fontsource/inconsolata": "^4.5.9",
"@fontsource-variable/inconsolata": "^5.1.1",
"@fontsource/lato": "^4.5.10",
"@swup/a11y-plugin": "^5.0.0",
"@swup/progress-plugin": "^3.2.0",
Expand Down
1 change: 0 additions & 1 deletion formatters/epub/dist/epub-elixir-7NG6AETD.css

This file was deleted.

Loading

0 comments on commit 51cd422

Please sign in to comment.