From dd2791bba70ee3a51f567202c88f52add845ee0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Tue, 5 Dec 2023 02:53:32 +0100 Subject: [PATCH] WIP color every 30 degrees --- lua/lupancolors/lupan.lua | 55 ++++++++++++++++++++++++--------------- 1 file changed, 34 insertions(+), 21 deletions(-) diff --git a/lua/lupancolors/lupan.lua b/lua/lupancolors/lupan.lua index fdd09bb..e8351b2 100644 --- a/lua/lupancolors/lupan.lua +++ b/lua/lupancolors/lupan.lua @@ -3,26 +3,39 @@ local hsl = lush.hsl -- We'll use hsl a lot so its nice to bind it separately ---@diagnostic disable: undefined-global local theme = lush(function() + local red = hsl(0, 50, 75) + local orange = hsl(30, 50, 75) + local yellow = hsl(60, 50, 75) + local yellow_green = hsl(90, 50, 75) + local green = hsl(120, 50, 75) + local aquamarine = hsl(150, 50, 75) + local cyan = hsl(180, 50, 75) + local blue = hsl(210, 50, 75) + local lavender = hsl(240, 50, 75) + local purple = hsl(270, 50, 75) + local fuchsia = hsl(300, 50, 75) + local hot_pink = hsl(330, 50, 75) return { -- See: h highlight-groups - Normal { bg = hsl(210, 15, 20), fg = hsl(210, 20, 75) }, + Normal { bg = hsl(blue.h, 15, 20), fg = hsl(blue.h, 20, 75) }, CursorLine { bg = Normal.bg.li(10) }, - Visual { bg = hsl(210, 30, 30) }, - Comment { fg = hsl(210, 10, 60) }, + Visual { bg = hsl(blue.h, 30, 30) }, + Comment { fg = hsl(blue.h, 10, 60) }, CursorColumn { CursorLine }, LineNr { Comment, gui = "italic" }, - CursorLineNr { fg = hsl(210, 50, 75), bg = CursorLine.bg, gui = "italic" }, - Search { bg = hsl(50, 15, 60), fg = Normal.bg }, - IncSearch { bg = hsl(130, 15, 60), fg = Normal.bg }, - String { fg = hsl(210, 50, 75) }, - PreProc { fg = hsl(300, 50, 75) }, - Statement { fg = hsl(10, 50, 75) }, - Type { fg = hsl(50, 50, 75) }, + CursorLineNr { fg = blue, bg = CursorLine.bg, gui = "italic" }, + Search { bg = hsl(yellow.h, 15, 60), fg = Normal.bg }, + IncSearch { bg = hsl(green.h, 15, 60), fg = Normal.bg }, + + String { fg = blue }, + PreProc { fg = fuchsia }, + Statement { fg = orange }, + Type { fg = yellow }, Identifier { fg = Normal.fg }, - Function { fg = hsl(130, 50, 75) }, - Operator { fg = hsl(270, 50, 75) }, - Special { fg = hsl(325, 50, 75) }, - Constant { fg = hsl(185, 50, 75) }, + Function { fg = green }, + Operator { fg = purple }, + Special { fg = hot_pink }, + Constant { fg = cyan }, NonText { fg = Normal.bg.li(10) }, DiffAdd { Function }, DiffDelete { Special }, @@ -32,16 +45,16 @@ local theme = lush(function() MoreMsg { Function, gui = "bold" }, Question { Function, gui = "bold" }, TelescopeSelection { CursorLine }, - WhichKeyFloat { bg = hsl(210, 15, 30) }, - DiagnosticError { fg = hsl(0, 80, 75) }, - DiagnosticWarn { fg = hsl(25, 80, 75) }, - DiagnosticInfo { fg = hsl(195, 80, 75) }, + WhichKeyFloat { bg = hsl(blue.h, 15, 30) }, + DiagnosticError { fg = red }, + DiagnosticWarn { fg = orange }, + DiagnosticInfo { fg = cyan }, Pmenu { bg = Normal.bg.li(20) }, PmenuSel { bg = Normal.bg.li(30) }, - Error { bg = hsl(0, 50, 50), fg = Normal.fg }, + Error { bg = hsl(red.h, 50, 50), fg = Normal.fg }, ErrorMsg { Error }, - MatchParen { bg = hsl(195, 50, 35), fg = Normal.fg }, - SpecialKey { fg = "red" }, + MatchParen { bg = hsl(aquamarine.h, 50, 75), fg = Normal.bg }, + SpecialKey { fg = red }, Directory { Constant }, Title { Operator, gui = "bold" }, Conceal { bg = Normal.bg.li(40).de(30) },