From 1b0f00ee1ecbfca4c7cbd78c274f4e19240959a2 Mon Sep 17 00:00:00 2001 From: KishiTheMechanic Date: Mon, 27 Nov 2023 17:45:48 +0100 Subject: [PATCH] new typography --- src/assets/styles/globals.css | 2 +- src/components/articles/Toc.tsx | 4 +-- src/components/articles/doc/DocContents.tsx | 4 ++- src/components/articles/doc/DocIndex.tsx | 8 +++--- src/components/articles/doc/DocPagination.tsx | 4 +-- .../articles/legal/LegalContents.tsx | 4 ++- src/components/articles/news/NewsContents.tsx | 4 ++- src/components/articles/news/NewsIndex.tsx | 6 ++-- .../articles/news/NewsPageIndex.tsx | 8 +++--- src/components/articles/news/TopNewsRow.tsx | 14 +++++----- src/components/pages/common/DiscordRow.tsx | 10 +++---- src/components/pages/home/HeroRow.tsx | 15 ++++++++-- src/layouts/common/CommonFooter.tsx | 4 +-- src/lib/rehypePlugin.ts | 28 +++++++++++++++++++ src/pages/[locale]/doc/[...slug].tsx | 2 ++ src/pages/[locale]/legal/[...slug].tsx | 2 ++ src/pages/[locale]/news/[...slug].tsx | 2 ++ src/pages/_document.tsx | 2 +- tailwind.config.js | 2 +- 19 files changed, 88 insertions(+), 37 deletions(-) create mode 100644 src/lib/rehypePlugin.ts diff --git a/src/assets/styles/globals.css b/src/assets/styles/globals.css index 2a4eecf..50d58b1 100644 --- a/src/assets/styles/globals.css +++ b/src/assets/styles/globals.css @@ -5,7 +5,7 @@ @layer base { html { font-family: - Outfit, + Inter, 'Noto Sans JP', ui-sans-serif, system-ui, diff --git a/src/components/articles/Toc.tsx b/src/components/articles/Toc.tsx index ea47096..e989e0e 100644 --- a/src/components/articles/Toc.tsx +++ b/src/components/articles/Toc.tsx @@ -16,7 +16,7 @@ export default function Toc({ toc, activeItemIds }: Props) { {toc.length > 0 && ( <>
-

{t('toc')}

+

{t('toc')}