on master help sign in
Refactor nord theme (#874)

* refactor again * remove useless color

commit7146ae9388bc523d56d2388b1898eab611cb13c3 authorWindSoilder <WindSoilder@outlook.com> dateTue 19 Oct 2021, 11:17 (5 years ago) parentcdfa0df
1 file changed+61−43
runtime/themes/nord.toml+61−43
runtime/themes/nord.toml+61−43
@@ -1,84 +1,102 @@
11# Author : RayGervais<raygervais@hotmail.ca>
22
3−# "ui.linenr.selected" = { fg = "#d8dee9" }
4−"ui.text.focus" = { fg = "#88c0d0", modifiers= ["bold"] }
5−"ui.menu.selected" = { fg = "#88c0d0", bg = "#313f4e" }
3+"ui.linenr.selected" = { fg = "nord4" }
4+"ui.text.focus" = { fg = "nord8", modifiers= ["bold"] }
5+"ui.menu.selected" = { fg = "nord8", bg = "nord2" }
66
7−# "info" = "#b48ead"
8−# "hint" = "#a3be8c"
7+"info" = "nord8"
8+"hint" = "nord8"
99
1010# Polar Night
1111# nord0 - background color
12−"ui.background" = { bg = "#2e3440" }
13−"ui.statusline.inactive" = { fg = "#d8dEE9", bg = "#2e3440" }
12+"ui.background" = { bg = "nord0" }
13+"ui.statusline.inactive" = { fg = "nord4", bg = "nord0" }
1414
1515
1616# nord1 - status bars, panels, modals, autocompletion
17−"ui.statusline" = { fg = "#88c0d0", bg = "#3b4252" }
17+"ui.statusline" = { fg = "nord8", bg = "nord1" }
1818"ui.popup" = { bg = "#232d38" }
1919"ui.window" = { bg = "#232d38" }
20−"ui.help" = { bg = "#232d38", fg = "#e5ded6" }
20+"ui.help" = { bg = "#232d38", fg = "nord4" }
2121
2222# nord2 - active line, highlighting
23−"ui.selection" = { bg = "#434c5e" }
24−"ui.cursor.match" = { bg = "434c5e" }
23+"ui.selection" = { bg = "nord2" }
24+"ui.cursor.match" = { bg = "nord2" }
2525
26−# nord3 - comments
27−"comment" = "#616E88"
28−"ui.linenr" = { fg = "#616E88" }
26+# nord3 - comments, nord3 based lighter color
27+# relative: https://github.com/arcticicestudio/nord/issues/94
28+"comment" = "gray"
29+"ui.linenr" = { fg = "gray" }
2930
3031# Snow Storm
3132# nord4 - cursor, variables, constants, attributes, fields
32−"ui.cursor.primary" = { fg = "#d8dee9", modifiers = ["reversed"] }
33−"attribute" = "#d8dee9"
34−"variable" = "#d8dee9"
35−"constant" = "#d8dee9"
36−"variable.builtin" = "#d8dee9"
37−"constant.builtin" = "#d8dee9"
38−"namespace" = "#d8dee9"
33+"ui.cursor.primary" = { fg = "nord4", modifiers = ["reversed"] }
34+"attribute" = "nord4"
35+"variable" = "nord4"
36+"constant" = "nord4"
37+"variable.builtin" = "nord4"
38+"constant.builtin" = "nord4"
39+"namespace" = "nord4"
3940
4041# nord5 - suble UI text
4142
4243# nord6 - base text, punctuation
43−"ui.text" = { fg = "#eceff4" }
44−"punctuation" = "#eceff4"
44+"ui.text" = { fg = "nord6" }
45+"punctuation" = "nord6"
4546
4647# Frost
4748# nord7 - classes, types, primiatives
48−"type" = "#8fbcbb"
49−"type.builtin" = { fg = "#8fbcbb"}
50−"label" = "#8fbcbb"
49+"type" = "nord7"
50+"type.builtin" = { fg = "nord7"}
51+"label" = "nord7"
5152
5253# nord8 - declaration, methods, routines
53−"constructor" = "#88c0d0"
54−"function" = "#88c0d0"
55−"function.macro" = { fg = "#88c0d0" }
56−"function.builtin" = { fg = "#88c0d0" }
54+"constructor" = "nord8"
55+"function" = "nord8"
56+"function.macro" = { fg = "nord8" }
57+"function.builtin" = { fg = "nord8" }
5758
5859# nord9 - operator, tags, units, punctuations
59−"punctuation.delimiter" = "#81a1c1"
60−"operator" = { fg = "#81a1c1" }
61−"property" = "#81a1c1"
60+"punctuation.delimiter" = "nord9"
61+"operator" = { fg = "nord9" }
62+"property" = "nord9"
6263
6364# nord10 - keywords, special
64−"keyword" = { fg = "#5e81ac" }
65−"keyword.directive" = "#5e81ac"
66−"variable.parameter" = "#5e81ac"
65+"keyword" = { fg = "nord10" }
66+"keyword.directive" = "nord10"
67+"variable.parameter" = "nord10"
6768
6869# Aurora
6970# nord11 - error
70−"error" = "#bf616a"
71+"error" = "nord11"
7172
7273# nord12 - annotations, decorators
73−"special" = "#d08770"
74−"module" = "#d08770"
74+"special" = "nord12"
75+"module" = "nord12"
7576
7677# nord13 - warnings, escape characters, regex
77−"warning" = "#ebcb8b"
78−"escape" = { fg = "#ebcb8b" }
78+"warning" = "nord13"
79+"escape" = { fg = "nord13" }
7980
8081# nord14 - strings
81−"string" = "#a3be8c"
82+"string" = "nord14"
8283
8384# nord15 - integer, floating point
84−"number" = "#b48ead"
85+"number" = "nord15"
86+
87+[palette]
88+nord0 = "#2e3440"
89+nord1 = "#3b4252"
90+nord2 = "#434c5e"
91+nord4 = "#d8dee9"
92+nord6 = "#eceff4"
93+nord7 = "#8fbcbb"
94+nord8 = "#88c0d0"
95+nord9 = "#81a1c1"
96+nord10 = "#5e81ac"
97+nord11 = "#bf616a"
98+nord12 = "#d08770"
99+nord13 = "#ebcb8b"
100+nord14 = "#a3be8c"
101+nord15 = "#b48ead"
102+gray = "#616e88"