-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Server webui: Upgrade daisyui, tailwindcss. #12735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
9025feb
51baa1c
517c91d
3f6f0ee
336c514
5b65052
de6f781
e6e224e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,5 @@ | ||
| export default { | ||
| plugins: { | ||
| tailwindcss: {}, | ||
| autoprefixer: {}, | ||
| "@tailwindcss/postcss": {}, | ||
| }, | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -194,7 +194,12 @@ const StorageUtils = { | |
| localStorage.setItem('config', JSON.stringify(config)); | ||
| }, | ||
| getTheme(): string { | ||
| return localStorage.getItem('theme') || 'auto'; | ||
| const theme = localStorage.getItem('theme') || 'auto'; | ||
| const activeTheme = (theme === 'auto') ? | ||
|
||
| (window.matchMedia("(prefers-color-scheme: light)").matches ? 'light' : 'dark') : | ||
| theme; | ||
|
|
||
| return activeTheme; | ||
| }, | ||
| setTheme(theme: string) { | ||
| if (theme === 'auto') { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use all themes by: https://daisyui.com/docs/themes/?lang=en#enable-all-themes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done