|
| 1 | +local M = {} |
| 2 | + |
| 3 | +local c = { |
| 4 | + none = "NONE", |
| 5 | + syntax = {}, |
| 6 | + ui = {}, |
| 7 | + term = {}, |
| 8 | +} |
| 9 | + |
| 10 | +-------------------------------- |
| 11 | +--- Syntax |
| 12 | +-------------------------------- |
| 13 | +c.syntax.red = "#FE8A90" |
| 14 | +c.syntax.blue = "#63B7FC" |
| 15 | +c.syntax.green = "#89BF63" |
| 16 | +c.syntax.yellow = "#E1AA41" |
| 17 | +c.syntax.purple = "#DB98EE" |
| 18 | +c.syntax.cyan = "#1BC5B9" |
| 19 | +c.syntax.orange = "#FE915E" |
| 20 | +c.syntax.text = "#ADB0BB" |
| 21 | +c.syntax.comment = "#696C76" |
| 22 | +c.syntax.mute = "#595C66" |
| 23 | + |
| 24 | +-------------------------------- |
| 25 | +--- UI |
| 26 | +-------------------------------- |
| 27 | +c.ui.red = "#F37880" |
| 28 | +c.ui.blue = "#50A4E9" |
| 29 | +c.ui.green = "#75AD47" |
| 30 | +c.ui.yellow = "#D09214" |
| 31 | +c.ui.purple = "#CC83E3" |
| 32 | +c.ui.cyan = "#00B298" |
| 33 | +c.ui.orange = "#EB8331" |
| 34 | + |
| 35 | +c.ui.accent = "#EB8331" |
| 36 | + |
| 37 | +c.ui.tabline = "#111317" |
| 38 | +c.ui.winbar = "#797D87" |
| 39 | +c.ui.tool = "#16181D" |
| 40 | +c.ui.base = "#1A1D23" |
| 41 | +c.ui.inactive_base = "#16181D" |
| 42 | +c.ui.statusline = "#111317" |
| 43 | +c.ui.split = "#111317" |
| 44 | +c.ui.popup = "#16181D" |
| 45 | +c.ui.float = "#16181D" |
| 46 | +c.ui.title = c.ui.accent |
| 47 | +c.ui.border = "#7A7C7E" |
| 48 | +c.ui.current_line = "#1E222A" |
| 49 | +c.ui.scrollbar = c.ui.accent |
| 50 | +c.ui.selection = "#26343F" |
| 51 | +c.ui.menu_selection = c.ui.accent |
| 52 | +c.ui.highlight = "#1E222A" |
| 53 | +c.ui.none_text = "#3A3E47" |
| 54 | +c.ui.text = "#9B9FA9" |
| 55 | +c.ui.text_active = "#ADB0BB" |
| 56 | +c.ui.text_inactive = "#494D56" |
| 57 | +c.ui.text_match = c.ui.accent |
| 58 | + |
| 59 | +-------------------------------- |
| 60 | +--- Terminal |
| 61 | +-------------------------------- |
| 62 | +c.term.black = c.ui.tabline |
| 63 | +c.term.bright_black = c.ui.base |
| 64 | + |
| 65 | +c.term.red = c.syntax.red |
| 66 | +c.term.bright_red = c.syntax.red |
| 67 | + |
| 68 | +c.term.green = c.syntax.green |
| 69 | +c.term.bright_green = c.syntax.green |
| 70 | + |
| 71 | +c.term.yellow = c.syntax.yellow |
| 72 | +c.term.bright_yellow = c.syntax.yellow |
| 73 | + |
| 74 | +c.term.blue = c.syntax.blue |
| 75 | +c.term.bright_blue = c.syntax.blue |
| 76 | + |
| 77 | +c.term.purple = c.syntax.purple |
| 78 | +c.term.bright_purple = c.syntax.purple |
| 79 | + |
| 80 | +c.term.cyan = c.syntax.cyan |
| 81 | +c.term.bright_cyan = c.syntax.cyan |
| 82 | + |
| 83 | +c.term.white = c.syntax.text |
| 84 | +c.term.bright_white = c.syntax.text |
| 85 | + |
| 86 | +c.term.background = c.ui.base |
| 87 | +c.term.foreground = c.ui.text |
| 88 | + |
| 89 | +-------------------------------- |
| 90 | +--- Wezterm |
| 91 | +-------------------------------- |
| 92 | + |
| 93 | +local active_tab = { |
| 94 | + bg_color = c.ui.base, |
| 95 | + fg_color = c.ui.text_active, |
| 96 | +} |
| 97 | + |
| 98 | +local inactive_tab = { |
| 99 | + bg_color = c.ui.tabline, |
| 100 | + fg_color = c.ui.text_inactive, |
| 101 | +} |
| 102 | + |
| 103 | +function M.colors() |
| 104 | + return { |
| 105 | + foreground = c.ui.text, |
| 106 | + background = c.term.background, |
| 107 | + cursor_bg = c.ui.text, |
| 108 | + cursor_border = c.ui.text, |
| 109 | + cursor_fg = c.ui.black, |
| 110 | + selection_bg = c.ui.selection, |
| 111 | + selection_fg = c.ui.text_active, |
| 112 | + scrollbar_thumb = c.ui.winbar, |
| 113 | + |
| 114 | + ansi = { |
| 115 | + c.term.black, |
| 116 | + c.term.red, |
| 117 | + c.term.green, |
| 118 | + c.term.yellow, |
| 119 | + c.term.blue, |
| 120 | + c.term.purple, |
| 121 | + c.term.cyan, |
| 122 | + c.term.white, |
| 123 | + }, |
| 124 | + |
| 125 | + brights = { |
| 126 | + c.term.bright_black, |
| 127 | + c.term.bright_red, |
| 128 | + c.term.bright_green, |
| 129 | + c.term.bright_yellow, |
| 130 | + c.term.bright_blue, |
| 131 | + c.term.bright_purple, |
| 132 | + c.term.bright_cyan, |
| 133 | + c.term.bright_white, |
| 134 | + }, |
| 135 | + |
| 136 | + tab_bar = { |
| 137 | + background = c.ui.tabline, |
| 138 | + active_tab = active_tab, |
| 139 | + inactive_tab = inactive_tab, |
| 140 | + inactive_tab_hover = active_tab, |
| 141 | + new_tab = inactive_tab, |
| 142 | + new_tab_hover = active_tab, |
| 143 | + inactive_tab_edge = c.ui.none_text, |
| 144 | + }, |
| 145 | + } |
| 146 | +end |
| 147 | + |
| 148 | +function M.window_frame() -- (Fancy tab bar only) |
| 149 | + return { |
| 150 | + active_titlebar_bg = active_tab.bg_color, |
| 151 | + inactive_titlebar_bg = inactive_tab.bg_color, |
| 152 | + } |
| 153 | +end |
| 154 | + |
| 155 | +return M |
0 commit comments