Reveal animated Open WebUI background

This commit is contained in:
Mikei386 committed 2026-08-21 16:38:34 +02:00
1 parent c0cbeb0f15
commit 53dfffc289
2 files changed
+34 -10

No files matched your search

+10
View File
@@ -1,6 +1,16 @@
/* Set Mike AI's global Open WebUI theme before the Svelte app mounts. */
(() => {
try {
/* The upstream static route is aggressively cached by browsers. Give the
* mounted theme its own versioned URL so theme releases update reliably. */
const themeStylesheet = document.querySelector('link[href^="/static/custom.css"]');
if (themeStylesheet) {
themeStylesheet.setAttribute(
'href',
'/static/custom.css?theme=midnight-aurora-v2'
);
}
localStorage.setItem('theme', 'dark');
document.documentElement.classList.remove('light', 'her');
document.documentElement.classList.add('dark');