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

View file

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