feat: "day" variant

This commit is contained in:
Folke Lemaitre
2021-04-24 22:24:40 +02:00
parent 002bae49d4
commit 8889ad8848
5 changed files with 388 additions and 76 deletions

View File

@@ -11,71 +11,38 @@ function M.setup(config)
---@class ColorScheme
local colors = {}
if config.style == "day" then
colors = {
none = "NONE",
bg_dark = "#F3F4F6",
bg = "#ffffff",
bg_highlight = "#F9FAFB",
terminal_black = "#414868",
fg = "#4B5563",
fg_dark = "#374151",
fg_gutter = "#D1D5DB",
dark3 = "#545c7e",
comment = "#9CA3AF",
dark5 = "#737aa2",
blue0 = "#90CAF9",
blue = "#3B82F6",
cyan = "#00B0FF",
blue1 = "#10B981",
blue5 = "#80D8FF",
blue6 = "#B4F9F8",
magenta = "#8B5CF6",
purple = "#A78BFA",
orange = "#F57F17",
yellow = "#FBBF24",
green = "#9CCC65",
green1 = "#00BFA5",
teal = "#1abc9c",
red = "#f7768e",
red1 = "#db4b4b",
diff = { change = "#394b70", add = "#164846", delete = "#823c41" },
git = { change = "#6183bb", add = "#449dab", delete = "#914c54" },
}
else
colors = {
none = "NONE",
bg_dark = "#1f2335",
bg = "#24283b",
bg_highlight = "#292e42",
terminal_black = "#414868",
fg = "#c0caf5",
fg_dark = "#a9b1d6",
fg_gutter = "#3b4261",
dark3 = "#545c7e",
comment = "#565f89",
dark5 = "#737aa2",
blue0 = "#3d59a1",
blue = "#7aa2f7",
cyan = "#7dcfff",
blue1 = "#2ac3de",
blue2 = "#0db9d7",
blue5 = "#89ddff",
blue6 = "#B4F9F8",
magenta = "#bb9af7",
purple = "#9d7cd8",
orange = "#ff9e64",
yellow = "#e0af68",
green = "#9ece6a",
green1 = "#73daca",
teal = "#1abc9c",
red = "#f7768e",
red1 = "#db4b4b",
diff = { change = "#394b70", add = "#164846", delete = "#823c41" },
git = { change = "#6183bb", add = "#449dab", delete = "#f7768e" },
}
if config.style == "night" then colors.bg = "#1a1b26" end
end
colors = {
none = "NONE",
bg_dark = "#1f2335",
bg = "#24283b",
bg_highlight = "#292e42",
terminal_black = "#414868",
fg = "#c0caf5",
fg_dark = "#a9b1d6",
fg_gutter = "#3b4261",
dark3 = "#545c7e",
comment = "#565f89",
dark5 = "#737aa2",
blue0 = "#3d59a1",
blue = "#7aa2f7",
cyan = "#7dcfff",
blue1 = "#2ac3de",
blue2 = "#0db9d7",
blue5 = "#89ddff",
blue6 = "#B4F9F8",
magenta = "#bb9af7",
purple = "#9d7cd8",
orange = "#ff9e64",
yellow = "#e0af68",
green = "#9ece6a",
green1 = "#73daca",
teal = "#1abc9c",
red = "#f7768e",
red1 = "#db4b4b",
diff = { change = "#394b70", add = "#164846", delete = "#823c41" },
git = { change = "#6183bb", add = "#449dab", delete = "#f7768e" },
}
if config.style == "night" or config.style == "day" then colors.bg = "#1a1b26" end
util.bg = colors.bg
colors.git.ignore = colors.dark3
@@ -101,6 +68,7 @@ function M.setup(config)
colors.hint = colors.teal
util.color_overrides(colors, config)
return colors
end