use hsluv

This commit is contained in:
Łukasz Pankowski 2023-12-06 21:38:38 +01:00
parent 6580d46751
commit 08510eed7c
4 changed files with 14 additions and 16 deletions

View File

@ -26,8 +26,8 @@ else
replace = c.red.hex, replace = c.red.hex,
command = c.yellow.hex, command = c.yellow.hex,
b = { bg = c.base.de(50).li(70).hex, fg = c.base.hex }, b = { bg = c.base.de(50).li(70).hex, fg = c.base.hex },
c = { bg = c.base.de(00).li(60).hex, fg = c.base.hex }, c = { bg = c.base.de(30).li(60).hex, fg = c.base.hex },
inactive = { bg = c.base.de(50).li(40).hex, fg = c.base.da(30).hex }, inactive = { bg = c.base.de(50).li(50).hex, fg = c.base.da(30).hex },
} }
end end

View File

@ -1,14 +1,14 @@
local lush = require('lush') local lush = require('lush')
local hsl = lush.hsl local hsluv = lush.hsluv
local M = {} local M = {}
local default = { local default = {
dark = { dark = {
base = hsl(210, 40, 75), base = hsluv(210, 40, 75),
}, },
light = { light = {
base = hsl(210, 50, 35), base = hsluv(210, 70, 50),
} }
} }

View File

@ -1,5 +1,4 @@
local lush = require('lush') local lush = require('lush')
local hsl = lush.hsl
local M = {} local M = {}
@ -26,9 +25,9 @@ M.theme = lush(function()
local c = M.colors local c = M.colors
return { return {
-- See: h highlight-groups -- See: h highlight-groups
Normal { bg = c.base.de(65).da(75), fg = c.base.de(75) }, Normal { bg = c.base.de(10).da(70), fg = c.base.de(75) },
CursorLine { bg = Normal.bg.li(10) }, CursorLine { bg = Normal.bg.li(5) },
Visual { bg = Normal.bg.sa(20).li(20) }, Visual { bg = Normal.bg.sa(20).li(10) },
Comment { fg = c.base.de(75).da(20) }, Comment { fg = c.base.de(75).da(20) },
CursorColumn { CursorLine }, CursorColumn { CursorLine },
LineNr { Comment, gui = "italic" }, LineNr { Comment, gui = "italic" },
@ -55,19 +54,19 @@ M.theme = lush(function()
MoreMsg { fg = c.green, gui = "bold" }, MoreMsg { fg = c.green, gui = "bold" },
Question { fg = c.green, gui = "bold" }, Question { fg = c.green, gui = "bold" },
TelescopeSelection { CursorLine }, TelescopeSelection { CursorLine },
WhiKeyFloat { bg = Normal.bg.li(15) }, WhiKeyFloat { bg = Normal.bg.li(10) },
DiagnosticError { fg = c.red }, DiagnosticError { fg = c.red },
DiagnosticWarn { fg = c.orange }, DiagnosticWarn { fg = c.orange },
DiagnosticInfo { fg = c.cyan }, DiagnosticInfo { fg = c.cyan },
Pmenu { bg = Normal.bg.li(20) }, Pmenu { bg = Normal.bg.li(10) },
PmenuSel { bg = Normal.bg.li(25).sa(20) }, PmenuSel { bg = Normal.bg.li(20).sa(20) },
Error { bg = c.red.da(25), fg = Normal.bg }, Error { bg = c.red.da(25), fg = Normal.bg },
ErrorMsg { Error }, ErrorMsg { Error },
MatParen { fg = c.hot_pink, gui = "bold" }, MatParen { fg = c.hot_pink, gui = "bold" },
SpecialKey { fg = c.red }, SpecialKey { fg = c.red },
Directory { fg = c.cyan }, Directory { fg = c.cyan },
Title { fg = c.fuchsia, gui = "bold" }, Title { fg = c.fuchsia, gui = "bold" },
Conceal { bg = c.blue.da(40).de(50) }, Conceal { bg = Normal.bg.li(20).de(50) },
SpellBad { fg = c.red, gui = "underline" }, SpellBad { fg = c.red, gui = "underline" },
SpellRare { fg = Type.fg, gui = "underline" }, SpellRare { fg = Type.fg, gui = "underline" },
SpellLocal { fg = DiagnosticInfo.fg, gui = "underline" }, SpellLocal { fg = DiagnosticInfo.fg, gui = "underline" },

View File

@ -1,5 +1,4 @@
local lush = require('lush') local lush = require('lush')
local hsl = lush.hsl
local M = {} local M = {}
@ -26,9 +25,9 @@ M.theme = lush(function()
local c = M.colors; local c = M.colors;
return { return {
-- See: h highlight-groups -- See: h highlight-groups
Normal { bg = c.base.de(70).li(90), fg = c.base.de(75) }, Normal { bg = c.base.de(60).li(90), fg = c.base.de(75) },
CursorLine { bg = Normal.bg.da(4) }, CursorLine { bg = Normal.bg.da(4) },
Visual { bg = c.base.de(55).li(65) }, Visual { bg = c.base.de(55).li(70) },
Comment { fg = c.base.de(60).li(20) }, Comment { fg = c.base.de(60).li(20) },
CursorColumn { CursorLine }, CursorColumn { CursorLine },
LineNr { Comment, gui = "italic" }, LineNr { Comment, gui = "italic" },