From 690991838e76c55becb8ba759ce54e0003e847bb Mon Sep 17 00:00:00 2001 From: Michael Sweeney Date: Fri, 10 Jan 2025 21:26:17 -0800 Subject: [PATCH] Fixed `code` and `pre` elements to be styled correctly on both light and dark mode on valtio.dev (#1033) * fixed valtio.dev styles for pre and code elements in both light and dark mode * fixed valtio.dev styles for pre and code elements in both light and dark mode --- docs/api/advanced/subscribe.mdx | 2 +- website/styles/prism-theme.css | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/api/advanced/subscribe.mdx b/docs/api/advanced/subscribe.mdx index e68a6f5f..9d2ce2e6 100644 --- a/docs/api/advanced/subscribe.mdx +++ b/docs/api/advanced/subscribe.mdx @@ -5,7 +5,7 @@ subSection: 'Advanced' description: 'Subscribe to a current state/object' --- -# subscribe +# `subscribe` ## Subscribe from anywhere diff --git a/website/styles/prism-theme.css b/website/styles/prism-theme.css index 8e3b6865..9bdb2d27 100644 --- a/website/styles/prism-theme.css +++ b/website/styles/prism-theme.css @@ -42,6 +42,10 @@ pre[class*="language-"] { code:not([class*="language-"]) { padding: 0.1em 0.3em; + background: #eee; +} + +.dark code:not([class*="language-"]) { background: #2e3440; }