Chore/change theme (#13)

* chore: script to change theme

* style: fix md
This commit is contained in:
Julien Calixte
2025-08-01 10:48:53 +02:00
committed by GitHub
parent 7bf43c836d
commit ac00dab673
7 changed files with 156 additions and 31 deletions

View File

@@ -1,7 +1,9 @@
<script setup lang="ts">
import { themeConfig } from "../theme.config"
const htmlElement = document.querySelector("html")
const lightMode = htmlElement?.dataset.theme
const darkMode = "business"
const lightMode = themeConfig.light
const darkMode = themeConfig.dark
const isInitiallyDark = JSON.parse(localStorage.getItem("is-dark") ?? "false")