Skip to content

Commit 44925dd

Browse files
authored
fix(tokens): consistently style typst headings (#506)
1 parent 49c95d0 commit 44925dd

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

packages/catppuccin-vsc/src/theme/tokens/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import python from "./python";
2323
import regex from "./regex";
2424
import rust from "./rust";
2525
import shell from "./shell";
26+
import typst from "./typst";
2627

2728
export default function tokens(context: ThemeContext): TextmateColors {
2829
const { options, palette } = context;
@@ -306,6 +307,7 @@ export default function tokens(context: ThemeContext): TextmateColors {
306307
regex,
307308
rust,
308309
shell,
310+
typst,
309311
].flatMap((element) => element(context)),
310312
];
311313
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import type { TextmateColors, ThemeContext } from "@/types";
2+
3+
const tokens = (context: ThemeContext): TextmateColors => {
4+
const { palette } = context;
5+
6+
return [
7+
{
8+
scope: ["markup.heading.typst"],
9+
settings: {
10+
foreground: palette.red,
11+
},
12+
},
13+
];
14+
};
15+
16+
export default tokens;

0 commit comments

Comments
 (0)