mirror of
https://github.com/mudabbir-ahmad/Portfolio_V1.git
synced 2026-12-06 19:53:09 +00:00
Default to light theme with Anthropic palette; hide future days in push tracker; warp cursor
This commit is contained in:
1 parent
bc3b415d89
commit
a861447d59
5 files changed
+107
-93
No files matched your search
+1
-3
@@ -5,9 +5,7 @@
|
||||
(function () {
|
||||
try {
|
||||
var saved = localStorage.getItem("theme");
|
||||
var dark = saved
|
||||
? saved === "dark"
|
||||
: window.matchMedia("(prefers-color-scheme: dark)").matches;
|
||||
var dark = saved === "dark";
|
||||
if (dark) document.documentElement.dataset.theme = "dark";
|
||||
} catch (e) {}
|
||||
})();
|
||||
|
||||
Reference in new issue
Block a user