diff --git a/static/boot.js b/static/boot.js
index 75f322b..ac6c4a8 100644
--- a/static/boot.js
+++ b/static/boot.js
@@ -584,6 +584,16 @@ function _applyTheme(name){
?(window.matchMedia('(prefers-color-scheme:dark)').matches?'dark':'light')
:name;
document.documentElement.dataset.theme=resolved||'dark';
+ // Swap Prism syntax-highlighting theme to match UI theme
+ (function(){
+ const link=document.getElementById('prism-theme');
+ if(!link) return;
+ const isDark=(resolved!=='light');
+ const want=isDark
+ ?'https://cdn.jsdelivr.net/npm/prismjs@1.29.0/themes/prism-tomorrow.min.css'
+ :'https://cdn.jsdelivr.net/npm/prismjs@1.29.0/themes/prism.min.css';
+ if(link.href!==want){ link.href=want; }
+ })();
// Re-register OS change listener whenever system theme is active
if(name==='system'){
const mq=window.matchMedia('(prefers-color-scheme:dark)');
diff --git a/static/index.html b/static/index.html
index 5c20188..bb5de73 100644
--- a/static/index.html
+++ b/static/index.html
@@ -9,7 +9,7 @@
-
+