Skip to content

feat(apollo-vertex): load Inter font via next/font#467

Merged
KokoMilev merged 1 commit intomainfrom
creilly11235/rebase-from-main
Apr 10, 2026
Merged

feat(apollo-vertex): load Inter font via next/font#467
KokoMilev merged 1 commit intomainfrom
creilly11235/rebase-from-main

Conversation

@creilly11235
Copy link
Copy Markdown
Collaborator

Summary

  • Load Inter font properly via next/font/google with variable: "--font-sans" — previously declared in CSS variables but never loaded, causing fallback to system fonts
  • Add registry:font item (font-inter) so consumers can install/swap fonts independently from the theme
  • Remove font declarations from theme cssVars (light/dark) to avoid CSS specificity conflicts with next/font, and add @theme inline bridge for Tailwind CSS 4 utility resolution
  • Fix font family field in registry font item to match shadcn schema expectations

Test plan

  • Verify Inter font renders correctly in the apollo-vertex app (dev and prod build)
  • Confirm font-sans Tailwind utility resolves to Inter (check elements using font-sans class like kbd.tsx)
  • Verify dark mode font rendering is unaffected
  • Run shadcn build to confirm registry validates with the new registry:font item
  • Test that font-mono and font-serif utilities still resolve to Tailwind defaults

🤖 Generated with Claude Code

@creilly11235 creilly11235 requested a review from a team as a code owner April 7, 2026 19:24
@creilly11235 creilly11235 requested review from KokoMilev and VKravchuk and removed request for a team April 7, 2026 19:24
@KokoMilev KokoMilev enabled auto-merge (rebase) April 7, 2026 19:24
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (PT)
apollo-canvas 🟢 Ready Preview, Logs Apr 10, 2026, 01:43:08 AM
apollo-landing 🟢 Ready Preview, Logs Apr 10, 2026, 01:42:55 AM
apollo-ui-react 🟢 Ready Preview, Logs Apr 10, 2026, 01:43:10 AM
apollo-vertex 🟢 Ready Preview, Logs Apr 10, 2026, 01:44:40 AM
apollo-wind 🟢 Ready Preview, Logs Apr 10, 2026, 01:42:58 AM

@github-actions github-actions bot added the size:M 30-99 changed lines. label Apr 7, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 7, 2026

Dependency License Review

  • 1948 package(s) scanned
  • ✅ No license issues found
  • ⚠️ 4 package(s) excluded (see details below)
License distribution
License Packages
MIT 1707
ISC 89
Apache-2.0 61
BSD-3-Clause 28
BSD-2-Clause 23
BlueOak-1.0.0 8
MPL-2.0 5
MIT OR Apache-2.0 3
MIT-0 3
CC0-1.0 3
LGPL-3.0-or-later 2
Unknown 2
(MIT OR Apache-2.0) 2
Unlicense 2
Python-2.0 1
CC-BY-4.0 1
(MPL-2.0 OR Apache-2.0) 1
Artistic-2.0 1
(WTFPL OR MIT) 1
(BSD-2-Clause OR MIT OR Apache-2.0) 1
CC-BY-3.0 1
0BSD 1
(MIT OR CC0-1.0) 1
MIT AND ISC 1
Excluded packages
Package Version License Reason
@img/sharp-libvips-linux-x64 1.2.4 LGPL-3.0-or-later LGPL pre-built binary, not linked
@img/sharp-libvips-linuxmusl-x64 1.2.4 LGPL-3.0-or-later LGPL pre-built binary, not linked
@uipath/proteus-client 0.1.10 Unknown UiPath internal package, Proprietary license
khroma 2.1.0 Unknown MIT per GitHub repo, missing license field in package.json

@creilly11235 creilly11235 force-pushed the creilly11235/rebase-from-main branch 2 times, most recently from 7785079 to 623d8fa Compare April 8, 2026 23:59
@ruudandriessen ruudandriessen force-pushed the creilly11235/rebase-from-main branch from 2a0306e to ea7ab3e Compare April 10, 2026 08:35
@github-actions github-actions bot added size:XXL 1,000+ changed lines. and removed size:M 30-99 changed lines. labels Apr 10, 2026
@ruudandriessen ruudandriessen force-pushed the creilly11235/rebase-from-main branch from ea7ab3e to 1b7f2b2 Compare April 10, 2026 08:38
…ont item

Inter was declared in theme CSS variables but never actually loaded,
causing the browser to fall back to system fonts. Use next/font/google
with variable: "--font-sans" following the shadcn pattern, and move
font declarations out of theme cssVars into a separate registry:font
item so consumers can swap fonts independently.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ruudandriessen ruudandriessen force-pushed the creilly11235/rebase-from-main branch from 1b7f2b2 to 65c89df Compare April 10, 2026 08:41
@github-actions github-actions bot added size:M 30-99 changed lines. and removed size:XXL 1,000+ changed lines. labels Apr 10, 2026
@KokoMilev KokoMilev merged commit d5a19bf into main Apr 10, 2026
46 checks passed
@KokoMilev KokoMilev deleted the creilly11235/rebase-from-main branch April 10, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants