theme
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en" data-theme="silk">
|
<html lang="en" data-theme="light">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const htmlElement = document.querySelector("html")
|
const htmlElement = document.querySelector("html")
|
||||||
const lightMode = htmlElement?.dataset.theme
|
const lightMode = htmlElement?.dataset.theme
|
||||||
const darkMode = "abyss"
|
const darkMode = "business"
|
||||||
|
|
||||||
const isInitiallyDark = JSON.parse(localStorage.getItem("is-dark") ?? "false")
|
const isInitiallyDark = JSON.parse(localStorage.getItem("is-dark") ?? "false")
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
--notyf-margin: 0.5rem;
|
--notyf-margin: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-theme="silk"] {
|
[data-theme="light"] {
|
||||||
--color-contrast-content: var(--color-success-content);
|
--color-contrast-content: var(--color-success-content);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -24,8 +24,8 @@
|
|||||||
|
|
||||||
@plugin 'daisyui' {
|
@plugin 'daisyui' {
|
||||||
themes:
|
themes:
|
||||||
silk --default,
|
light --default,
|
||||||
abyss --prefersdark;
|
business --prefersdark;
|
||||||
}
|
}
|
||||||
|
|
||||||
@config '../../tailwind.config.js';
|
@config '../../tailwind.config.js';
|
||||||
|
|||||||
Reference in New Issue
Block a user