Skip to content

Commit

Permalink
Color tokens for bracket pair colorization (#231)
Browse files Browse the repository at this point in the history
VS Code 1.60 [1] (August 2021) introduced native, high performance
bracket pair colorization [2] (opt-in via
`editor.bracketPairColorization.enabled` setting) to address performance
issues of popular extensions.
The color tokens have been added and adjusted to match Nord's theme
style:

- `statusBarItem.warningBackground` - the background color used for
  warning items in the status bar that stand out from other status bar
  entries to indicate warning conditions.
- `statusBarItem.warningForeground` - the foreground color used for
  warning items in the status bar that stand out from other status bar
  entries to indicate warning conditions.

Note that bracket pair colorization is a feature that does not go well
with the design concepts of Nord and the recommendation is therefore to
not enable it. Of course this is always a personal preference and the
feature be used as you wish, but note that the bracket colors defined by
the Nord theme won't be changed on request but users can simply
customize it on their own [3].

[1]: https://code.visualstudio.com/updates/v1_60
[2]: https://code.visualstudio.com/updates/v1_60#_high-performance-bracket-pair-colorization
[3]: https://www.nordtheme.com/docs/ports/visual-studio-code/customization


Co-authored-by: Sven Greb <development@svengreb.de>

Coses GH-225
  • Loading branch information
arcticicestudio committed Sep 25, 2021
1 parent dd74e61 commit e733f09
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions themes/nord-color-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@
"editorWarning.border": "#ebcb8b00",
"editorBracketMatch.background": "#2e344000",
"editorBracketMatch.border": "#88c0d0",
"editorBracketHighlight.foreground1": "#8fbcbb",
"editorBracketHighlight.foreground2": "#88c0d0",
"editorBracketHighlight.foreground3": "#81a1c1",
"editorBracketHighlight.foreground4": "#5e81ac",
"editorBracketHighlight.foreground5": "#8fbcbb",
"editorBracketHighlight.foreground6": "#88c0d0",
"editorBracketHighlight.unexpectedBracket.foreground": "#bf616a",
"editorCodeLens.foreground": "#4c566a",
"editorGroup.background": "#2e3440",
"editorGroup.border": "#3b425201",
Expand Down

0 comments on commit e733f09

Please sign in to comment.