Skip to content

Commit 7f7cffb

Browse files
authored
style(fix[fonts]): Load full weight range for IBM Plex Mono (#12)
Follow-up to #11. IBM Plex Mono only loaded `[300, 400]` but badges render in monospace at `font-weight: 700`, causing browsers to synthesize bold instead of using the real font file. - **IBM Plex Mono weights**: `[300, 400]` → `[300, 400, 500, 600, 700]` (now matches IBM Plex Sans)
2 parents 8607047 + e490dd2 commit 7f7cffb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CHANGES

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ $ uv add gp-sphinx --prerelease allow
3030

3131
### Bug fixes
3232

33-
- Load font weight 300 for IBM Plex Sans and IBM Plex Mono
34-
([Furo](https://github.com/pradyunsg/furo) and sphinx-design use
35-
`font-weight: 300` for lighter text, but the weight was never loaded,
36-
causing browsers to synthesize a light variant)
33+
- Load full weight range `[300, 400, 500, 600, 700]` for both IBM Plex
34+
Sans and IBM Plex Mono (badges render in monospace at `font-weight: 700`,
35+
Furo code blocks use 300, and intermediate weights inherit from
36+
surrounding context — previously only Sans had the full set)
3737
- Replace `font-weight: 650` with `700` in badge CSS across
3838
`sphinx-autodoc-pytest-fixtures`, `sphinx-gptheme`, and docs (650 is not
3939
a standard Fontsource weight, so browsers were synthesizing bold instead

packages/gp-sphinx/src/gp_sphinx/defaults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ class FontConfig(_FontConfigRequired, total=False):
203203
"family": "IBM Plex Mono",
204204
"package": "@fontsource/ibm-plex-mono",
205205
"version": "5.2.7",
206-
"weights": [300, 400],
206+
"weights": [300, 400, 500, 600, 700],
207207
"styles": ["normal", "italic"],
208208
"subset": "latin",
209209
},

0 commit comments

Comments
 (0)