Chore/change theme (#13)
* chore: script to change theme * style: fix md
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
7
src/theme.config.ts
Normal file
7
src/theme.config.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
// Theme configuration file
|
||||
// Update these values to change the light and dark themes
|
||||
|
||||
export const themeConfig = {
|
||||
light: "cupcake",
|
||||
dark: "business",
|
||||
}
|
||||
Reference in New Issue
Block a user