Skip to content

Migrate to Tailwind default font weight classes#1963

Merged
kmcginnes merged 1 commit into
mainfrom
font-weight-migration
Jul 16, 2026
Merged

Migrate to Tailwind default font weight classes#1963
kmcginnes merged 1 commit into
mainfrom
font-weight-migration

Conversation

@kmcginnes

@kmcginnes kmcginnes commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Description

Removes the custom fontWeight override from tailwind.config.ts and migrates all class usages to Tailwind's standard weight vocabulary. Zero visual change — the rendered CSS weight values are identical.

Old class New class CSS weight
font-base font-normal 400
font-bold font-semibold 600
font-extraBold font-bold 700

font-light (300) and font-medium (500) already matched their Tailwind defaults and required no change.

This restores the full default weight scale (thin/extralight/light/normal/medium/semibold/bold/extrabold/black) for future use, and removes one more piece of JS config ahead of the full config file deletion (#1954).

How to read

  1. tailwind.config.ts — the fontWeight block deletion
  2. index.css@apply font-boldfont-semibold on the <b> element
  3. Remaining 22 files — mechanical font-basefont-normal, font-boldfont-semibold class renames

Validation

  • pnpm checks passes
  • pnpm test passes (2178 tests)
  • Visual: no change — same CSS weight values under standard Tailwind names

Related Issues

Check List

  • I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • I have verified pnpm checks passes with no errors.
  • I have verified pnpm test passes with no failures.
  • I have covered new added functionality with unit tests if necessary.
  • I have updated documentation if necessary.

@kmcginnes
kmcginnes marked this pull request as ready for review July 16, 2026 20:57
Replace custom fontWeight overrides with Tailwind's standard scale:
- font-base (400) → font-normal
- font-bold (600) → font-semibold
- font-extraBold (700) → font-bold

Delete the fontWeight block from tailwind.config.ts, restoring the
full default weight scale. Zero visual change — the rendered CSS
weight values are identical.
@kmcginnes
kmcginnes force-pushed the font-weight-migration branch from efd4809 to 0a99122 Compare July 16, 2026 21:01
@kmcginnes
kmcginnes merged commit 5ef05eb into main Jul 16, 2026
6 checks passed
@kmcginnes
kmcginnes deleted the font-weight-migration branch July 16, 2026 21:45
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.

Migrate to Tailwind default font weight classes

1 participant