on master help sign in
Clean Up Nord Theme (#3792)

- Add markup styles - Replace custom colors with Nord colors - Clean up code spacing

commit23027a454a1f383739f353f722169a4d5b0506ff authorAlex Mayer <amayer5125@gmail.com> dateMon 12 Sep 2022, 10:32 (4 years ago) parent936ad88
1 file changed+31−32
runtime/themes/nord.toml+31−32
runtime/themes/nord.toml+31−32
@@ -1,11 +1,10 @@
11# Author : RayGervais<raygervais@hotmail.ca>
22
3−"ui.linenr.selected" = { fg = "nord4" }
3+"ui.linenr.selected" = "nord4"
44"ui.cursorline.primary" = { bg = "nord1" }
5−"ui.text.focus" = { fg = "nord8", modifiers= ["bold"] }
6−"ui.menu" = { fg = "nord6", bg = "#232d38" }
5+"ui.text.focus" = { fg = "nord8", modifiers = ["bold"] }
6+"ui.menu" = { fg = "nord6", bg = "nord1" }
77"ui.menu.selected" = { fg = "nord8", bg = "nord2" }
8−"ui.virtual.whitespace" = "gray"
98"ui.virtual.ruler" = { bg = "nord1" }
109
1110"info" = "nord8"
@@ -14,33 +13,33 @@
1413# Polar Night
1514# nord0 - background color
1615"ui.background" = { bg = "nord0" }
17−"ui.statusline.inactive" = { fg = "nord8", bg = "nord1" }
1816
17+"ui.statusline.inactive" = { fg = "nord8", bg = "nord1" }
1918"ui.statusline.normal" = { fg = "nord0", bg = "nord8" }
2019"ui.statusline.insert" = { fg = "nord0", bg = "nord13" }
2120"ui.statusline.select" = { fg = "nord0", bg = "nord15" }
2221
2322# nord1 - status bars, panels, modals, autocompletion
24−"ui.statusline" = { fg = "nord4", bg = "#4c566a" }
25−"ui.popup" = { bg = "#232d38" }
26−"ui.window" = { bg = "#232d38" }
27−"ui.help" = { bg = "#232d38", fg = "nord4" }
23+"ui.statusline" = { fg = "nord4", bg = "nord1" }
24+"ui.popup" = { bg = "nord1" }
25+"ui.window" = { bg = "nord1" }
26+"ui.help" = { bg = "nord1", fg = "nord4" }
2827
2928# nord2 - active line, highlighting
3029"ui.selection" = { bg = "nord2" }
3130"ui.cursor.match" = { bg = "nord2" }
3231
33−# nord3 - comments, nord3 based lighter color
34−# relative: https://github.com/arcticicestudio/nord/issues/94
35−"comment" = { fg = "gray", modifiers = ["italic"] }
36−"ui.linenr" = { fg = "gray" }
32+# nord3 - comments, invisible/non-printable characters
33+"comment" = { fg = "nord3_bright", modifiers = ["italic"] }
34+"ui.linenr" = "nord3_bright"
35+"ui.virtual.whitespace" = "nord3_bright"
3736
3837# Snow Storm
3938# nord4 - cursor, variables, constants, attributes, fields
4039"ui.cursor.primary" = { fg = "nord4", modifiers = ["reversed"] }
4140"attribute" = "nord4"
42−"variable" = "nord4"
43−"constant" = "nord4"
41+"variable" = "nord4"
42+"constant" = "nord4"
4443"variable.builtin" = "nord4"
4544"constant.builtin" = "nord4"
4645"namespace" = "nord4"
@@ -48,28 +47,28 @@
4847# nord5 - subtle UI text
4948
5049# nord6 - base text, punctuation
51−"ui.text" = { fg = "nord6" }
50+"ui.text" = "nord6"
5251"punctuation" = "nord6"
5352
5453# Frost
5554# nord7 - classes, types, primitives
5655"type" = "nord7"
57−"type.builtin" = { fg = "nord7"}
56+"type.builtin" = "nord7"
5857"label" = "nord7"
5958
6059# nord8 - declaration, methods, routines
6160"constructor" = "nord8"
6261"function" = "nord8"
63−"function.macro" = { fg = "nord8" }
64−"function.builtin" = { fg = "nord8" }
62+"function.macro" = "nord8"
63+"function.builtin" = "nord8"
6564
6665# nord9 - operator, tags, units, punctuations
6766"punctuation.delimiter" = "nord9"
68−"operator" = { fg = "nord9" }
67+"operator" = "nord9"
6968"variable.other.member" = "nord9"
7069
7170# nord10 - keywords, special
72−"keyword" = { fg = "nord10" }
71+"keyword" = "nord10"
7372"keyword.directive" = "nord10"
7473"variable.parameter" = "nord10"
7574
@@ -83,7 +82,7 @@
8382
8483# nord13 - warnings, escape characters, regex
8584"warning" = "nord13"
86−"constant.character.escape" = { fg = "nord13" }
85+"constant.character.escape" = "nord13"
8786
8887# nord14 - strings
8988"string" = "nord14"
@@ -91,15 +90,13 @@
9190# nord15 - integer, floating point
9291"constant.numeric" = "nord15"
9392
94−# TODO markup
95−"markup.heading" = "blue"
96−"markup.list" = "red"
97−"markup.bold" = { fg = "yellow", modifiers = ["bold"] }
98−"markup.italic" = { fg = "magenta", modifiers = ["italic"] }
99−"markup.link.url" = { fg = "yellow", modifiers = ["underlined"] }
100−"markup.link.text" = "red"
101−"markup.quote" = "cyan"
102−"markup.raw" = "green"
93+# markup
94+"markup.heading" = "nord8"
95+"markup.list" = "nord9"
96+"markup.bold" = { modifiers = ["bold"] }
97+"markup.italic" = { modifiers = ["italic"] }
98+"markup.link.text" = "nord8"
99+"markup.raw" = "nord7"
103100
104101# vcs
105102"diff.plus" = "nord14"
@@ -110,6 +107,9 @@
110107nord0 = "#2e3440"
111108nord1 = "#3b4252"
112109nord2 = "#434c5e"
110+# we use a brighter nord3 based on discussion here:
111+# https://github.com/arcticicestudio/nord/issues/94
112+nord3_bright = "#616e88"
113113nord4 = "#d8dee9"
114114nord6 = "#eceff4"
115115nord7 = "#8fbcbb"
@@ -121,4 +121,3 @@ nord12 = "#d08770"
121121nord13 = "#ebcb8b"
122122nord14 = "#a3be8c"
123123nord15 = "#b48ead"
124−gray = "#616e88"