🎨
This commit is contained in:
parent
c9819babfe
commit
1679a40c76
7 changed files with 42 additions and 12 deletions
|
|
@ -74,6 +74,8 @@ export function applyTheme(theme: Theme, persist = true) {
|
|||
|
||||
const colorScheme = theme.base === 'dark' ? 'dark' : 'light';
|
||||
|
||||
document.documentElement.dataset.colorScheme = colorScheme;
|
||||
|
||||
// Deep copy
|
||||
const _theme = deepClone(theme);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue