From 7358d6a1d9353dd54bd14ac9634a110ee858bb1d Mon Sep 17 00:00:00 2001 From: Mehdi Dara Date: Sun, 11 Feb 2024 12:21:38 +0330 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20Optimized=20fonts=20for=20better=20?= =?UTF-8?q?legibility?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.css | 11 +++++++++++ src/app.html | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/app.css b/src/app.css index f85c976..f57bd32 100644 --- a/src/app.css +++ b/src/app.css @@ -2,6 +2,17 @@ @tailwind components; @tailwind utilities; +@layer base { + :root { + body { + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + text-rendering: optimizeLegibility; + scroll-behavior: smooth; + } + } +} + @layer base { :root { --sb-track-color: rgb(229 229 229 / 0.5); diff --git a/src/app.html b/src/app.html index c2e55be..07a0808 100644 --- a/src/app.html +++ b/src/app.html @@ -37,7 +37,7 @@
%sveltekit.body%