Skip to content

style(fix[fonts]): Load full weight range for IBM Plex Mono#12

Merged
tony merged 1 commit into
mainfrom
fix/font-weights
Apr 6, 2026
Merged

style(fix[fonts]): Load full weight range for IBM Plex Mono#12
tony merged 1 commit into
mainfrom
fix/font-weights

Conversation

@tony
Copy link
Copy Markdown
Member

@tony tony commented Apr 6, 2026

Summary

Follow-up to #11. Badges render in monospace at font-weight: 700 but
IBM Plex Mono only loaded [300, 400], causing browsers to synthesize
bold. This PR gives Mono the same full weight range as Sans.

  • IBM Plex Mono weights: [300, 400][300, 400, 500, 600, 700]
  • Updates CHANGES entry to reflect Mono now has the full set

Test plan

  • uv run ruff check . — passes
  • uv run ruff format . — no changes
  • uv run mypy — no issues
  • uv run pytest --reruns 0 -vvv — 681 passed, 3 skipped
  • Visual check: bold monospace badges render with real font

… 650

why: font-weight: 650 has no dedicated font file in Fontsource, causing
browser fallback to a synthesized bold. Weight 300 is used by Furo and
sphinx-design but was never loaded.
what:
- Add weight 300 to IBM Plex Sans and IBM Plex Mono in DEFAULT_SPHINX_FONTS
- Replace font-weight: 650 with 700 across all CSS (pytest-fixtures,
  gptheme, docs)
- Add CHANGES entry
@tony tony force-pushed the fix/font-weights branch from 02deb23 to e490dd2 Compare April 6, 2026 15:13
@tony tony marked this pull request as ready for review April 6, 2026 15:13
@tony tony merged commit 7f7cffb into main Apr 6, 2026
10 checks passed
@tony tony deleted the fix/font-weights branch April 6, 2026 15:14
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.82%. Comparing base (8607047) to head (e490dd2).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #12   +/-   ##
=======================================
  Coverage   88.82%   88.82%           
=======================================
  Files          72       72           
  Lines        7111     7111           
=======================================
  Hits         6316     6316           
  Misses        795      795           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants