forked from open-webui/open-webui
feat: rosepine custom theme
This commit is contained in:
parent
6f907784fb
commit
af6e4eb904
11 changed files with 168 additions and 39 deletions
|
@ -12,6 +12,9 @@
|
|||
(!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: light)').matches)
|
||||
) {
|
||||
document.documentElement.classList.add('light');
|
||||
} else if (localStorage.theme === 'rose') {
|
||||
document.documentElement.classList.add('dark');
|
||||
document.documentElement.classList.add(localStorage.theme);
|
||||
} else {
|
||||
document.documentElement.classList.add('dark');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue