added dark mode

This commit is contained in:
2026-06-14 21:04:26 +03:30
parent 6d0601f464
commit c0633e5d5a
52 changed files with 1386 additions and 314 deletions
+10 -2
View File
@@ -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(),