BREAKING CHANGE: changed color naming convention

dev
Pocco81 3 years ago
parent 833ff1a98a
commit 97fc192652

@ -7,18 +7,18 @@ function M.get(cp)
BufferCurrentMod = { bg = cp.surface1, fg = cp.yellow },
BufferCurrentSign = { bg = cp.surface1, fg = cp.blue },
BufferCurrentTarget = { bg = cp.surface1, fg = cp.red },
BufferVisible = { bg = cp.base1, fg = cp.text },
BufferVisibleIndex = { bg = cp.base1, fg = cp.blue },
BufferVisibleMod = { bg = cp.base1, fg = cp.yellow },
BufferVisibleSign = { bg = cp.base1, fg = cp.blue },
BufferVisibleTarget = { bg = cp.base1, fg = cp.red },
BufferInactive = { bg = cp.base1, fg = cp.overlay0 },
BufferInactiveIndex = { bg = cp.base1, fg = cp.overlay0 },
BufferInactiveMod = { bg = cp.base1, fg = cp.yellow },
BufferInactiveSign = { bg = cp.base1, fg = cp.blue },
BufferInactiveTarget = { bg = cp.base1, fg = cp.red },
BufferTabpages = { bg = cp.base1, fg = cp.none },
BufferTabpage = { bg = cp.base1, fg = cp.blue },
BufferVisible = { bg = cp.mantle, fg = cp.text },
BufferVisibleIndex = { bg = cp.mantle, fg = cp.blue },
BufferVisibleMod = { bg = cp.mantle, fg = cp.yellow },
BufferVisibleSign = { bg = cp.mantle, fg = cp.blue },
BufferVisibleTarget = { bg = cp.mantle, fg = cp.red },
BufferInactive = { bg = cp.mantle, fg = cp.overlay0 },
BufferInactiveIndex = { bg = cp.mantle, fg = cp.overlay0 },
BufferInactiveMod = { bg = cp.mantle, fg = cp.yellow },
BufferInactiveSign = { bg = cp.mantle, fg = cp.blue },
BufferInactiveTarget = { bg = cp.mantle, fg = cp.red },
BufferTabpages = { bg = cp.mantle, fg = cp.none },
BufferTabpage = { bg = cp.mantle, fg = cp.blue },
}
end

@ -2,17 +2,17 @@ local M = {}
function M.get(cp)
local inactive_bg = cp.base1
local inactive_bg = cp.mantle
return {
BufferLineFill = { bg = cp.base0 },
BufferLineBackground = { fg = cp.text, bg = inactive_bg }, -- others
BufferLineFill = { bg = cp.crust },
BufferLineBackcrust = { fg = cp.text, bg = inactive_bg }, -- others
BufferLineBufferVisible = { fg = cp.surface1, bg = inactive_bg },
BufferLineBufferSelected = { fg = cp.text, bg = cp.base2, style = "bold,italic" }, -- current
BufferLineTab = { fg = cp.surface1, bg = cp.base2 },
BufferLineBufferSelected = { fg = cp.text, bg = cp.base, style = "bold,italic" }, -- current
BufferLineTab = { fg = cp.surface1, bg = cp.base },
BufferLineTabSelected = { fg = cp.red, bg = cp.blue },
BufferLineTabClose = { fg = cp.red, bg = inactive_bg },
BufferLineIndicatorSelected = { fg = cp.peach, bg = cp.base2 },
BufferLineIndicatorSelected = { fg = cp.peach, bg = cp.base },
-- separators
BufferLineSeparator = { fg = inactive_bg, bg = inactive_bg },
BufferLineSeparatorVisible = { fg = inactive_bg, bg = inactive_bg },
@ -20,7 +20,7 @@ function M.get(cp)
-- close buttons
BufferLineCloseButton = { fg = cp.surface1, bg = inactive_bg },
BufferLineCloseButtonVisible = { fg = cp.surface1, bg = inactive_bg },
BufferLineCloseButtonSelected = { fg = cp.red, bg = cp.base2 },
BufferLineCloseButtonSelected = { fg = cp.red, bg = cp.base },
}
end

@ -2,9 +2,9 @@ local M = {}
function M.get(cp)
return {
GitSignsAdd = { fg = cp.green, bg = cnf.transparent_background and cp.none or cp.base2 }, -- diff mode: Added line |diff.txt|
GitSignsChange = { fg = cp.yellow, bg = cnf.transparent_background and cp.none or cp.base2 }, -- diff mode: Changed line |diff.txt|
GitSignsDelete = { fg = cp.red, bg = cnf.transparent_background and cp.none or cp.base2 }, -- diff mode: Deleted line |diff.txt|
GitSignsAdd = { fg = cp.green, bg = cnf.transparent_background and cp.none or cp.base }, -- diff mode: Added line |diff.txt|
GitSignsChange = { fg = cp.yellow, bg = cnf.transparent_background and cp.none or cp.base }, -- diff mode: Changed line |diff.txt|
GitSignsDelete = { fg = cp.red, bg = cnf.transparent_background and cp.none or cp.base }, -- diff mode: Deleted line |diff.txt|
}
end

@ -2,10 +2,10 @@ local M = {}
function M.get(cp)
return {
HopNextKey = { bg = cp.base2, fg = cp.peach, style = "bold,underline" },
HopNextKey1 = { bg = cp.base2, fg = cp.blue, style = "bold" },
HopNextKey2 = { bg = cp.base2, fg = cp.teal, style = "bold,italic" },
HopUnmatched = { bg = cp.base2, fg = cp.overlay0 },
HopNextKey = { bg = cp.base, fg = cp.peach, style = "bold,underline" },
HopNextKey1 = { bg = cp.base, fg = cp.blue, style = "bold" },
HopNextKey2 = { bg = cp.base, fg = cp.teal, style = "bold,italic" },
HopUnmatched = { bg = cp.base, fg = cp.overlay0 },
}
end

@ -32,16 +32,16 @@ function M.get(cp)
LightspeedOverlapped = {bg = cp.surface1, fg = cp.text},
LightspeedLabelDistant = {bg = cp.mauve, fg = cp.text},
LightspeedLabelDistantOverlapped = {bg = cp.mauve, fg = cp.text},
LightspeedShortcut = {bg = cp.base2, fg = cp.peach, style = "italic"},
LightspeedShortcutOverlapped = {bg = cp.base2, fg = cp.peach, style = "bold"},
LightspeedMaskedChar = {bg = cp.base2, fg = cp.red, style = "undercurl"},
LightspeedGreyWash = {bg = cp.base2, fg = cp.overlay0},
LightspeedUnlabeledMatch = {bg = cp.base2, fg = cp.red, style = "underline"},
LightspeedOneCharMatch = {bg = cp.base2, fg = cp.red, style = "underline"},
LightspeedUniqueChar = {bg = cp.base2, fg = cp.green, style = "strikethrough"},
LightspeedPendingOpArea = {bg = cp.base2, fg = cp.green, style = "strikethrough"},
LightspeedPendingChangeOpArea = {bg = cp.base2, fg = cp.green, style = "strikethrough"},
LightspeedCursor = {fg = cp.base2, bg = cp.text},
LightspeedShortcut = {bg = cp.base, fg = cp.peach, style = "italic"},
LightspeedShortcutOverlapped = {bg = cp.base, fg = cp.peach, style = "bold"},
LightspeedMaskedChar = {bg = cp.base, fg = cp.red, style = "undercurl"},
LightspeedGreyWash = {bg = cp.base, fg = cp.overlay0},
LightspeedUnlabeledMatch = {bg = cp.base, fg = cp.red, style = "underline"},
LightspeedOneCharMatch = {bg = cp.base, fg = cp.red, style = "underline"},
LightspeedUniqueChar = {bg = cp.base, fg = cp.green, style = "strikethrough"},
LightspeedPendingOpArea = {bg = cp.base, fg = cp.green, style = "strikethrough"},
LightspeedPendingChangeOpArea = {bg = cp.base, fg = cp.green, style = "strikethrough"},
LightspeedCursor = {fg = cp.base, bg = cp.text},
}
end

@ -6,7 +6,7 @@ function M.get(cp)
DiagnosticWarning = { fg = cp.yellow },
DiagnosticInformation = { fg = cp.blue },
DiagnosticHint = { fg = cp.hint },
LspFloatWinNormal = { bg = cp.base0 },
LspFloatWinNormal = { bg = cp.crust },
LspFloatWinBorder = { fg = cp.blue },
LspSagaBorderTitle = { fg = cp.flamingo },
LspSagaHoverBorder = { fg = cp.blue },

@ -4,7 +4,7 @@ function M.get(cp)
return {
LspTroubleText = { fg = cp.green },
LspTroubleCount = { fg = cp.pink, bg = cp.surface1 },
LspTroubleNormal = { fg = cp.text, bg = cp.base0 },
LspTroubleNormal = { fg = cp.text, bg = cp.crust },
}
end

@ -20,10 +20,10 @@ function M.get(cp)
LspReferenceRead = { bg = cp.surface1 }, -- used for highlighting "read" references
LspReferenceWrite = { bg = cp.surface1 }, -- used for highlighting "write" references
-- hightlight diagnostics in numberline
DiagnosticError = { bg = util.darken(error, darkening_percentage, cp.base2), fg = error, style = virtual_text.errors }, -- Used as the base highlight group. Other Diagnostic highlights link to this by default
DiagnosticWarn = { bg = util.darken(warning, darkening_percentage, cp.base2), fg = warning, style = virtual_text.warnings }, -- Used as the base highlight group. Other Diagnostic highlights link to this by default
DiagnosticInfo = { bg = util.darken(info, darkening_percentage, cp.base2), fg = info, style = virtual_text.information }, -- Used as the base highlight group. Other Diagnostic highlights link to this by default
DiagnosticHint = { bg = util.darken(hint, darkening_percentage, cp.base2), fg = hint, style = virtual_text.hints }, -- Used as the base highlight group. Other Diagnostic highlights link to this by default
DiagnosticError = { bg = util.darken(error, darkening_percentage, cp.base), fg = error, style = virtual_text.errors }, -- Used as the mantle highlight group. Other Diagnostic highlights link to this by default
DiagnosticWarn = { bg = util.darken(warning, darkening_percentage, cp.base), fg = warning, style = virtual_text.warnings }, -- Used as the mantle highlight group. Other Diagnostic highlights link to this by default
DiagnosticInfo = { bg = util.darken(info, darkening_percentage, cp.base), fg = info, style = virtual_text.information }, -- Used as the mantle highlight group. Other Diagnostic highlights link to this by default
DiagnosticHint = { bg = util.darken(hint, darkening_percentage, cp.base), fg = hint, style = virtual_text.hints }, -- Used as the mantle highlight group. Other Diagnostic highlights link to this by default
-- util.
-- for nvim nightly
@ -32,10 +32,10 @@ function M.get(cp)
DiagnosticUnderlineInfo = { style = underlines.information, sp = info },
DiagnosticUnderlineHint = { style = underlines.hints, sp = hint },
LspDiagnosticsDefaultError = { fg = error }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsDefaultWarning = { fg = warning }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsDefaultInformation = { fg = info }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsDefaultHint = { fg = hint }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsDefaultError = { fg = error }, -- Used as the mantle highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsDefaultWarning = { fg = warning }, -- Used as the mantle highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsDefaultInformation = { fg = info }, -- Used as the mantle highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsDefaultHint = { fg = hint }, -- Used as the mantle highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspSignatureActiveParameter = { fg = cp.peach },
-- LspDiagnosticsFloatingError = { }, -- Used to color "Error" diagnostic messages in diagnostics float
-- LspDiagnosticsFloatingWarning = { }, -- Used to color "Warning" diagnostic messages in diagnostics float

@ -5,10 +5,10 @@ function M.get(cp)
NeogitBranch = { fg = cp.pink },
NeogitRemote = { fg = cp.pink },
NeogitHunkHeader = { bg = cp.blue, fg = cp.text },
NeogitHunkHeaderHighlight = { bg = cp.base2, fg = cp.blue },
NeogitDiffContextHighlight = { bg = cp.base1, fg = cp.overlay2 },
NeogitDiffDeleteHighlight = { bg = cp.base1, fg = cp.red },
NeogitDiffAddHighlight = { bg = cp.base1, fg = cp.green },
NeogitHunkHeaderHighlight = { bg = cp.base, fg = cp.blue },
NeogitDiffContextHighlight = { bg = cp.mantle, fg = cp.overlay2 },
NeogitDiffDeleteHighlight = { bg = cp.mantle, fg = cp.red },
NeogitDiffAddHighlight = { bg = cp.mantle, fg = cp.green },
}
end

@ -13,7 +13,7 @@ function M.get(cp)
return {
NeoTreeDirectoryName = { fg = cp.blue },
NeoTreeDirectoryIcon = { fg = cp.blue },
NeoTreeNormal = { fg = cp.text, bg = neotree.transparent_panel and "NONE" or cp.base1 },
NeoTreeNormal = { fg = cp.text, bg = neotree.transparent_panel and "NONE" or cp.mantle },
NeoTreeIndentMarker = { fg = cp.overlay0 },
NeoTreeRootName = { fg = root_dir_color, style = "bold" },
NeoTreeSymbolicLinkTarget = { fg = cp.pink },

@ -4,7 +4,7 @@ function M.get(cp)
local config = require("catppuccin.config").options
local nvimtree = config.integrations.nvimtree
local root_dir_color = cp.base1
local root_dir_color = cp.mantle
if nvimtree.show_root == true then
root_dir_color = cp.blue
end
@ -13,14 +13,14 @@ function M.get(cp)
return {
NvimTreeFolderName = { fg = cp.blue },
NvimTreeFolderIcon = { fg = cp.blue },
NvimTreeNormal = { fg = cp.text, bg = nvimtree.transparent_panel and "NONE" or cp.base1 },
NvimTreeNormal = { fg = cp.text, bg = nvimtree.transparent_panel and "NONE" or cp.mantle },
NvimTreeOpenedFolderName = { fg = cp.blue },
NvimTreeEmptyFolderName = { fg = cp.blue },
NvimTreeIndentMarker = { fg = cp.overlay0 },
NvimTreeVertSplit = { fg = cp.base2, bg = cp.base2 },
NvimTreeVertSplit = { fg = cp.base, bg = cp.base },
NvimTreeRootFolder = { fg = root_dir_color, style = "bold" },
NvimTreeSymlink = { fg = cp.pink },
NvimTreeStatuslineNc = { fg = cp.base1, bg = cp.base1 },
NvimTreeStatuslineNc = { fg = cp.mantle, bg = cp.mantle },
NvimTreeGitDirty = { fg = cp.yellow },
NvimTreeGitNew = { fg = cp.blue },
NvimTreeGitDeleted = { fg = cp.red },

@ -2,7 +2,7 @@ local M = {}
function M.get(cp)
return {
FocusedSymbol = { fg = cp.yellow, bg = cp.base2 },
FocusedSymbol = { fg = cp.yellow, bg = cp.base },
}
end

@ -50,9 +50,9 @@ function M.get(cp)
-- TSAttribute = { }; -- (unstable) TODO: docs
-- TSCharacter = { }; -- For characters.
-- TSoverlay0 = { }; -- For overlay0 blocks.
TSNote = { fg = cp.base2, bg = cp.blue },
TSWarning = { fg = cp.base2, bg = cp.yellow },
TSDanger = { fg = cp.base2, bg = cp.red },
TSNote = { fg = cp.base, bg = cp.blue },
TSWarning = { fg = cp.base, bg = cp.yellow },
TSDanger = { fg = cp.base, bg = cp.red },
TSConstMacro = { fg = cp.mauve }; -- For constants that are defined by macros: NULL in cp.
-- TSError = { fg = cp.red }, -- For syntax/parser errors.
-- rustTSField = { fg = cp.surface1 }, -- For fields.

@ -2,7 +2,7 @@ local M = {}
function M.get(cp)
local transparent_background = require("catppuccin.config").options.transparent_background
local bg_highlight = transparent_background and "NONE" or cp.base2
local bg_highlight = transparent_background and "NONE" or cp.base
return {
rainbowcol1 = {bg = bg_highlight, fg = cp.red},
rainbowcol2 = {bg = bg_highlight, fg = cp.teal},

@ -7,7 +7,7 @@ function M.get(cp)
WhichKeyDesc = { fg = cp.pink },
WhichKeySeperator = { fg = cp.overlay0 },
WhichKeySeparator = { fg = cp.overlay0 },
WhichKeyFloat = { bg = cp.base0 },
WhichKeyFloat = { bg = cp.crust },
WhichKeyValue = { fg = cp.overlay0 },
}
end

@ -10,7 +10,7 @@ local function get_properties()
background = "dark",
}
if colors_util.assert_brightness(cp.base2) then
if colors_util.assert_brightness(cp.base) then
props["background"] = "light"
end
@ -24,21 +24,21 @@ local function get_base()
Comment = { fg = cp.surface2, style = cnf.styles.comments }, -- just comments
ColorColumn = { bg = cp.surface0 }, -- used for the columns set with 'colorcolumn'
Conceal = { fg = cp.overlay1 }, -- placeholder characters substituted for concealed text (see 'conceallevel')
Cursor = { fg = cp.base2, bg = cp.text }, -- character under the cursor
lCursor = { fg = cp.base2, bg = cp.text }, -- the character under the cursor when |language-mapping| is used (see 'guicursor')
CursorIM = { fg = cp.base2, bg = cp.text }, -- like Cursor, but used when in IME mode |CursorIM|
CursorColumn = { bg = cp.base1 }, -- Screen-column at the cursor, when 'cursorcolumn' is secp.
CursorLine = { bg = colors_util.vary_color({latte = util.lighten(cp.base1, 0.70, cp.base2)}, util.darken(cp.surface0, 0.64, cp.base2)) }, -- Screen-line at the cursor, when 'cursorline' is secp. Low-priority if foreground (ctermfg OR guifg) is not secp.
Cursor = { fg = cp.base, bg = cp.text }, -- character under the cursor
lCursor = { fg = cp.base, bg = cp.text }, -- the character under the cursor when |language-mapping| is used (see 'guicursor')
CursorIM = { fg = cp.base, bg = cp.text }, -- like Cursor, but used when in IME mode |CursorIM|
CursorColumn = { bg = cp.mantle }, -- Screen-column at the cursor, when 'cursorcolumn' is secp.
CursorLine = { bg = colors_util.vary_color({latte = util.lighten(cp.mantle, 0.70, cp.base)}, util.darken(cp.surface0, 0.64, cp.base)) }, -- Screen-line at the cursor, when 'cursorline' is secp. Low-priority if forecrust (ctermfg OR guifg) is not secp.
Directory = { fg = cp.blue }, -- directory names (and other special names in listings)
EndOfBuffer = { fg = cp.base2 }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.
EndOfBuffer = { fg = cp.base }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.
ErrorMsg = { fg = cp.red, style = "bold,italic" }, -- error messages on the command line
VertSplit = { fg = cp.base0 }, -- the column separating vertically split windows
VertSplit = { fg = cp.crust }, -- the column separating vertically split windows
Folded = { fg = cp.blue, bg = cp.surface1 }, -- line used for closed folds
FoldColumn = { bg = cp.base2, fg = cp.overlay0 }, -- 'foldcolumn'
SignColumn = { bg = cnf.transparent_background and cp.none or cp.base2, fg = cp.surface1 }, -- column where |signs| are displayed
SignColumnSB = { bg = cp.base0, fg = cp.surface1 }, -- column where |signs| are displayed
FoldColumn = { bg = cp.base, fg = cp.overlay0 }, -- 'foldcolumn'
SignColumn = { bg = cnf.transparent_background and cp.none or cp.base, fg = cp.surface1 }, -- column where |signs| are displayed
SignColumnSB = { bg = cp.crust, fg = cp.surface1 }, -- column where |signs| are displayed
Substitute = { bg = cp.surface1, fg = cp.pink }, -- |:substitute| replacement text highlighting
LineNr = { fg = colors_util.vary_color({latte = cp.base0}, cp.surface1) }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is secp.
LineNr = { fg = cp.surface1 }, -- colors_util.vary_color({latte = cp.crust}, cp.surface1) }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is secp.
CursorLineNr = { fg = cp.lavender }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line. highlights the number in numberline.
MatchParen = { fg = cp.peach, style = "bold" }, -- The character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt|
ModeMsg = { fg = cp.text, style = "bold" }, -- 'showmode' message (e.g., "-- INSERT -- ")
@ -46,10 +46,10 @@ local function get_base()
MsgSeparator = {}, -- Separator for scrolled messages, `msgsep` flag of 'display'
MoreMsg = { fg = cp.blue }, -- |more-prompt|
NonText = { fg = cp.overlay0 }, -- '@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., ">" displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|.
Normal = { fg = cp.text, bg = cnf.transparent_background and cp.none or cp.base2 }, -- normal text
NormalNC = { fg = cp.text, bg = cnf.transparent_background and cp.none or cp.base2 }, -- normal text in non-current windows
NormalSB = { fg = cp.text, bg = cp.base0 }, -- normal text in non-current windows
NormalFloat = { fg = cp.text, bg = cp.base1 }, -- Normal text in floating windows.
Normal = { fg = cp.text, bg = cnf.transparent_background and cp.none or cp.base }, -- normal text
NormalNC = { fg = cp.text, bg = cnf.transparent_background and cp.none or cp.base }, -- normal text in non-current windows
NormalSB = { fg = cp.text, bg = cp.crust }, -- normal text in non-current windows
NormalFloat = { fg = cp.text, bg = cp.mantle }, -- Normal text in floating windows.
FloatBorder = { fg = cp.blue },
Pmenu = { bg = cp.surface0, fg = cp.overlay2 }, -- Popup menu: normal item.
PmenuSel = { fg = cp.text, bg = cp.surface1, style = "bold" }, -- Popup menu: selected item.
@ -64,9 +64,9 @@ local function get_base()
SpellCap = { sp = cp.yellow, style = "undercurl" }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise.
SpellLocal = { sp = cp.blue, style = "undercurl" }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise.
SpellRare = { sp = cp.green, style = "undercurl" }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise.
StatusLine = { fg = cp.text, bg = cp.base1 }, -- status line of current window
StatusLineNC = { fg = cp.surface1, bg = cp.base1 }, -- status lines of not-current windows Note: if this is equal to "StatusLine" Vim will use "^^^" in the status line of the current window.
TabLine = { bg = cp.base1, fg = cp.surface1 }, -- tab pages line, not active tab page label
StatusLine = { fg = cp.text, bg = cp.mantle }, -- status line of current window
StatusLineNC = { fg = cp.surface1, bg = cp.mantle }, -- status lines of not-current windows Note: if this is equal to "StatusLine" Vim will use "^^^" in the status line of the current window.
TabLine = { bg = cp.mantle, fg = cp.surface1 }, -- tab pages line, not active tab page label
TabLineFill = { bg = cp.black }, -- tab pages line, where there are no labels
TabLineSel = { fg = cp.green, bg = cp.surface1 }, -- tab pages line, active tab page label
Title = { fg = cp.blue, style = "bold" }, -- titles for output from ":set all", ":autocmd" etcp.
@ -123,21 +123,21 @@ local function get_base()
-- Ignore = { }, -- (preferred) left blank, hidden |hl-Ignore|
Error = { fg = cp.red }, -- (preferred) any erroneous construct
Todo = { bg = cp.yellow, fg = cp.base2, style = "bold" }, -- (preferred) anything that needs extra attention; mostly the keywords TODO FIXME and XXX
Todo = { bg = cp.yellow, fg = cp.base, style = "bold" }, -- (preferred) anything that needs extra attention; mostly the keywords TODO FIXME and XXX
qfLineNr = { fg = cp.yellow },
qfFileName = { fg = cp.blue },
htmlH1 = { fg = cp.pink, style = "bold" },
htmlH2 = { fg = cp.blue, style = "bold" },
-- mkdHeading = { fg = cp.peach, style = "bold" },
-- mkdCode = { bg = cp.terminal_black, fg = cp.text },
mkdCodeDelimiter = { bg = cp.base2, fg = cp.text },
mkdCodeDelimiter = { bg = cp.base, fg = cp.text },
mkdCodeStart = { fg = cp.flamingo, style = "bold" },
mkdCodeEnd = { fg = cp.flamingo, style = "bold" },
-- mkdLink = { fg = cp.blue, style = "underline" },
-- debugging
debugPC = { bg = cp.base0 }, -- used for highlighting the current line in terminal-debug
debugBreakpoint = { bg = cp.base2, fg = cp.overlay0 }, -- used for breakpoint colors in terminal-debug
debugPC = { bg = cp.crust }, -- used for highlighting the current line in terminal-debug
debugBreakpoint = { bg = cp.base, fg = cp.overlay0 }, -- used for breakpoint colors in terminal-debug
-- illuminate
illuminatedWord = { bg = cp.surface1 },
illuminatedCurWord = { bg = cp.surface1 },
@ -150,10 +150,10 @@ local function get_base()
diffFile = { fg = cp.blue },
diffLine = { fg = cp.overlay0 },
diffIndexLine = { fg = cp.pink },
DiffAdd = { fg = cp.green, bg = cp.base2 }, -- diff mode: Added line |diff.txt|
DiffChange = { fg = cp.yellow, bg = cp.base2 }, -- diff mode: Changed line |diff.txt|
DiffDelete = { fg = cp.red, bg = cp.base2 }, -- diff mode: Deleted line |diff.txt|
DiffText = { fg = cp.blue, bg = cp.base2 }, -- diff mode: Changed text within a changed line |diff.txt|
DiffAdd = { fg = cp.green, bg = cp.base }, -- diff mode: Added line |diff.txt|
DiffChange = { fg = cp.yellow, bg = cp.base }, -- diff mode: Changed line |diff.txt|
DiffDelete = { fg = cp.red, bg = cp.base }, -- diff mode: Deleted line |diff.txt|
DiffText = { fg = cp.blue, bg = cp.base }, -- diff mode: Changed text within a changed line |diff.txt|
-- NeoVim
healthError = { fg = cp.red },
healthSuccess = { fg = cp.teal },

@ -22,12 +22,14 @@ local color_palette = {
overlay2 = "#B1B8D7",
overlay1 = "#9BA2BF",
overlay0 = "#868CA7",
surface2 = "#707590",
surface1 = "#5B5F78",
surface0 = "#454960",
base2 = "#303348",
base1 = "#252737",
base0 = "#181A25",
surface2 = "#70768E",
surface1 = "#5B6076",
surface0 = "#454A5E",
crust = "#232634",
mantle = "#292C3C",
base = "#303446",
}
return color_palette

@ -18,16 +18,18 @@ local color_palette = {
blue = "#2A6EF5",
sapphire = "#209FB5",
lavender = "#7287FD",
text = "#575279",
overlay2 = "#696487",
overlay1 = "#7B7794",
overlay0 = "#8E89A2",
surface2 = "#A09BAF",
surface1 = "#B2AEBD",
base0 = "#C4C0CA",
surface0 = "#D7D2D8",
base1 = "#E9E5E5",
base2 = "#FBF7F3",
text = "#4C4F69",
overlay2 = "#60627B",
overlay1 = "#71738A",
overlay0 = "#838599",
surface2 = "#9497A8",
surface1 = "#A6A8B8",
surface0 = "#B7BAC7",
crust = "#C9CCD6",
mantle = "#DADDE5",
base = "#EFF1F5",
}
return color_palette

@ -25,9 +25,10 @@ local color_palette = {
surface2 = "#696F8A",
surface1 = "#52576F",
surface0 = "#3B3F55",
base2 = "#24273A",
base1 = "#181926",
base0 = "#0C0D13",
crust = "#181926",
mantle = "#1E2030",
base = "#24273A",
}
return color_palette

@ -18,6 +18,7 @@ local color_palette = {
blue = "#90C1FB",
sapphire = "#74C7EC",
lavender = "#B4BEFE",
text = "#C6D0F5",
overlay2 = "#AEB7D9",
overlay1 = "#969DBC",
@ -25,9 +26,10 @@ local color_palette = {
surface2 = "#666A83",
surface1 = "#4E5167",
surface0 = "#36374A",
base2 = "#1E1E2E",
base1 = "#12121C",
base0 = "#07070A",
crust = "#11111B",
mantle = "#181825",
base = "#1E1E2E",
}
return color_palette

@ -21,7 +21,7 @@ local hex_to_rgb = function(hex_str)
return { tonumber(red, 16), tonumber(green, 16), tonumber(blue, 16) }
end
---@param fg string foreground color
---@param fg string forecrust color
---@param bg string background color
---@param alpha number number between 0 and 1. 0 results in bg, 1 results in fg
function util.blend(fg, bg, alpha)

@ -2,36 +2,36 @@ local cp = require("catppuccin.core.color_palette")
local catppuccin = {}
catppuccin.normal = {
left = { { cp.base1, cp.blue }, { cp.blue, cp.base2 } },
left = { { cp.mantle, cp.blue }, { cp.blue, cp.base } },
middle = { { cp.blue, cp.surface1 } },
right = { { cp.overlay0, cp.base2 }, { cp.blue, cp.surface0 } },
error = { { cp.base1, cp.red } },
warning = { { cp.base1, cp.yellow } },
right = { { cp.overlay0, cp.base }, { cp.blue, cp.surface0 } },
error = { { cp.mantle, cp.red } },
warning = { { cp.mantle, cp.yellow } },
}
catppuccin.insert = {
left = { { cp.base1, cp.teal }, { cp.blue, cp.base2 } },
left = { { cp.mantle, cp.teal }, { cp.blue, cp.base } },
}
catppuccin.visual = {
left = { { cp.base1, cp.mauve }, { cp.blue, cp.base2 } },
left = { { cp.mantle, cp.mauve }, { cp.blue, cp.base } },
}
catppuccin.replace = {
left = { { cp.base1, cp.red }, { cp.blue, cp.base2 } },
left = { { cp.mantle, cp.red }, { cp.blue, cp.base } },
}
catppuccin.inactive = {
left = { { cp.blue, cp.base2 }, { cp.overlay0, cp.base2 } },
middle = { { cp.surface1, cp.base2 } },
right = { { cp.surface1, cp.base2 }, { cp.overlay0, cp.base2 } },
left = { { cp.blue, cp.base }, { cp.overlay0, cp.base } },
middle = { { cp.surface1, cp.base } },
right = { { cp.surface1, cp.base }, { cp.overlay0, cp.base } },
}
catppuccin.tabline = {
left = { { cp.overlay0, cp.base2 }, { cp.overlay0, cp.base2 } },
middle = { { cp.surface1, cp.base2 } },
right = { { cp.surface1, cp.base2 }, { cp.overlay0, cp.base2 } },
tabsel = { { cp.blue, cp.surface1 }, { cp.overlay0, cp.base2 } },
left = { { cp.overlay0, cp.base }, { cp.overlay0, cp.base } },
middle = { { cp.surface1, cp.base } },
right = { { cp.surface1, cp.base }, { cp.overlay0, cp.base } },
tabsel = { { cp.blue, cp.surface1 }, { cp.overlay0, cp.base } },
}
return catppuccin

@ -2,35 +2,35 @@ local cp = require("catppuccin.core.color_palette")
local catppuccin = {}
catppuccin.normal = {
a = { bg = cp.blue, fg = cp.base1, gui = "bold" },
a = { bg = cp.blue, fg = cp.mantle, gui = "bold" },
b = { bg = cp.surface1, fg = cp.blue },
c = { bg = cp.base1, fg = cp.text },
c = { bg = cp.mantle, fg = cp.text },
}
catppuccin.insert = {
a = { bg = cp.green, fg = cp.base2, gui = "bold" },
a = { bg = cp.green, fg = cp.base, gui = "bold" },
b = { bg = cp.surface1, fg = cp.teal },
}
catppuccin.command = {
a = { bg = cp.peach, fg = cp.base2, gui = "bold" },
a = { bg = cp.peach, fg = cp.base, gui = "bold" },
b = { bg = cp.surface1, fg = cp.peach },
}
catppuccin.visual = {
a = { bg = cp.mauve, fg = cp.base2, gui = "bold" },
a = { bg = cp.mauve, fg = cp.base, gui = "bold" },
b = { bg = cp.surface1, fg = cp.mauve },
}
catppuccin.replace = {
a = { bg = cp.red, fg = cp.base2, gui = "bold" },
a = { bg = cp.red, fg = cp.base, gui = "bold" },
b = { bg = cp.surface1, fg = cp.red },
}
catppuccin.inactive = {
a = { bg = cp.base1, fg = cp.blue },
b = { bg = cp.base1, fg = cp.surface1, gui = "bold" },
c = { bg = cp.base1, fg = cp.overlay0 },
a = { bg = cp.mantle, fg = cp.blue },
b = { bg = cp.mantle, fg = cp.surface1, gui = "bold" },
c = { bg = cp.mantle, fg = cp.overlay0 },
}
return catppuccin

Loading…
Cancel
Save