From 742c011f4ee62e04f2d2d8f7b2e9b76b08203655 Mon Sep 17 00:00:00 2001 From: grassblock Date: Sat, 7 Jun 2025 17:59:19 +0800 Subject: [PATCH] fix: callout info text color distinguishable when in light mode --- src/components/shortcodes/Callout.astro | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/shortcodes/Callout.astro b/src/components/shortcodes/Callout.astro index 51d1cc6..9617c89 100644 --- a/src/components/shortcodes/Callout.astro +++ b/src/components/shortcodes/Callout.astro @@ -40,4 +40,10 @@ const { icon, type = 'info'} = Astro.props; --callout-bg: var(--terminal-red); --callout-text: #111; } + + @media (prefers-color-scheme: light) { + :root:not([data-theme="dark"]) .callout-info { + --callout-text: #eee; + } + } \ No newline at end of file