Skip to content

Commit

Permalink
feat: fix all background dark colors
Browse files Browse the repository at this point in the history
  • Loading branch information
luisiacc committed Aug 14, 2022
1 parent 8a0de70 commit c5ee360
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 5 additions & 3 deletions lua/gruvbox-baby/colors.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
local util = require("gruvbox-baby.util")

local the_palette = {
dark0 = "#0d0e0f",
dark = "#202020",
Expand Down Expand Up @@ -60,15 +62,15 @@ function M.config(config)
["dark"] = {
dark = colors.dark0,
background = colors.background_dark,
background_dark = colors.dark,
background_dark = util.darken(colors.background_dark, 0.8),
},
["medium"] = {
background = colors.background,
background_dark = colors.background_dark,
background_dark = util.darken(colors.background, 0.9),
},
["soft"] = {
background = colors.background_light,
background_dark = colors.background,
background_dark = util.darken(colors.background_light, 0.8),
},
["soft_flat"] = {
background = colors.background_light,
Expand Down
7 changes: 6 additions & 1 deletion lua/gruvbox-baby/util.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
local hsluv = require("gruvbox-baby.hsluv")

local util = {}
local hsluv = require("hsluv")

util.colorsUsed = {}
util.colorCache = {}

util.bg = "#000000"
util.fg = "#ffffff"
util.day_brightness = 0.3

-- will improve in future
function util.getColor(color)
return color
Expand Down

0 comments on commit c5ee360

Please sign in to comment.