From f9c2f339e69b4969715caf6f82bf9e980a5cf246 Mon Sep 17 00:00:00 2001 From: overtrue Date: Mon, 20 Jul 2026 22:16:16 +0800 Subject: [PATCH] fix: add dark mode support for charts page Add prefers-color-scheme: dark media query with GitHub dark theme colors so text is readable when system is in dark/night mode. - Load github-markdown-dark.min.css conditionally via media query - Override all CSS custom properties for dark mode - Set data-color-mode=auto so github-markdown-css dark styles activate - Cover headings, code blocks, tables, blockquotes, hr, quick-install panel --- src/worker.js | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 89 insertions(+), 1 deletion(-) diff --git a/src/worker.js b/src/worker.js index 56457c7..9c9c171 100644 --- a/src/worker.js +++ b/src/worker.js @@ -63,6 +63,7 @@ function renderPage(markdownHtml, host) { RustFS Helm Charts + - +
${contentHtml}