chore(playground): dark mode [ci skip]

This commit is contained in:
三咲智子 Kevin Deng 2024-02-13 03:19:15 +08:00
parent 66cea4b325
commit 79f3929cd2
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
3 changed files with 6 additions and 2 deletions

View File

@ -65,8 +65,6 @@ const log = (arg: any) => {
}
html {
color-scheme: dark;
background-color: #000;
padding: 10px;
}
</style>

View File

@ -1,4 +1,5 @@
import { render, unmountComponent } from 'vue/vapor'
import './style.css'
const modules = import.meta.glob<any>('./*.(vue|js)')
const mod = (modules['.' + location.pathname] || modules['./App.vue'])()

5
playground/src/style.css Normal file
View File

@ -0,0 +1,5 @@
@media (prefers-color-scheme: dark) {
html {
color-scheme: dark;
}
}