renamed alfdir to katlum
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 35s
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 35s
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { ref, onMounted, watch } from 'vue'
|
||||
|
||||
type Theme = 'light' | 'dark'
|
||||
type Accent = 'alfdir'
|
||||
type Accent = 'katlum'
|
||||
|
||||
const theme = ref<Theme>('light')
|
||||
const accent = ref<Accent>('alfdir')
|
||||
const accent = ref<Accent>('katlum')
|
||||
|
||||
const applyTheme = () => {
|
||||
document.documentElement.setAttribute('data-theme', theme.value)
|
||||
@@ -30,7 +30,7 @@ const setupTheme = () => {
|
||||
const media = window.matchMedia('(prefers-color-scheme: dark)')
|
||||
|
||||
theme.value = savedTheme || (media.matches ? 'dark' : 'light')
|
||||
accent.value = savedAccent || 'alfdir'
|
||||
accent.value = savedAccent || 'katlum'
|
||||
|
||||
applyTheme()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user