Skip to content

Commit

Permalink
sourcegraph: Customize colors for JSON syntax highlighting (#30105)
Browse files Browse the repository at this point in the history
Commit: 30424e6e836c3074ee051aa084ddfac11135aec4
  • Loading branch information
Ólafur Páll Geirsson authored and sourcegraph-bot committed Jan 24, 2022
1 parent 77bb920 commit ea46a4b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sourcegraph/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
16 changes: 16 additions & 0 deletions sourcegraph/client/branded/src/global-styles/highlight.scss
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,14 @@
}
}

.hl-json {
.hl-key {
.hl-string {
color: var(--hl-orange);
}
}
}

.hl-ts {
.hl-keyword.hl-control {
color: var(--hl-orange);
Expand Down Expand Up @@ -758,4 +766,12 @@
background: var(--diff-add-bg);
}
}

.hl-json {
.hl-key {
.hl-string {
color: var(--hl-green-2);
}
}
}
}

0 comments on commit ea46a4b

Please sign in to comment.