* fix: markdown issues * wip: add docs example * example: update doc template * chore: credit Steph for AvatarList * chore: align footer to bottom viewport * chore: feeback R1 * fix: font fallback in firefox * fix merge conflicts * fix: add default value to headers * chore: fix doc example
8 lines
279 B
JavaScript
8 lines
279 B
JavaScript
(() => {
|
|
const root = document.documentElement;
|
|
if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
|
|
root.classList.add('theme-dark')
|
|
} else {
|
|
root.classList.remove('theme-dark')
|
|
}
|
|
})()
|