Created
April 24, 2026 23:48
-
-
Save milksense/6f58dd4d23d23c7997f7dffb927e236b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| // Apply theme from system preference before first paint to avoid FOUC. | |
| // Session-only toggle overrides this (see end of <body>); not persisted. | |
| (function () { | |
| try { | |
| if (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches) { | |
| document.documentElement.setAttribute("data-theme", "dark"); | |
| } | |
| } catch (e) {} | |
| })(); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment