From 5d6daf32c57a7d5060ab7b2b27bf8f490276e2b1 Mon Sep 17 00:00:00 2001 From: Pouya Saadeghi Date: Mon, 25 Dec 2023 00:41:31 +0300 Subject: [PATCH] fix: unwanted background color in `.prose pre>code` --- src/components/styled/typography.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/styled/typography.css b/src/components/styled/typography.css index 033fb5274ef..450be28a464 100644 --- a/src/components/styled/typography.css +++ b/src/components/styled/typography.css @@ -17,7 +17,7 @@ --tw-prose-td-borders: theme(colors.base-content/0.2); } .prose { - & :where(code):not(:where([class~="not-prose"] *)) { + & :where(code):not(:where([class~="not-prose"] *, pre *)) { padding: 1px 8px; border-radius: var(--rounded-badge); background-color: theme(colors.base-content/0.1);