From 8afde4b5ad5eb9299f7063f17575b7405289243f Mon Sep 17 00:00:00 2001 From: Charlotte Wickham Date: Wed, 23 Sep 2026 09:40:37 -0700 Subject: [PATCH] Fix notebook-view cell numbers being illegible in dark mode (#2194) Bootstrap's $pre-color defaults to near-black regardless of theme, and quarto-cli's own .cell-decorator reset only clears the pre background, not its text color. Set $pre-color: inherit, the same override Bootswatch's own dark themes (darkly, cyborg) already carry. Upstream: quarto-dev/quarto-cli#14932 (cherry picked from commit 434822607608036b37673e5ed193be773c1cce74) --- theme-dark.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/theme-dark.scss b/theme-dark.scss index 2f09f49a04..bd97f66f00 100644 --- a/theme-dark.scss +++ b/theme-dark.scss @@ -35,6 +35,12 @@ $body-bg: $gray-900; $body-color: $gray-100; $link-color: $cyan; +// Bootstrap's own $pre-color default (#000, meant for a light background) +// is hardcoded regardless of theme -- inherit so bare
 elements (e.g.
+// Quarto's own .cell-decorator notebook-view prompts) stay legible here.
+// Bootswatch's dark themes (darkly, cyborg) carry the same override.
+$pre-color: inherit;
+
 $light: rgb(32.4,32.4,34.2);
 
 // Navigation element colors