fix: fix light/dark/system theme switcher
- Add darkMode: class to tailwind config for class-based dark mode - Load saved theme from localStorage on mount and apply immediately - Add media query listener for system theme changes in system mode
This commit is contained in:
4
frontend/dist/index.html
vendored
4
frontend/dist/index.html
vendored
@@ -4,8 +4,8 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Eval Markdown Editor</title>
|
||||
<script type="module" crossorigin src="/assets/index-PGya2Dnr.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-IEmHo4ub.css">
|
||||
<script type="module" crossorigin src="/assets/index-DBLy_rVI.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-CEN2dKUd.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
Reference in New Issue
Block a user