fix codeblock styles

This commit is contained in:
2025-11-14 19:21:30 -05:00
parent a68115049d
commit 08324cbebe
4 changed files with 28 additions and 2 deletions
File diff suppressed because one or more lines are too long
+8 -1
View File
@@ -8,7 +8,14 @@ import { defineConfig } from "astro/config";
export default defineConfig({
site: "https://ghall.space",
output: "static",
markdown: {
shikiConfig: {
themes: {
light: "github-light",
dark: "github-dark",
},
},
},
integrations: [mdx(), alpinejs({ entrypoint: "/src/entrypoint" })],
redirects: {
"/posts/[...slug]": "/blog/[...slug]",
+3
View File
@@ -39,6 +39,9 @@
"includes": ["**/*.svelte", "**/*.astro", "**/*.vue"],
"linter": {
"rules": {
"complexity": {
"noImportantStyles": "off"
},
"style": {
"useConst": "off",
"useImportType": "off"
+16
View File
@@ -136,3 +136,19 @@ kbd {
.icon-button > svg {
color: var(--text);
}
/* shiki */
.astro-code,
.astro-code span {
background-color: var(--background) !important;
/* Optional, if you also want font styles */
font-style: var(--shiki-light-font-style);
font-weight: var(--shiki-light-font-weight);
text-decoration: var(--shiki-light-text-decoration);
}
.theme-dark .astro-code,
.theme-dark .astro-code span {
color: var(--shiki-dark) !important;
}