feat: Add theming #8

Merged
justtemmie merged 3 commits from theming into main 2025-07-03 17:14:07 +00:00
Showing only changes of commit 126ae5e18d - Show all commits

10
app.vue
View file

@ -1,6 +1,5 @@
<template>
<div>
<link :href="'/themes/' + current_theme + '.css'" rel="stylesheet" type="text/css"></link>
<Banner v-if="banner" />
<NuxtPage :keepalive="true" />
</div>
@ -15,6 +14,15 @@ const saved_theme = localStorage.getItem("selectedTheme");
if (saved_theme) {

Use pascalCase, not snake_case.

Use pascalCase, not snake_case.
current_theme = saved_theme;
}
useHead({
link: [
{
rel: "stylesheet",
href: `/themes/${current_theme}.css`
}
]
})
</script>
<style>