aboutsummaryrefslogtreecommitdiff
path: root/internal/server/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'internal/server/templates/index.html')
-rw-r--r--internal/server/templates/index.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/server/templates/index.html b/internal/server/templates/index.html
index db4c61a..6bdfeff 100644
--- a/internal/server/templates/index.html
+++ b/internal/server/templates/index.html
@@ -11,6 +11,12 @@
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🎐</text></svg>">
{{end}}
<link rel="stylesheet" href="/static/style.css">
+ {{if .ThemeCSS}}
+ <style>
+ /* OpenCode Theme */
+{{.ThemeCSS}}
+ </style>
+ {{end}}
<script>
// Theme detection
if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {