Handle dark theme
This commit is contained in:
parent
8e42e2a701
commit
b5cf8a40be
2 changed files with 4 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
<head>
|
||||
<script>document.documentElement.setAttribute('data-bs-theme',window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light')</script>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue