Add theme switching!!!! #18

Merged
twig merged 9 commits from settings-appearance into main 2025-07-05 17:29:46 +00:00
Showing only changes of commit 2d8475b20a - Show all commits

View file

@ -58,7 +58,7 @@ function changeTheme(id: string, url: string) {
themeLinkElement.href = `${baseURL}themes/${url}`; themeLinkElement.href = `${baseURL}themes/${url}`;
} }
const fetchThemes = async () => { async function fetchThemes() {
for (const theme of defaultThemes) { for (const theme of defaultThemes) {
const themeConfig = await $fetch(`${baseURL}themes/${theme}.json`) as Theme const themeConfig = await $fetch(`${baseURL}themes/${theme}.json`) as Theme
themeConfig.id = theme themeConfig.id = theme