Skip to content

USWDS-Site - Font size and family: Add a note linking to the font size tokens - #3262

Open
AKnassa wants to merge 2 commits into
uswds:mainfrom
AKnassa:ak-824-font-size-note
Open

USWDS-Site - Font size and family: Add a note linking to the font size tokens#3262
AKnassa wants to merge 2 commits into
uswds:mainfrom
AKnassa:ak-824-font-size-note

Conversation

@AKnassa

@AKnassa AKnassa commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Added a note to the top of the Font size and family utility page pointing readers to the font size tokens page, where the actual size of every token is listed.

Related issue

Closes #824

Problem statement

A reader trying to find the actual font sizes available (for Public Sans) couldn't work them out from the Font size and family utility page — the page shows the utility classes but never points to where the real sizes live. A maintainer suggested the fix in the issue: the page "just needs a better note and link to the font size token page."

Solution

Added a short note at the top of the utility examples — styled exactly like the page's existing notes — saying the utilities are built from USWDS font size tokens and linking "font size tokens" to the token reference page, where each token's output size in each typeface is listed. That's the page the original reporter eventually found the answer on.

A changelog entry is included in the page's "Latest updates."

Testing and review

  • Rendered page verified: the note appears at the top of the examples with a working link to the font size tokens page.
  • bundle exec rspec passes (10 examples, 0 failures).
  • The changelog entry's PR number field will be filled in with this PR's number.
  • To review: open Utilities → Font size and family and check the first note.

Readers couldn't find the actual sizes available for each
font size token from the Font size and family utility
page. Add a note at the top of the examples linking to
the font size tokens reference, per the maintainer's
suggested fix in the issue, plus a changelog entry
(PR number backfilled later).

Fixes uswds#824
@AKnassa
AKnassa marked this pull request as ready for review July 19, 2026 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

Add font sizes for Public Sans

1 participant