Skip to content

Commit

Permalink
Use nicer fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Jan 2, 2024
1 parent ae27657 commit c978ff9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@import url('https://rsms.me/inter/inter.css');
@import url('https://assets.hynek.me/css/bm.css');


:root {
font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */
}
@supports (font-variation-settings: normal) {
:root { font-family: InterVariable, sans-serif; }
}
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
# Add any paths that contain templates here, relative to this directory.
templates_path = []

html_css_files = ["custom.css"]

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
source_suffix = [".rst", ".md"]
Expand Down

0 comments on commit c978ff9

Please sign in to comment.