Skip to content

fix(styles): restore font faces after TanStack Start rewrite - #149

Merged
voltcrash merged 5 commits into
mainfrom
fix/font-faces
Oct 18, 2026
Merged

voltcrash merged 5 commits into
mainfrom
fix/font-faces

Conversation

@voltcrash

Copy link
Copy Markdown
Owner

Problem

Every selectable font was broken. The generated @font-face rules (oxytype-fonts.css, including the * Preview families) were only imported by the legacy tailwind.css entry, which got deleted in the Start migration. app/app.css never imported them, so only the standalone Roboto Mono/Lexend Deca faces loaded and everything else fell back.

Fix

  • Import oxytype-fonts.css in app/app.css
  • Remove the duplicate import from Storybook's app.css, which already imports app/app.css
  • Add a regression test that checks the app CSS imports the generated font and icon sheets
  • README note

Verification

  • vp test run __tests__/vite-plugins/font-styles.spec.ts: 3 passed
  • vp build: the client app-*.css contains 86 @font-face rules (e.g. Fira Code + Fira Code Preview)
  • Dev server: document.fonts registers 86 faces; "Fira Code" and "Fira Code Preview" load

🤖 Generated with Claude Code

voltcrash and others added 4 commits October 18, 2026 17:42
The @font-face rules for every selectable font (and their Preview
families) were only imported by the deleted legacy tailwind.css entry.
app.css never picked them up, so only the standalone Roboto Mono and
Lexend Deca faces loaded and every other font fell back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Storybook imports app/app.css, which now carries the generated font faces.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Guards against the font face import being dropped again when entry
stylesheets move.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
app/app.css now imports oxytype-fonts.css; Storybook no longer does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@voltcrash
voltcrash merged commit 87d7f57 into main Oct 18, 2026
12 checks passed
@voltcrash
voltcrash deleted the fix/font-faces branch October 18, 2026 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant