From 86a436645a46d1fe2dea2931e16a69f06ce4dfd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Sat, 27 Jan 2024 22:11:27 +0100 Subject: [PATCH] Increase font-weight of code mark in headings (#123) --- src/components/DocumentView/Text.tsx | 2 -- src/fonts/index.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/DocumentView/Text.tsx b/src/components/DocumentView/Text.tsx index 28fac894a..fac928581 100644 --- a/src/components/DocumentView/Text.tsx +++ b/src/components/DocumentView/Text.tsx @@ -65,7 +65,6 @@ function Code(props: MarkedLeafProps) { return ( ) { 'dark:ring-light/1', 'dark:bg-light/1', 'dark:text-light/7', - '[&>*]:font-normal', // Text size is proportional to the font-size of the parent element 'text-[.875em]', // We ensure that the code is not making the parent bigger, especially in headings diff --git a/src/fonts/index.ts b/src/fonts/index.ts index 6d1525ba7..6f1b5c2be 100644 --- a/src/fonts/index.ts +++ b/src/fonts/index.ts @@ -24,7 +24,7 @@ const inter = Inter({ }); export const ibmPlexMono = IBM_Plex_Mono({ - weight: ['400'], + weight: ['400', '600'], variable: '--font-mono', style: 'normal', preload: false,