From 7ce85b9eab83eaa77c65ba093c910fd7a729bc58 Mon Sep 17 00:00:00 2001 From: JavaZero <71128095+JavaZeroo@users.noreply.github.com> Date: Tue, 22 Jul 2025 11:30:05 +0800 Subject: [PATCH] style: improve base typography --- index.html | 6 ++++++ src/index.css | 8 ++++++++ tailwind.config.js | 6 +++++- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 4d0ac0e..295e6f0 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,12 @@ + + + diff --git a/src/index.css b/src/index.css index 47e369a..ee95fc2 100644 --- a/src/index.css +++ b/src/index.css @@ -1,9 +1,17 @@ +@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700&display=swap'); + @tailwind base; @tailwind components; @tailwind utilities; /* Accessibility improvements */ @layer base { + body { + font-family: 'Noto Sans SC', ui-sans-serif, system-ui, Helvetica Neue, Arial, Noto Sans, sans-serif; + background-color: #f9fafb; + color: #1f2937; + line-height: 1.5; + } /* Screen reader only content */ .sr-only { position: absolute; diff --git a/tailwind.config.js b/tailwind.config.js index dca8ba0..e5a2e27 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -5,7 +5,11 @@ export default { "./src/**/*.{js,ts,jsx,tsx}", ], theme: { - extend: {}, + extend: { + fontFamily: { + sans: ['"Noto Sans SC"', 'ui-sans-serif', 'system-ui', 'Helvetica Neue', 'Arial', 'Noto Sans', 'sans-serif'], + }, + }, }, plugins: [], }