Skip to content

Commit afc4b38

Browse files
authored
fix: improve code vis on light mode
1 parent e3c5408 commit afc4b38

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

astro.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default defineConfig({
2121
syntaxHighlight: 'shiki',
2222
shikiConfig: {
2323
experimentalThemes: {
24-
light: 'vitesse-light',
24+
light: 'dracula',
2525
dark: 'material-theme-palenight'
2626
},
2727
wrap: true

src/styles/global.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
color: var(--shiki-dark) !important;
2727
background-color: theme(colors.gray.900) !important;
2828
}
29+
30+
html.light .shiki {
31+
background-color: theme(colors.gray.900) !important;
32+
}
2933
}
3034

3135
.glass {

0 commit comments

Comments
 (0)