|
| 1 | +/* |
| 2 | + * Neovim color palette for highlighting markdown codeblocks. |
| 3 | + * For use with Hugo. |
| 4 | + * See also: static/highlight/styles/neovim.min.css |
| 5 | + * License: Apache-2.0 |
| 6 | + */ |
1 | 7 |
|
2 | 8 | :root { |
3 | | - /* regular */ |
4 | | - --hi-black: #565f89; |
5 | | - --hi-red: #8c4351; |
6 | | - --hi-green: #145126; |
7 | | - --hi-yellow: #965027; |
8 | | - --hi-blue: #0f2d86; |
9 | | - --hi-purple: #5a4a78; |
10 | | - --hi-cyan: #166775; |
11 | | - --hi-white: #444; |
| 9 | + /* Neovim dark palette - regular/non-bright */ |
| 10 | + --hi-black: #2c2e33; |
| 11 | + --hi-red: #5e0009; |
| 12 | + --hi-green: #015825; |
| 13 | + --hi-yellow: #6e5600; |
| 14 | + --hi-blue: #005078; |
| 15 | + --hi-cyan: #007676; |
| 16 | + --hi-white: #4f5258; |
12 | 17 |
|
13 | | - /* bright */ |
14 | | - --hi-b-black: #565f89; |
15 | | - --hi-b-red: #8c4351; |
16 | | - --hi-b-green: #005136; |
17 | | - --hi-b-yellow: #8f5e15; |
18 | | - --hi-b-blue: #34548a; |
19 | | - --hi-b-purple: #5329a2; |
20 | | - --hi-b-cyan: #166775; |
21 | | - --hi-b-white: #343b58; |
| 18 | + /* Neovim dark palette - bright */ |
| 19 | + --hi-b-black: #4f5258; |
| 20 | + --hi-b-red: #5e0009; |
| 21 | + --hi-b-green: #015825; |
| 22 | + --hi-b-yellow: #6e5600; |
| 23 | + --hi-b-blue: #005078; |
| 24 | + --hi-b-cyan: #007676; |
| 25 | + --hi-b-white: #9b9ea4; |
22 | 26 | } |
23 | 27 |
|
24 | 28 | @media (prefers-color-scheme: dark) { |
25 | 29 | :root { |
26 | | - /* regular */ |
27 | | - --hi-black: #565f89; |
28 | | - --hi-red: #f7768e; |
29 | | - --hi-green: #73daca; |
30 | | - --hi-yellow: #a7d012 ; |
31 | | - --hi-blue: #7aa2f7; |
32 | | - --hi-purple: #bb9af7; |
33 | | - --hi-cyan: #4baebf; |
34 | | - --hi-white: #9aa5ce; |
| 30 | + /* Neovim light palette - regular/non-bright */ |
| 31 | + --hi-black: #9b9ea4; |
| 32 | + --hi-red: #ffbcb5; |
| 33 | + --hi-green: #aaedb7; |
| 34 | + --hi-yellow: #f4d88c; |
| 35 | + --hi-blue: #9fd8ff; |
| 36 | + --hi-cyan: #83efef; |
| 37 | + --hi-white: #d7dae1; |
35 | 38 |
|
36 | | - /* bright */ |
37 | | - --hi-b-black: #565f89; |
38 | | - --hi-b-red: #f7768e; |
39 | | - --hi-b-green: #9ece6a; |
40 | | - --hi-b-yellow: #ff9e64; |
41 | | - --hi-b-blue: #7aa2f7; |
42 | | - --hi-b-purple: #bb9af7; |
43 | | - --hi-b-cyan: #2ac3de; |
44 | | - --hi-b-white: #c0caf5; |
| 39 | + /* Neovim light palette - bright */ |
| 40 | + --hi-b-black: #c4c6cd; |
| 41 | + --hi-b-red: #ffbcb5; |
| 42 | + --hi-b-green: #aaedb7; |
| 43 | + --hi-b-yellow: #f4d88c; |
| 44 | + --hi-b-blue: #9fd8ff; |
| 45 | + --hi-b-cyan: #83efef; |
| 46 | + --hi-b-white: #ebeef5; |
45 | 47 | } |
46 | 48 | } |
47 | 49 |
|
48 | | -/*! zenburn syntax highlighting - from http://userstyles.org/styles/88895/github-zenburn */ |
| 50 | +/*! Neovim-based syntax highlighting */ |
49 | 51 | .highlight,.highlight pre,.highlight table { color: var(--hi-b-white) !important; } |
50 | | -.highlight .err { color: var(--hi-yellow) !important; } |
51 | | -.highlight .cs { color:#dca3a3 !important; } |
| 52 | +.highlight .err { color: var(--hi-b-red) !important; } |
| 53 | +.highlight .cs { color: var(--hi-cyan) !important; } |
52 | 54 | .highlight .nf { color: var(--hi-b-blue) !important; } |
53 | | -.highlight .c,.highlight .cm,.highlight .c1 { color: var(--hi-white) !important; } |
| 55 | +.highlight .c,.highlight .cm,.highlight .c1 { color: #9b9ea4 !important; } |
54 | 56 | .highlight .g,.highlight .l,.highlight .x,.highlight .ge,.highlight .gs,.highlight .ld,.highlight .ni, |
55 | 57 | .highlight .nl,.highlight .nx,.highlight .py,.highlight .n,.highlight .go, |
56 | | -.highlight .h { color: var(--hi-cyan) !important; } |
57 | | -.highlight .k { color: var(--hi-b-yellow) !important; } |
58 | | -.highlight .s1 { color:#bc8383 !important; } |
59 | | -.highlight .nb,.highlight .bp { color: var(--hi-yellow) !important; } |
60 | | -.highlight .nc,.highlight .nn { color:var(--hi-cyan) !important; } |
61 | | -.highlight .o,.highlight .p,.highlight .na,.highlight .ne { color: var(--hi-purple) !important; } |
62 | | -.highlight .gp,.highlight .w,.highlight .gh,.highlight .gu { color:#656555 !important; } |
| 58 | +.highlight .h { color: var(--hi-b-cyan) !important; } |
| 59 | +.highlight .k { color: var(--hi-b-blue) !important; } |
| 60 | +.highlight .s1 { color: var(--hi-b-green) !important; } |
| 61 | +.highlight .nb,.highlight .bp { color: var(--hi-b-yellow) !important; } |
| 62 | +.highlight .nc,.highlight .nn { color: var(--hi-b-cyan) !important; } |
| 63 | +.highlight .o,.highlight .p,.highlight .na,.highlight .ne { color: var(--hi-b-blue) !important; } |
| 64 | +.highlight .gp,.highlight .w,.highlight .gh,.highlight .gu { color: var(--hi-white) !important; } |
63 | 65 | .highlight .cp,.highlight .s,.highlight .sb,.highlight .sc,.highlight .sd,.highlight .s2,.highlight .se, |
64 | 66 | .highlight .sh,.highlight .si,.highlight .ss,.highlight .kc,.highlight .kd,.highlight .kn,.highlight .kp, |
65 | | -.highlight .kr,.highlight .kt,.highlight .nt,.highlight .ow { color: var(--hi-green) !important; } |
| 67 | +.highlight .kr,.highlight .kt,.highlight .nt,.highlight .ow { color: var(--hi-b-green) !important; } |
66 | 68 | .highlight .gr,.highlight .gt,.highlight .m,.highlight .mf,.highlight .mh,.highlight .mi, |
67 | | -.highlight .mo,.highlight .sr,.highlight .il { color:#9c6363 !important; } |
| 69 | +.highlight .mo,.highlight .sr,.highlight .il { color: var(--hi-b-cyan) !important; } |
68 | 70 | .highlight .no,.highlight .nv,.highlight .vc,.highlight .vg,.highlight .vi,.highlight .nd, |
69 | | -.highlight .sx { color:#dfaf8f !important; } |
| 71 | +.highlight .sx { color: var(--hi-b-yellow) !important; } |
0 commit comments