forked from rebelot/kanagawa.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolors.lua
73 lines (61 loc) · 2.01 KB
/
colors.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
local palette_colors = {
-- Bg Shades
sumiInk0 = "#16161D",
sumiInk1b = "#181820",
sumiInk1 = "#1F1F28",
sumiInk2 = "#2A2A37",
sumiInk3 = "#363646",
sumiInk4 = "#54546D",
-- Popup and Floats
waveBlue1 = "#223249",
waveBlue2 = "#2D4F67",
-- Diff and Git
winterGreen = "#2B3328",
winterYellow = "#49443C",
winterRed = "#43242B",
winterBlue = "#252535",
autumnGreen = "#76946A",
autumnRed = "#C34043",
autumnYellow = "#DCA561",
-- Diag
samuraiRed = "#E82424",
roninYellow = "#FF9E3B",
waveAqua1 = "#6A9589",
dragonBlue = "#658594",
-- Fg and Comments
oldWhite = "#C8C093",
fujiWhite = "#DCD7BA",
fujiGray = "#727169",
springViolet1 = "#938AA9",
oniViolet = "#957FB8",
crystalBlue = "#7E9CD8",
springViolet2 = "#9CABCA",
springBlue = "#7FB4CA",
lightBlue = "#A3D4D5", -- unused yet
waveAqua2 = "#7AA89F", -- improve lightness: desaturated greenish Aqua
-- waveAqua2 = "#68AD99",
-- waveAqua4 = "#7AA880",
-- waveAqua5 = "#6CAF95",
-- waveAqua3 = "#68AD99",
springGreen = "#98BB6C",
boatYellow1 = "#938056",
boatYellow2 = "#C0A36E",
carpYellow = "#E6C384",
sakuraPink = "#D27E99",
waveRed = "#E46876",
peachRed = "#FF5D62",
surimiOrange = "#FFA066",
katanaGray = "#717C7C",
}
local M = {}
--- generate color table
-- @param config config options containing colors and theme fields (optional)
-- @return table of palette colors and theme colors merged with config.colors
function M.setup(config)
config = vim.tbl_extend("force", require("kanagawa").config, config or {})
local colors = vim.tbl_extend("force", palette_colors, config.colors)
local theme = require("kanagawa.themes")[config.theme](colors)
theme = vim.tbl_extend("force", theme, config.colors)
return vim.tbl_extend("force", theme, colors)
end
return M