Rendered generated pages menu links on the main page, cleaned up some code, and forced light mode for a consistent look
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
This commit is contained in:
@@ -8,7 +8,7 @@ export function updateTheme(value: Appearance) {
|
||||
}
|
||||
|
||||
if (value === 'system') {
|
||||
const mediaQueryList = window.matchMedia('(prefers-color-scheme: dark)');
|
||||
const mediaQueryList = window.matchMedia('(prefers-color-scheme: light)');
|
||||
const systemTheme = mediaQueryList.matches ? 'dark' : 'light';
|
||||
|
||||
document.documentElement.classList.toggle('dark', systemTheme === 'dark');
|
||||
|
||||
Reference in New Issue
Block a user