Skip to content

Commit 2b85c81

Browse files
committed
steal starlight's colours to make it grey ;-;
1 parent 35353c7 commit 2b85c81

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

astro.config.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ import { generateCliOptionsIntegration } from "./src/fetchReadme";
44
import smartypants from "remark-smartypants";
55
import { pluginCodeMarkerAnchors } from "./src/CodeMarkerAnchorPlugin.mjs";
66

7+
// https://github.com/withastro/starlight/blob/main/packages/starlight/integrations/expressive-code/theming.ts
8+
const isDark = false;
9+
const neutralMinimal = isDark ? '#ffffff17' : '#0000001a';
10+
const neutralDimmed = isDark ? '#ffffff40' : '#00000055';
11+
712
// https://astro.build/config
813
export default defineConfig({
914
site: "https://lychee.cli.rs",
@@ -20,6 +25,12 @@ export default defineConfig({
2025
expressiveCode: {
2126
plugins: [pluginCodeMarkerAnchors()],
2227
themes: ["catppuccin-frappe", "catppuccin-latte"],
28+
styleOverrides: {
29+
textMarkers: {
30+
markBackground: neutralMinimal,
31+
markBorderColor: neutralDimmed,
32+
}
33+
}
2334
},
2435
title: "Docs",
2536
description:

0 commit comments

Comments
 (0)