Skip to content

improve lato font setup and add body font rendering#817

Merged
moehdotdev merged 1 commit into
mainfrom
landing-home-uxui-stuff
Jun 16, 2026
Merged

improve lato font setup and add body font rendering#817
moehdotdev merged 1 commit into
mainfrom
landing-home-uxui-stuff

Conversation

@moehdotdev

Copy link
Copy Markdown
Member

F** fireFox :)

  • switched lato from a static class (lato.className) to a css variable (lato.variable) so the font can be referenced via var(--font-lato) in css
  • added 700 weight alongside 400 so bold text actually uses lato bold instead of faux bold
  • added display: swap to avoid invisible text during font load
  • defined --font-lato in :root with a full system font fallback stack
  • applied font-family: var(--font-lato) to body along with font-feature-settings, text-rendering: optimizeLegibility, and antialiasing (-webkit-font-smoothing, -moz-osx-font-smoothing) for crisper text rendering
  • removed two stale comments

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
notevo Building Building Preview, Comment Jun 16, 2026 7:36pm

@moehdotdev moehdotdev merged commit a8ccf46 into main Jun 16, 2026
1 of 2 checks passed
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.

1 participant