aboutsummaryrefslogtreecommitdiff
path: root/src/app.html
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-09-03 22:56:00 -0700
committerFuwn <[email protected]>2023-09-03 22:56:00 -0700
commitcf18f1986ab373989b92245f2b15ce933a2a3662 (patch)
tree44be1ea5e3a7341300ec331715e09e1ff1eed64c /src/app.html
parentrevert: "feat(html): local css" (diff)
downloaddue.moe-cf18f1986ab373989b92245f2b15ce933a2a3662.tar.xz
due.moe-cf18f1986ab373989b92245f2b15ce933a2a3662.zip
feat: dark theme
Diffstat (limited to 'src/app.html')
-rw-r--r--src/app.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/app.html b/src/app.html
index 801d1a78..fb37d49a 100644
--- a/src/app.html
+++ b/src/app.html
@@ -27,6 +27,22 @@
</head>
<body data-sveltekit-preload-data="hover" style="max-width: 90% !important">
+ <style>
+ html {
+ transition: 300ms;
+ }
+
+ @media (prefers-color-scheme: dark) {
+ html {
+ filter: invert(1) hue-rotate(180deg);
+ }
+
+ html img {
+ filter: invert(1) hue-rotate(180deg);
+ }
+ }
+ </style>
+
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>