Skip to content

Commit 84c0b53

Browse files
authoredJun 11, 2024··
feat: add CSS variables for markup diff tokens (#698)
1 parent 724b410 commit 84c0b53

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
 

‎packages/shiki/src/theme-css-variables.ts

+30
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,36 @@ export function createCssVariablesTheme(options: CssVariablesThemeOptions = {}):
231231
foreground: variable('token-keyword'),
232232
},
233233
},
234+
{
235+
// [Custom] Diff
236+
scope: [
237+
'markup.inserted',
238+
'meta.diff.header.to-file',
239+
'punctuation.definition.inserted',
240+
],
241+
settings: {
242+
foreground: variable('token-inserted'),
243+
},
244+
},
245+
{
246+
scope: [
247+
'markup.deleted',
248+
'meta.diff.header.from-file',
249+
'punctuation.definition.deleted',
250+
],
251+
settings: {
252+
foreground: variable('token-deleted'),
253+
},
254+
},
255+
{
256+
scope: [
257+
'markup.changed',
258+
'punctuation.definition.changed',
259+
],
260+
settings: {
261+
foreground: variable('token-changed'),
262+
},
263+
},
234264
],
235265
}
236266

0 commit comments

Comments
 (0)
Please sign in to comment.