Skip to content

Commit 5a8187e

Browse files
committed
chore: default theme light
1 parent d28bbef commit 5a8187e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

playground/index.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@
1515
window.Buffer = {}
1616
window.process = { env: {} }
1717
;(function () {
18-
const prefersDark =
19-
window.matchMedia &&
20-
window.matchMedia('(prefers-color-scheme: dark)').matches
21-
const setting = localStorage.getItem('color-schema') || 'auto'
18+
const prefersDark = 'light'
2219
if (setting === 'dark' || (prefersDark && setting !== 'light'))
2320
document.documentElement.classList.toggle('dark', true)
2421
})()

playground/src/locales/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const messages = {
3434
href="https://github.com/Simon-He95/transformToUnocss"
3535
target="_blank"
3636
><b>transform-to-unocss</b></a>查看现在支持的属性,进行体验。
37-
<div>已有vite插件和cli版本~</div>`,
37+
<div>已有 vite 插件和 cli 版本~</div>`,
3838
inputs: '输入:',
3939
outputs: '输出:',
4040
render: '渲染:',

0 commit comments

Comments
 (0)