2022-04-02 14:54:55 +08:00
|
|
|
<!DOCTYPE html>
|
2022-04-02 16:14:30 +08:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>React TypeScript Vite Template</title>
|
|
|
|
</head>
|
2022-04-02 17:06:31 +08:00
|
|
|
<body class="dark:text-white dark:bg-hex-121212">
|
2022-04-02 16:14:30 +08:00
|
|
|
<div id="root"></div>
|
2022-04-02 17:06:31 +08:00
|
|
|
<script>
|
|
|
|
(function() {
|
|
|
|
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
|
|
|
|
const setting = localStorage.getItem('color-schema') || 'auto'
|
2022-04-02 17:36:26 +08:00
|
|
|
if (setting === 'dark' || (prefersDark && setting !== 'auto'))
|
2022-04-02 17:06:31 +08:00
|
|
|
document.documentElement.classList.toggle('dark', true)
|
|
|
|
})()
|
|
|
|
</script>
|
2022-04-02 16:14:30 +08:00
|
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
|
|
</body>
|
2022-04-02 14:54:55 +08:00
|
|
|
</html>
|