Customize colors for JSON syntax highlighting (#30105)

This commit is contained in:
Ólafur Páll Geirsson 2022-01-24 15:36:55 +01:00 committed by GitHub
parent 1d15648033
commit 30424e6e83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 1 deletions

View File

@ -19,7 +19,7 @@ All notable changes to Sourcegraph are documented in this file.
### Changed
-
- Syntax highlighting for JSON now uses a distinct color for strings in object key positions. [#30105](https://github.com/sourcegraph/sourcegraph/pull/30105)
### Fixed

View File

@ -458,6 +458,14 @@
}
}
.hl-json {
.hl-key {
.hl-string {
color: var(--hl-orange);
}
}
}
.hl-ts {
.hl-keyword.hl-control {
color: var(--hl-orange);
@ -758,4 +766,12 @@
background: var(--diff-add-bg);
}
}
.hl-json {
.hl-key {
.hl-string {
color: var(--hl-green-2);
}
}
}
}