Fix Sonokai theme to better match original (#5379)

* Make sonokai palette perfectfully faithful

* Amend theme to better match original sonokai

Changes based on the following references:
(1) https://www.sainnhe.dev/post/contributing-guide/#sonokai
(2) https://github.com/sainnhe/sonokai/blob/master/colors/sonokai.vim

* Make constants white (1)
* Make builtin variables purple (1)
* Make members orange (1)
* Make labels red (2)
* Make operators red (1)
* Make all punctuation grey (2)
* Make builtin functions and macros green (2)
* Make diff delta blue (2)
* Make cursor match bg4 (2)
* Make visible whitespace bg4 (2)

* Make Sonokai special punctuation yellow
pull/9469/merge
Nick Condron 9 months ago committed by GitHub
parent 76e512f944
commit 6ffe09e873
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -6,24 +6,23 @@
# License: MIT License # License: MIT License
"type" = "blue" "type" = "blue"
"constant" = "purple" "constant" = "fg"
"constant.numeric" = "purple" "constant.numeric" = "purple"
"constant.character.escape" = "orange" "constant.character.escape" = "orange"
"string" = "yellow" "string" = "yellow"
"comment" = "grey" "comment" = "grey"
"variable" = "fg" "variable" = "fg"
"variable.builtin" = "orange" "variable.builtin" = "purple"
"variable.parameter" = "fg" "variable.parameter" = "fg"
"variable.other.member" = "fg" "variable.other.member" = "orange"
"label" = "orange" "label" = "red"
"punctuation" = "grey" "punctuation" = "grey"
"punctuation.delimiter" = "grey" "punctuation.special" = "yellow"
"punctuation.bracket" = "fg"
"keyword" = "red" "keyword" = "red"
"operator" = "orange" "operator" = "red"
"function" = "green" "function" = "green"
"function.builtin" = "blue" "function.builtin" = "green"
"function.macro" = "purple" "function.macro" = "green"
"tag" = "yellow" "tag" = "yellow"
"namespace" = "blue" "namespace" = "blue"
"attribute" = "purple" "attribute" = "purple"
@ -48,12 +47,12 @@
"markup.raw" = "green" "markup.raw" = "green"
"diff.plus" = "green" "diff.plus" = "green"
"diff.delta" = "orange" "diff.delta" = "blue"
"diff.minus" = "red" "diff.minus" = "red"
"ui.background" = { bg = "bg0" } "ui.background" = { bg = "bg0" }
"ui.cursor" = { modifiers = ['reversed'] } "ui.cursor" = { modifiers = ['reversed'] }
"ui.cursor.match" = { fg = "orange", bg = "diff_yellow" } "ui.cursor.match" = { bg = "bg4" }
"ui.cursor.insert" = { fg = "black", bg = "grey" } "ui.cursor.insert" = { fg = "black", bg = "grey" }
"ui.cursor.select" = { fg = "bg0", bg = "blue" } "ui.cursor.select" = { fg = "bg0", bg = "blue" }
"ui.selection" = { bg = "bg5" } "ui.selection" = { bg = "bg5" }
@ -73,7 +72,7 @@
"ui.text.focus" = "green" "ui.text.focus" = "green"
"ui.menu" = { fg = "fg", bg = "bg2" } "ui.menu" = { fg = "fg", bg = "bg2" }
"ui.menu.selected" = { fg = "bg0", bg = "green" } "ui.menu.selected" = { fg = "bg0", bg = "green" }
"ui.virtual.whitespace" = { fg = "grey_dim" } "ui.virtual.whitespace" = "bg4"
"ui.virtual.ruler" = { bg = "bg3" } "ui.virtual.ruler" = { bg = "bg3" }
"ui.virtual.inlay-hint" = { fg = "grey_dim" } "ui.virtual.inlay-hint" = { fg = "grey_dim" }
@ -92,11 +91,12 @@ error = { fg = 'red', bg = 'bg2', modifiers = ['bold'] }
[palette] [palette]
black = "#181819" black = "#181819"
bg_dim = "#222327"
bg0 = "#2c2e34" bg0 = "#2c2e34"
bg1 = "#33353f" bg1 = "#33353f"
bg2 = "#363944" bg2 = "#363944"
bg3 = "#3b3e48" bg3 = "#3b3e48"
bg4 = "#5C606A" bg4 = "#414550"
bg5 = "#444852" bg5 = "#444852"
bg_red = "#ff6077" bg_red = "#ff6077"
diff_red = "#55393d" diff_red = "#55393d"

Loading…
Cancel
Save