Skip to content

Commit 1983027

Browse files
committed
Add some custom syntax rules for yaml
1 parent 4ad4e91 commit 1983027

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

templates/style/_syntax.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,11 @@ pre > code {
2626

2727
// Markdown
2828
.syntax-heading { color: var(--color-syntax-attribute); font-weight: bold; }
29+
30+
// YAML
31+
.syntax-yaml .syntax-string { color: var(--color-syntax-string); }
32+
.syntax-yaml .syntax-name { color: var(--color-syntax-foreground); }
33+
// 99% of the time a "boolean" is actually `on` which is really a string
34+
.syntax-yaml .syntax-boolean { color: var(--color-syntax-foreground); }
35+
.syntax-yaml .syntax-punctuation { color: var(--color-syntax-keyword1); }
36+
.syntax-yaml .syntax-comment .syntax-punctuation { color: var(--color-syntax-comment); }

0 commit comments

Comments
 (0)