feat: custom theming for code blocks
Some checks failed
Code Analysis / SonarQube (push) Failing after 1m26s
Node.js CI / Lint and Test (push) Successful in 1m30s

This commit is contained in:
2025-03-05 16:41:11 -08:00
parent 38149e092e
commit dd5fa6f7a2
2 changed files with 428 additions and 1 deletions

View File

@ -1,8 +1,12 @@
import { defineConfig } from 'astro/config';
import starlight from "@astrojs/starlight";
import { ExpressiveCodeTheme } from "@astrojs/starlight/expressive-code"
import themeJson from "./src/styles/theme.json"
import { navigation } from "./src/components/navigation.ts";
const sakuraDreams = ExpressiveCodeTheme.fromJSONString(JSON.stringify(themeJson));
export default defineConfig({
site: "https://docs.nhcarrigan.com",
integrations: [starlight({
@ -64,5 +68,9 @@ export default defineConfig({
"./src/styles/style.css",
"./src/fonts/font-face.css"
],
})]
expressiveCode: {
themes: [sakuraDreams]
}
}),
]
});