added red theme

This commit is contained in:
dong.nguyen committed 2026-10-16 21:14:59 +07:00
1 parent 41b40653c7
commit c1e64eabbd
11 files changed
+979 -355

No files matched your search

+13
View File
@@ -5,6 +5,19 @@
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>portfolio</title>
<script>
(function () {
try {
var stored = localStorage.getItem('portfolio-theme')
var theme = stored === 'dark' || stored === 'light'
? stored
: (window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark')
document.documentElement.setAttribute('data-theme', theme)
} catch (e) {
document.documentElement.setAttribute('data-theme', 'dark')
}
})();
</script>
</head>
<body>
<div id="root"></div>