fix: improve highlight contrast

closes #40
This commit is contained in:
mvllow 2021-12-01 13:07:56 -06:00
commit fe1974e950
2 changed files with 24 additions and 24 deletions

View file

@ -11,9 +11,9 @@ local palette = {
pine = '#31748f',
foam = '#9ccfd8',
iris = '#c4a7e7',
highlight = '#2a2837',
highlight_inactive = '#211f2d',
highlight_overlay = '#3a384a',
highlight_low = '#21202e',
highlight_med = '#403d52',
highlight_high = '#524f67',
none = 'NONE',
}
@ -34,9 +34,9 @@ then
pine = '#286983',
foam = '#56949f',
iris = '#907aa9',
highlight = '#eee9e6',
highlight_inactive = '#f2ede9',
highlight_overlay = '#e4dfde',
highlight_low = '#f4ede8',
highlight_med = '#dfdad9',
highlight_high = '#cecacd',
}
elseif
vim.g.rose_pine_variant == 'moon'
@ -55,9 +55,9 @@ then
pine = '#3e8fb0',
foam = '#9ccfd8',
iris = '#c4a7e7',
highlight = '#312f44',
highlight_inactive = '#2a283d',
highlight_overlay = '#3f3c53',
highlight_low = '#2a283e',
highlight_med = '#44415a',
highlight_high = '#56526E',
}
end

View file

@ -41,12 +41,12 @@ if vim.g.rose_pine_bold_vertical_split_line then
end
theme.base = {
ColorColumn = { bg = p.highlight_overlay },
ColorColumn = { bg = p.highlight_high },
Conceal = { bg = p.none },
-- Cursor = {},
CursorColumn = { bg = p.highlight },
CursorColumn = { bg = p.highlight_med },
-- CursorIM = {},
CursorLine = { bg = p.highlight_inactive },
CursorLine = { bg = p.highlight_low },
CursorLineNr = { fg = p.text },
DarkenedPanel = { bg = p.surface },
DarkenedStatusline = { bg = p.surface },
@ -60,7 +60,7 @@ theme.base = {
FloatBorder = { fg = p.subtle },
FoldColumn = {},
Folded = { fg = p.text, bg = p.surface },
IncSearch = { bg = p.highlight },
IncSearch = { bg = p.highlight_med },
LineNr = { fg = p.inactive },
MatchParen = { fg = p.text, bg = p.overlay },
-- ModeMsg = {},
@ -74,7 +74,7 @@ theme.base = {
PmenuThumb = { bg = p.inactive },
Question = { fg = p.gold },
-- QuickFixLine = {},
Search = { fg = p.iris, bg = p.highlight_overlay },
Search = { fg = p.iris, bg = p.highlight_high },
SpecialKey = { fg = p.foam },
SpellBad = { style = 'undercurl', sp = p.love },
SpellCap = { style = 'undercurl', sp = p.subtle },
@ -90,7 +90,7 @@ theme.base = {
TabLineSel = { fg = p.text, bg = p.inactive },
Title = { fg = p.text },
VertSplit = maybe_bold_vert_split,
Visual = { bg = p.highlight },
Visual = { bg = p.highlight_med },
-- VisualNOS = {},
WarningMsg = { fg = p.gold },
-- Whitespace = {},
@ -199,9 +199,9 @@ theme.base = {
DiagnosticVirtualTextWarn = { fg = groups.warn },
DiagnosticVirtualTextError = { fg = groups.error },
LspReferenceText = { fg = p.rose, bg = p.highlight },
LspReferenceRead = { fg = p.rose, bg = p.highlight },
LspReferenceWrite = { fg = p.rose, bg = p.highlight },
LspReferenceText = { fg = p.rose, bg = p.highlight_med },
LspReferenceRead = { fg = p.rose, bg = p.highlight_med },
LspReferenceWrite = { fg = p.rose, bg = p.highlight_med },
--Lsp color groups for nvim 0.5.x
LspDiagnosticsSignWarning = { link = 'DiagnosticSignWarn' },
@ -379,7 +379,7 @@ theme.plugins = {
NvimTreeFolderIcon = { fg = p.subtle },
NvimTreeFolderName = { fg = p.foam },
NvimTreeImageFile = { fg = p.text },
NvimTreeOpenedFile = { fg = p.text, bg = p.highlight },
NvimTreeOpenedFile = { fg = p.text, bg = p.highlight_med },
NvimTreeOpenedFolderName = { fg = p.foam },
NvimTreeRootFolder = { fg = p.iris },
NvimTreeSpecialFile = { link = 'NvimTreeNormal' },
@ -423,11 +423,11 @@ theme.plugins = {
-- neogit
-- https://github.com/TimUntersberger/neogit
NeogitDiffAddHighlight = { fg = p.foam, bg = p.highlight_overlay },
NeogitDiffDeleteHighlight = { fg = p.love, bg = p.highlight_overlay },
NeogitDiffContextHighlight = { bg = p.highlight },
NeogitHunkHeader = { bg = p.highlight },
NeogitHunkHeaderHighlight = { bg = p.highlight },
NeogitDiffAddhighlight_med = { fg = p.foam, bg = p.highlight_high },
NeogitDiffDeletehighlight_med = { fg = p.love, bg = p.highlight_high },
NeogitDiffContexthighlight_med = { bg = p.highlight_med },
NeogitHunkHeader = { bg = p.highlight_med },
NeogitHunkHeaderhighlight_med = { bg = p.highlight_med },
-- VimWiki
-- https://github.com/vimwiki/vimwiki