From 765f99e04b0f1499a33217f2a47900cc9b250e24 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Wed, 20 Nov 2024 18:24:58 +0200 Subject: [PATCH] docs: fix font smoothing across projects (#10183) --- www/apps/api-reference/app/globals.css | 3 ++- www/apps/book/app/globals.css | 3 ++- www/apps/resources/app/globals.css | 3 ++- www/apps/ui/src/styles/globals.css | 3 ++- www/apps/user-guide/app/globals.css | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/www/apps/api-reference/app/globals.css b/www/apps/api-reference/app/globals.css index a2b1539920..6de28de115 100644 --- a/www/apps/api-reference/app/globals.css +++ b/www/apps/api-reference/app/globals.css @@ -32,7 +32,8 @@ } html { - -webkit-font-smoothing: antialiased; + @apply antialiased; + text-rendering: optimizeLegibility; } body { diff --git a/www/apps/book/app/globals.css b/www/apps/book/app/globals.css index 4f4a832011..7f74381658 100644 --- a/www/apps/book/app/globals.css +++ b/www/apps/book/app/globals.css @@ -5,7 +5,8 @@ @layer base { html { - -webkit-font-smoothing: antialiased; + @apply antialiased; + text-rendering: optimizeLegibility; } body { diff --git a/www/apps/resources/app/globals.css b/www/apps/resources/app/globals.css index 97686aaf3e..e9d0cfafd1 100644 --- a/www/apps/resources/app/globals.css +++ b/www/apps/resources/app/globals.css @@ -5,7 +5,8 @@ @layer base { html { - --webkit-font-smoothing: antialiased; + @apply antialiased; + text-rendering: optimizeLegibility; overscroll-behavior-y: none; } diff --git a/www/apps/ui/src/styles/globals.css b/www/apps/ui/src/styles/globals.css index dfc59ca786..e7c61e6e84 100644 --- a/www/apps/ui/src/styles/globals.css +++ b/www/apps/ui/src/styles/globals.css @@ -4,7 +4,8 @@ @layer base { html { - -webkit-font-smoothing: antialiased; + @apply antialiased; + text-rendering: optimizeLegibility; } .html { @apply text-medusa-fg-base; diff --git a/www/apps/user-guide/app/globals.css b/www/apps/user-guide/app/globals.css index abdd9847fb..82a8edcec3 100644 --- a/www/apps/user-guide/app/globals.css +++ b/www/apps/user-guide/app/globals.css @@ -5,7 +5,8 @@ @layer base { html { - -webkit-font-smoothing: antialiased; + @apply antialiased; + text-rendering: optimizeLegibility; } body {