From 0a88180cce8387e1998df8239e067585a21e55b2 Mon Sep 17 00:00:00 2001 From: Harivansh Rathi Date: Sat, 11 Apr 2026 20:45:08 -0400 Subject: [PATCH] chore: update light mode colors --- lua/cozybox.lua | 78 +++++++++++-------------------------------- lua/cozybox/light.lua | 6 +++- 2 files changed, 25 insertions(+), 59 deletions(-) diff --git a/lua/cozybox.lua b/lua/cozybox.lua index 4c486d8..100481c 100644 --- a/lua/cozybox.lua +++ b/lua/cozybox.lua @@ -225,13 +225,13 @@ local function get_colors() fg2 = p.dark2, fg3 = p.dark3, fg4 = p.dark4, - red = p.bright_red, - green = p.bright_green, - yellow = p.bright_yellow, - blue = p.bright_blue, - purple = p.bright_purple, - aqua = p.bright_aqua, - orange = p.bright_orange, + red = p.faded_red, + green = p.faded_green, + yellow = p.faded_yellow, + blue = p.faded_blue, + purple = p.faded_purple, + aqua = p.faded_aqua, + orange = p.faded_orange, neutral_red = p.neutral_red, neutral_green = p.neutral_green, neutral_yellow = p.neutral_yellow, @@ -383,7 +383,7 @@ local function get_groups() Repeat = { link = "CozyboxRed" }, Label = { link = "CozyboxRed" }, Exception = { link = "CozyboxRed" }, - Operator = { fg = colors.fg3, italic = config.italic.operators }, + Operator = { fg = colors.fg1, italic = config.italic.operators }, Keyword = { link = "CozyboxRed" }, Identifier = { link = "CozyboxBlue" }, Function = { link = "CozyboxGreenBold" }, @@ -459,7 +459,7 @@ local function get_groups() NvimTreeFolderIcon = { fg = colors.neutral_blue, bold = true }, NvimTreeFileIcon = { fg = colors.light2 }, NvimTreeExecFile = { fg = colors.neutral_green, bold = true }, - NvimTreeOpenedFile = { fg = colors.bright_red, bold = true }, + NvimTreeOpenedFile = { fg = colors.red, bold = true }, NvimTreeSpecialFile = { fg = colors.neutral_yellow, bold = true, underline = true }, NvimTreeImageFile = { fg = colors.neutral_purple }, NvimTreeIndentMarker = { fg = colors.dark3 }, @@ -697,8 +697,8 @@ local function get_groups() NavicIconsEvent = { link = "CozyboxYellow" }, NavicIconsOperator = { link = "CozyboxRed" }, NavicIconsTypeParameter = { link = "CozyboxRed" }, - NavicText = { link = "CozyboxWhite" }, - NavicSeparator = { link = "CozyboxWhite" }, + NavicText = { link = "CozyboxFg1" }, + NavicSeparator = { link = "CozyboxFg1" }, htmlTag = { link = "CozyboxAquaBold" }, htmlEndTag = { link = "CozyboxAquaBold" }, htmlTagName = { link = "CozyboxBlue" }, @@ -1231,8 +1231,6 @@ local function get_groups() NeoTreeDirectoryName = { link = "CozyboxGreenBold" }, ["@comment"] = { link = "Comment" }, ["@none"] = { bg = "NONE", fg = "NONE" }, - ["@preproc"] = { link = "PreProc" }, - ["@define"] = { link = "Define" }, ["@operator"] = { link = "Operator" }, ["@punctuation.delimiter"] = { link = "Delimiter" }, ["@punctuation.bracket"] = { link = "Delimiter" }, @@ -1250,17 +1248,13 @@ local function get_groups() ["@boolean"] = { link = "Boolean" }, ["@number"] = { link = "Number" }, ["@number.float"] = { link = "Float" }, - ["@float"] = { link = "Float" }, ["@function"] = { link = "Function" }, ["@function.builtin"] = { link = "Special" }, - ["@function.call"] = { link = "CozyboxBlueBold" }, + ["@function.call"] = { link = "Function" }, ["@function.macro"] = { link = "Macro" }, ["@function.method"] = { link = "Function" }, - ["@function.method.call"] = { link = "CozyboxBlueBold" }, - ["@method"] = { link = "Function" }, - ["@method.call"] = { link = "CozyboxBlueBold" }, + ["@function.method.call"] = { link = "Function" }, ["@constructor"] = { link = "Special" }, - ["@parameter"] = { link = "CozyboxFg1" }, ["@keyword"] = { link = "Keyword" }, ["@keyword.conditional"] = { link = "Conditional" }, ["@keyword.debug"] = { link = "Debug" }, @@ -1273,19 +1267,12 @@ local function get_groups() ["@keyword.repeat"] = { link = "Repeat" }, ["@keyword.return"] = { link = "Keyword" }, ["@keyword.storage"] = { link = "StorageClass" }, - ["@conditional"] = { link = "Conditional" }, - ["@repeat"] = { link = "Repeat" }, - ["@debug"] = { link = "Debug" }, ["@label"] = { link = "Label" }, - ["@include"] = { link = "Include" }, - ["@exception"] = { link = "Exception" }, ["@type"] = { link = "Type" }, ["@type.builtin"] = { link = "Type" }, ["@type.definition"] = { link = "Typedef" }, ["@type.qualifier"] = { link = "Type" }, - ["@storageclass"] = { link = "StorageClass" }, ["@attribute"] = { link = "PreProc" }, - ["@field"] = { link = "Identifier" }, ["@property"] = { link = "Identifier" }, ["@variable"] = { link = "CozyboxFg1" }, ["@variable.builtin"] = { link = "Special" }, @@ -1296,7 +1283,7 @@ local function get_groups() ["@constant.macro"] = { link = "Define" }, ["@markup"] = { link = "CozyboxFg1" }, ["@markup.strong"] = { bold = config.bold }, - ["@markup.italic"] = { link = "@text.emphasis" }, + ["@markup.italic"] = { italic = config.italic.emphasis }, ["@markup.underline"] = { underline = config.underline }, ["@markup.strikethrough"] = { strikethrough = config.strikethrough }, ["@markup.heading"] = { link = "Title" }, @@ -1317,49 +1304,24 @@ local function get_groups() ["@diff.minus"] = { link = "diffRemoved" }, ["@diff.delta"] = { link = "diffChanged" }, ["@module"] = { link = "CozyboxFg1" }, - ["@namespace"] = { link = "CozyboxFg1" }, ["@symbol"] = { link = "Identifier" }, - ["@text"] = { link = "CozyboxFg1" }, - ["@text.strong"] = { bold = config.bold }, - ["@text.emphasis"] = { italic = config.italic.emphasis }, - ["@text.underline"] = { underline = config.underline }, - ["@text.strike"] = { strikethrough = config.strikethrough }, - ["@text.title"] = { link = "Title" }, - ["@text.literal"] = { link = "String" }, - ["@text.uri"] = { link = "Underlined" }, - ["@text.math"] = { link = "Special" }, - ["@text.environment"] = { link = "Macro" }, - ["@text.environment.name"] = { link = "Type" }, - ["@text.reference"] = { link = "Constant" }, - ["@text.todo"] = { link = "Todo" }, - ["@text.todo.checked"] = { link = "CozyboxGreen" }, - ["@text.todo.unchecked"] = { link = "CozyboxGray" }, - ["@text.note"] = { link = "SpecialComment" }, - ["@text.note.comment"] = { fg = colors.purple, bold = config.bold }, - ["@text.warning"] = { link = "WarningMsg" }, - ["@text.danger"] = { link = "ErrorMsg" }, - ["@text.danger.comment"] = { fg = colors.fg0, bg = colors.red, bold = config.bold }, - ["@text.diff.add"] = { link = "diffAdded" }, - ["@text.diff.delete"] = { link = "diffRemoved" }, ["@tag"] = { link = "Tag" }, ["@tag.attribute"] = { link = "Identifier" }, ["@tag.delimiter"] = { link = "Delimiter" }, ["@punctuation"] = { link = "Delimiter" }, - ["@macro"] = { link = "Macro" }, - ["@structure"] = { link = "Structure" }, ["@lsp.type.class"] = { link = "@type" }, ["@lsp.type.comment"] = { link = "@comment" }, - ["@lsp.type.decorator"] = { link = "@macro" }, + ["@lsp.type.decorator"] = { link = "@function.macro" }, ["@lsp.type.enum"] = { link = "@type" }, ["@lsp.type.enumMember"] = { link = "@constant" }, ["@lsp.type.function"] = { link = "@function" }, ["@lsp.type.interface"] = { link = "@constructor" }, - ["@lsp.type.macro"] = { link = "@macro" }, - ["@lsp.type.method"] = { link = "@method" }, + ["@lsp.type.macro"] = { link = "@function.macro" }, + ["@lsp.type.method"] = { link = "@function.method" }, ["@lsp.type.modifier.java"] = { link = "@keyword.type.java" }, - ["@lsp.type.namespace"] = { link = "@namespace" }, - ["@lsp.type.parameter"] = { link = "@parameter" }, - ["@lsp.type.parameter.typescript"] = { link = "@parameter" }, + ["@lsp.type.namespace"] = { link = "@module" }, + ["@lsp.type.parameter"] = { link = "@variable.parameter" }, + ["@lsp.type.parameter.typescript"] = { link = "@variable.parameter" }, ["@lsp.type.property"] = { link = "@property" }, ["@lsp.type.property.lua"] = { link = "@property" }, ["@lsp.type.struct"] = { link = "@type" }, diff --git a/lua/cozybox/light.lua b/lua/cozybox/light.lua index bf99432..b470e97 100644 --- a/lua/cozybox/light.lua +++ b/lua/cozybox/light.lua @@ -14,7 +14,11 @@ return { neutral_blue = "#3c7678", faded_red = "#c5524a", faded_green = "#427b58", + faded_yellow = "#b57614", faded_blue = "#4261a5", + faded_purple = "#8f3f71", + faded_aqua = "#3c7678", + faded_orange = "#af3a03", dark_red = "#ff717b", dark_red_soft = "#ff7076", dark_red_hard = "#ff6675", @@ -26,7 +30,7 @@ return { SignColumn = { bg = background }, StatusLine = { bg = background }, StatusLineNC = { bg = background }, - GitSignsAdd = { fg = "#a9b665", bg = background }, + GitSignsAdd = { fg = "#427b58", bg = background }, GitSignsChange = { fg = "#d8a657", bg = background }, GitSignsDelete = { fg = "#923f3a", bg = background }, GitSignsTopdelete = { fg = "#923f3a", bg = background },