UI: Improve theme presets

This commit is contained in:
fuma-nama
2024-08-06 19:24:05 +08:00
parent c8910c4c00
commit deae4dd86c
2 changed files with 14 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'fumadocs-ui': patch
---
Improve theme presets
+9 -1
View File
@@ -28,7 +28,7 @@ const defaultPreset: Preset = {
'popover-foreground': '0 0% 88%',
card: '0 0% 6.0%',
'card-foreground': '0 0% 98%',
border: '0 0% 18%',
border: '0 0% 15%',
primary: '0 0% 98%',
'primary-foreground': '0 0% 9%',
secondary: '0 0% 12.9%',
@@ -260,6 +260,14 @@ const dusk: Preset = {
'secondary-foreground': '250 20% 90%',
'accent-foreground': '340 5% 90%',
},
css: {
'#nd-sidebar': {
backgroundColor: 'hsl(250 20% 90%)',
},
'.dark #nd-sidebar': {
backgroundColor: 'hsl(240 20% 5%)',
},
},
};
const vitepress: Preset = {