Skip to content

Commit a841384

Browse files
authored
chore(types): document customizable CSS variables for langtag [deploy skip] [ci skip] (#220)
1 parent f66e5ed commit a841384

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

src/Highlight.svelte

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@
4343
/**
4444
* Set to `true` for the language name to be
4545
* displayed at the top right of the code block.
46+
*
47+
* Use CSS variables to customize styles:
48+
* - `--hljs-background`
49+
* - `--hljs-foreground`
50+
* - `--hljs-radius`
4651
*/
4752
langtag?: boolean;
4853
}

src/HighlightAuto.svelte

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
/**
1313
* Set to `true` for the language name to be
1414
* displayed at the top right of the code block.
15+
*
16+
* Use CSS variables to customize styles:
17+
* - `--hljs-background`
18+
* - `--hljs-foreground`
19+
* - `--hljs-radius`
1520
*/
1621
langtag?: boolean;
1722
}

src/HighlightSvelte.svelte

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
/**
1313
* Set to `true` for the language name to be
1414
* displayed at the top right of the code block.
15+
*
16+
* Use CSS variables to customize styles:
17+
* - `--hljs-background`
18+
* - `--hljs-foreground`
19+
* - `--hljs-radius`
1520
*/
1621
langtag?: boolean;
1722
}

0 commit comments

Comments
 (0)