added dark mode
This commit is contained in:
+10
-2
@@ -11,7 +11,10 @@ import {
|
||||
|
||||
export default defineConfig({
|
||||
shortcuts: [
|
||||
// ...
|
||||
['surface', 'bg-white dark:bg-[#1f1f1f]'],
|
||||
['surface-muted', 'bg-gray-50 dark:bg-[#262626]'],
|
||||
['border-base', 'border-gray-200 dark:border-[color:var(--admin-border)]'],
|
||||
['text-muted', 'text-gray-600 dark:text-gray-400'],
|
||||
],
|
||||
theme: {
|
||||
colors: {
|
||||
@@ -20,7 +23,12 @@ export default defineConfig({
|
||||
}
|
||||
},
|
||||
presets: [
|
||||
presetUno(),
|
||||
presetUno({
|
||||
dark: {
|
||||
dark: 'html.is-dark',
|
||||
light: 'html:not(.is-dark)',
|
||||
},
|
||||
}),
|
||||
presetAttributify(),
|
||||
presetIcons(),
|
||||
presetTypography(),
|
||||
|
||||
Reference in New Issue
Block a user