Skip to content

Modern Docker Management, Designed for Everyone

fix: font antialiasing causing blurriness

Kyle Mendell2bcb2e2475fb
diff --git a/frontend/src/app.css b/frontend/src/app.css
index 7ef62bb44..55fa3e08d 100644
--- a/frontend/src/app.css
+++ b/frontend/src/app.css
@@ -6,13 +6,17 @@
@font-face {
font-family: 'Geist';
src: url('/api/fonts/sans') format('woff2');
+ font-weight: 100 900;
font-display: swap;
+ font-style: normal;
}
@font-face {
font-family: 'Geist Mono';
src: url('/api/fonts/mono') format('woff2');
+ font-weight: 100 900;
font-display: swap;
+ font-style: normal;
}
@font-face {
@@ -158,8 +162,11 @@
}
body {
- @apply bg-background text-foreground antialiased;
+ @apply bg-background text-foreground;
position: relative;
+ -webkit-font-smoothing: auto;
+ -moz-osx-font-smoothing: auto;
+ text-rendering: optimizeLegibility;
}
button {
@apply cursor-pointer;
@@ -196,6 +203,9 @@ body::after {
background-size: 200px 200px;
opacity: var(--glass-noise-opacity);
pointer-events: none;
+ backface-visibility: hidden;
+ transform: translateZ(0);
+ will-change: transform;
}
@keyframes ambient-float {
diff --git a/frontend/src/lib/components/mobile-nav/styles.css b/frontend/src/lib/components/mobile-nav/styles.css
index 1a856442b..42a1a2d9e 100644
--- a/frontend/src/lib/components/mobile-nav/styles.css
+++ b/frontend/src/lib/components/mobile-nav/styles.css
@@ -12,9 +12,10 @@
will-change: transform, opacity;
/* Prevent layout shifts during animation */
transform-origin: center bottom;
- /* Smooth subpixel rendering */
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
+ /* Proper cross-platform font rendering */
+ -webkit-font-smoothing: auto;
+ -moz-osx-font-smoothing: auto;
+ text-rendering: optimizeLegibility;
/* Ensure it stays fixed to viewport, not page content */
position: fixed;
/* Prevent the nav from being affected by virtual keyboard */