Consolidate fg and dimmed to the accent tones
This commit is contained in:
15
colors.css
15
colors.css
@@ -21,36 +21,51 @@
|
||||
}
|
||||
|
||||
.green {
|
||||
.lightest { color: oklch(0.95 0.02 150); }
|
||||
.lighter { color: oklch(0.55 0.025 150); }
|
||||
.light { color: oklch(0.8 0.08 150); }
|
||||
.regular { color: oklch(0.8 0.18 150); }
|
||||
.dark { color: oklch(0.33 0.06 150); }
|
||||
.darker { color: oklch(0.2 0.03 150); }
|
||||
.darkest { color: oklch(0.1 0.02 150); }
|
||||
}
|
||||
|
||||
.purple {
|
||||
.lightest { color: oklch(0.95 0.02 330); }
|
||||
.lighter { color: oklch(0.55 0.025 330); }
|
||||
.light { color: oklch(0.8 0.08 330); }
|
||||
.regular { color: oklch(0.8 0.18 330); }
|
||||
.dark { color: oklch(0.33 0.06 330); }
|
||||
.darker { color: oklch(0.2 0.03 330); }
|
||||
.darkest { color: oklch(0.1 0.02 330); }
|
||||
}
|
||||
|
||||
.yellow {
|
||||
.lightest { color: oklch(0.95 0.02 90); }
|
||||
.lighter { color: oklch(0.55 0.025 90); }
|
||||
.light { color: oklch(0.8 0.08 90); }
|
||||
.regular { color: oklch(0.8 0.18 90); }
|
||||
.dark { color: oklch(0.33 0.06 90); }
|
||||
.darker { color: oklch(0.2 0.03 90); }
|
||||
.darkest { color: oklch(0.1 0.02 90); }
|
||||
}
|
||||
|
||||
.blue {
|
||||
.lightest { color: oklch(0.95 0.02 210); }
|
||||
.lighter { color: oklch(0.55 0.025 210); }
|
||||
.light { color: oklch(0.8 0.08 210); }
|
||||
.regular { color: oklch(0.8 0.18 210); }
|
||||
.dark { color: oklch(0.33 0.06 210); }
|
||||
.darker { color: oklch(0.2 0.03 210); }
|
||||
.darkest { color: oklch(0.1 0.02 210); }
|
||||
}
|
||||
|
||||
.red {
|
||||
.lightest { color: oklch(0.95 0.02 25); }
|
||||
.lighter { color: oklch(0.55 0.025 25); }
|
||||
.light { color: oklch(0.8 0.08 25); }
|
||||
.regular { color: oklch(0.65 0.25 25); }
|
||||
.dark { color: oklch(0.33 0.06 25); }
|
||||
.darker { color: oklch(0.2 0.03 25); }
|
||||
.darkest { color: oklch(0.1 0.02 25); }
|
||||
}
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
local M = {}
|
||||
|
||||
M.config = {
|
||||
accent = "blue"
|
||||
accent = "blue",
|
||||
transparent = false
|
||||
}
|
||||
|
||||
function M.setup(opts)
|
||||
@@ -14,47 +15,61 @@ function M.setup(opts)
|
||||
vim.g.colors_name = "voltage"
|
||||
|
||||
local colors = {
|
||||
bg = nil,
|
||||
fg = "#f0f0f0",
|
||||
dimmed = "#707070",
|
||||
inverted = "#000000",
|
||||
-- strings, numbers, etc
|
||||
green = {
|
||||
lightest = "#e6f3e8",
|
||||
lighter = "#68766a",
|
||||
light = "#99cda3",
|
||||
regular = "#54dd7d",
|
||||
dark = "#1c3e24",
|
||||
darker = "#0c1a0f"
|
||||
darker = "#0c1a0f",
|
||||
darkest = "#010502"
|
||||
},
|
||||
-- constants
|
||||
purple = {
|
||||
lightest = "#f7eaf5",
|
||||
lighter = "#7a6d79",
|
||||
light = "#dcabd6",
|
||||
regular = "#fd8ff4",
|
||||
dark = "#472944",
|
||||
darker = "#1e111c"
|
||||
darker = "#1e111c",
|
||||
darkest = "#060206"
|
||||
},
|
||||
-- comments
|
||||
yellow = {
|
||||
lightest = "#f4eee0",
|
||||
lighter = "#777161",
|
||||
light = "#d2bc82",
|
||||
regular = "#ebb600",
|
||||
dark = "#41340a",
|
||||
darker = "#1b1505"
|
||||
darker = "#1b1505",
|
||||
darkest = "#050300"
|
||||
},
|
||||
-- top-level definitions
|
||||
blue = {
|
||||
lightest = "#e0f2f6",
|
||||
lighter = "#61767a",
|
||||
light = "#7dccda",
|
||||
regular = "#00d8f5",
|
||||
dark = "#003d46",
|
||||
darker = "#031a1e"
|
||||
darker = "#031a1e",
|
||||
darkest = "#000406"
|
||||
},
|
||||
-- errors, spellbad, etc
|
||||
red = {
|
||||
lightest = "#fceae8",
|
||||
lighter = "#806c6a",
|
||||
light = "#edaaa4",
|
||||
regular = "#ff2335",
|
||||
dark = "#502825",
|
||||
darker = "#22100f"
|
||||
darker = "#22100f",
|
||||
darkest = "#080202"
|
||||
},
|
||||
}
|
||||
|
||||
colors.fg = colors[M.config.accent].lightest
|
||||
colors.dimmed = colors[M.config.accent].lighter
|
||||
|
||||
for _, highlight in ipairs({ "editor", "syntax", "treesitter" }) do
|
||||
local mod = require("voltage.highlights." .. highlight)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user