move fg and bg to colors

This commit is contained in:
Łukasz Pankowski 2023-12-06 22:33:45 +01:00
parent 08510eed7c
commit 733fa2b149
2 changed files with 6 additions and 2 deletions

View File

@ -6,6 +6,8 @@ local base = require('lupancolors.lupan').options.dark.base
M.colors = {
base = base,
bg = base.de(10).da(70),
fg = base.de(75),
red = base.hue(0),
orange = base.hue(30),
yellow = base.hue(60),
@ -25,7 +27,7 @@ M.theme = lush(function()
local c = M.colors
return {
-- See: h highlight-groups
Normal { bg = c.base.de(10).da(70), fg = c.base.de(75) },
Normal { bg = c.bg, fg = c.fg },
CursorLine { bg = Normal.bg.li(5) },
Visual { bg = Normal.bg.sa(20).li(10) },
Comment { fg = c.base.de(75).da(20) },

View File

@ -6,6 +6,8 @@ local base = require('lupancolors.lupan').options.light.base
M.colors = {
base = base,
bg = base.de(60).li(90),
fg = base.de(75),
red = base.hue(0),
orange = base.hue(30),
yellow = base.hue(60),
@ -25,7 +27,7 @@ M.theme = lush(function()
local c = M.colors;
return {
-- See: h highlight-groups
Normal { bg = c.base.de(60).li(90), fg = c.base.de(75) },
Normal { bg = c.bg, fg = c.fg },
CursorLine { bg = Normal.bg.da(4) },
Visual { bg = c.base.de(55).li(70) },
Comment { fg = c.base.de(60).li(20) },