z_mirror/kak-one

git clone https://git.raiguard.me/z_mirror/kak-one

Caleb HeuerMake cursors more visible in dark schemes, hints are green, matching chars are bold and underlined6921b30

trunk
4.5 KiB116 linesraw
1# One Light
2
3declare-option str fg "4b4c54"
4declare-option str bg "fafafa"
5declare-option str subbg "e6e6e6"
6
7declare-option str lightred "e45649"
8declare-option str darkred "ca1243"
9declare-option str green "50a14f"
10declare-option str lightorange "c18401"
11declare-option str darkorange "986801"
12declare-option str blue "4078f2"
13declare-option str magenta "a626a4"
14declare-option str cyan "0184bc"
15
16declare-option str comment "a0a1a7"
17
18declare-option str cursoralpha "80"
19declare-option str selectionalpha "40"
20
21# Menus do not support transparency, so we must hardcode the selection + sub bg colors
22declare-option str menuselection "bbc9e8"
23
24# CODE
25
26set-face global value "rgb:%opt{darkorange}"
27set-face global type "rgb:%opt{lightorange}"
28set-face global variable "rgb:%opt{lightred}"
29set-face global module "rgb:%opt{lightorange}"
30set-face global function "rgb:%opt{blue}"
31set-face global string "rgb:%opt{green}"
32set-face global keyword "rgb:%opt{magenta}"
33set-face global operator "rgb:%opt{fg}"
34set-face global attribute "rgb:%opt{cyan}"
35set-face global comment "rgb:%opt{comment}"
36set-face global documentation "rgb:%opt{comment}"
37set-face global meta "rgb:%opt{cyan}"
38set-face global builtin "rgb:%opt{lightorange}"
39
40# MARKUP
41
42set-face global title "rgb:%opt{darkorange}"
43set-face global header "rgb:%opt{green}"
44set-face global mono "rgb:%opt{cyan}"
45set-face global block "rgb:%opt{magenta}"
46set-face global link "rgb:%opt{blue}"
47set-face global bullet "rgb:%opt{lightorange}"
48set-face global list "rgb:%opt{fg}"
49
50# BUILTIN
51
52set-face global Default "rgb:%opt{fg},rgb:%opt{bg}"
53set-face global PrimarySelection "default,rgba:%opt{blue}%opt{selectionalpha}"
54set-face global SecondarySelection "default,rgba:%opt{green}%opt{selectionalpha}"
55set-face global PrimaryCursor "default,rgba:%opt{blue}%opt{cursoralpha}"
56set-face global SecondaryCursor "default,rgba:%opt{green}%opt{cursoralpha}"
57set-face global PrimaryCursorEol "default,rgba:%opt{lightred}%opt{cursoralpha}"
58set-face global SecondaryCursorEol "default,rgba:%opt{darkorange}%opt{cursoralpha}"
59set-face global LineNumbers "rgb:%opt{comment}"
60set-face global LineNumberCursor "rgb:%opt{darkorange}"
61set-face global LineNumbersWrapped "rgb:%opt{bg},rgb:%opt{bg}"
62set-face global MenuForeground "rgb:%opt{fg},rgb:%opt{menuselection}"
63set-face global MenuBackground "rgb:%opt{fg},rgb:%opt{subbg}"
64set-face global MenuInfo "rgb:%opt{green}"
65set-face global Information "rgb:%opt{fg},rgb:%opt{subbg}"
66set-face global Error "rgb:%opt{lightred}"
67set-face global StatusLine "rgb:%opt{fg},rgb:%opt{subbg}"
68set-face global StatusLineMode "rgb:%opt{darkorange}"
69set-face global StatusLineInfo "rgb:%opt{blue}"
70set-face global StatusLineValue "rgb:%opt{fg}"
71set-face global StatusCursor "default,rgba:%opt{blue}%opt{cursoralpha}"
72set-face global Prompt "rgb:%opt{blue}"
73set-face global MatchingChar +bu
74set-face global BufferPadding "rgb:%opt{bg},rgb:%opt{bg}"
75set-face global Whitespace "rgb:%opt{comment}"
76
77# PLUGINS
78
79# kak-lsp
80set-face global InlayHint "+d@type"
81set-face global parameter "+i@variable"
82set-face global enum "rgb:%opt{cyan}"
83set-face global InlayDiagnosticError "rgb:%opt{lightred}"
84set-face global InlayDiagnosticWarning "rgb:%opt{lightorange}"
85set-face global InlayDiagnosticInfo "rgb:%opt{blue}"
86set-face global InlayDiagnosticHint "rgb:%opt{green}"
87set-face global LineFlagError "rgb:%opt{lightred}"
88set-face global LineFlagWarning "rgb:%opt{lightorange}"
89set-face global LineFlagInfo "rgb:%opt{blue}"
90set-face global LineFlagHint "rgb:%opt{green}"
91set-face global DiagnosticError ",,rgb:%opt{lightred}+c"
92set-face global DiagnosticWarning ",,rgb:%opt{lightorange}+c"
93set-face global DiagnosticInfo ",,rgb:%opt{blue}+c"
94set-face global DiagnosticHint ",,rgb:%opt{green}+c"
95# Infobox faces
96set-face global InfoDefault Information
97set-face global InfoBlock block
98set-face global InfoBlockQuote block
99set-face global InfoBullet bullet
100set-face global InfoHeader header
101set-face global InfoLink link
102set-face global InfoLinkMono header
103set-face global InfoMono mono
104set-face global InfoRule comment
105set-face global InfoDiagnosticError InlayDiagnosticError
106set-face global InfoDiagnosticHint InlayDiagnosticHint
107set-face global InfoDiagnosticInformation InlayDiagnosticInfo
108set-face global InfoDiagnosticWarning InlayDiagnosticWarning
109
110# kak-rainbower
111try %{ set-option global rainbow_colors "rgb:%opt{lightorange}" "rgb:%opt{magenta}" "rgb:%opt{blue}" }
112
113# For backwards compatibility
114define-command -override -hidden one-enable-fancy-underlines %{
115    echo -debug "one-enable-fancy-underlines is deprecated - curly underlines are enabled by default"
116}