feat: add light theme
This commit is contained in:
parent
3bb4ddce87
commit
e98b7209cf
@ -3,6 +3,9 @@ local M = {}
|
|||||||
M.setup = function()
|
M.setup = function()
|
||||||
local config = require('neogruber').config
|
local config = require('neogruber').config
|
||||||
local c = require 'neogruber.palette'
|
local c = require 'neogruber.palette'
|
||||||
|
if config.light then
|
||||||
|
c = require 'neogruber.palette_light'
|
||||||
|
end
|
||||||
|
|
||||||
local groups = {
|
local groups = {
|
||||||
-- int, long, char, etc.
|
-- int, long, char, etc.
|
||||||
@ -90,7 +93,7 @@ M.setup = function()
|
|||||||
htmlH5 = { fg = c.quartz, bold = config.bold },
|
htmlH5 = { fg = c.quartz, bold = config.bold },
|
||||||
|
|
||||||
cssAttributeSelector = { fg = c.light_blue },
|
cssAttributeSelector = { fg = c.light_blue },
|
||||||
cssSelectorOp = { fg = c.niagara1 },
|
cssSelectorOp = { fg = c.niagara_1 },
|
||||||
cssTagName = { fg = c.yellow },
|
cssTagName = { fg = c.yellow },
|
||||||
|
|
||||||
markdownBlockquote = { fg = c.bg6 },
|
markdownBlockquote = { fg = c.bg6 },
|
||||||
@ -158,7 +161,7 @@ M.setup = function()
|
|||||||
-- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set.
|
-- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set.
|
||||||
LineNr = { fg = c.bg3 },
|
LineNr = { fg = c.bg3 },
|
||||||
-- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line.
|
-- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line.
|
||||||
CursorLineNr = { fg = c.yellow },
|
CursorLineNr = { fg = c.yellow, bold = true },
|
||||||
-- The character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt|
|
-- The character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt|
|
||||||
MatchParen = { fg = c.wisteria1, bg = c.none, bold = config.bold, underline = config.underline },
|
MatchParen = { fg = c.wisteria1, bg = c.none, bold = config.bold, underline = config.underline },
|
||||||
-- 'showmode' message (e.g., "-- INSERT -- ")
|
-- 'showmode' message (e.g., "-- INSERT -- ")
|
||||||
@ -317,7 +320,7 @@ M.setup = function()
|
|||||||
['@field'] = { fg = c.niagara },
|
['@field'] = { fg = c.niagara },
|
||||||
['@float'] = { fg = c.quartz },
|
['@float'] = { fg = c.quartz },
|
||||||
['@function'] = { link = 'Function' },
|
['@function'] = { link = 'Function' },
|
||||||
['@function.builtin'] = { fg = c.niagara1 },
|
['@function.builtin'] = { fg = c.niagara_1 },
|
||||||
['@function.macro'] = { fg = c.yellow },
|
['@function.macro'] = { fg = c.yellow },
|
||||||
['@include'] = { fg = c.quartz },
|
['@include'] = { fg = c.quartz },
|
||||||
['@label'] = { fg = c.yellow },
|
['@label'] = { fg = c.yellow },
|
||||||
@ -354,7 +357,7 @@ M.setup = function()
|
|||||||
-- Virtual text "Error"
|
-- Virtual text "Error"
|
||||||
LspDiagnosticsVirtualTextError = { fg = c.red1 },
|
LspDiagnosticsVirtualTextError = { fg = c.red1 },
|
||||||
-- used to underline "Error" diagnostics.
|
-- used to underline "Error" diagnostics.
|
||||||
LspDiagnosticsUnderlineError = {},
|
LspDiagnosticsUnderlineError = { underline = config.underline },
|
||||||
-- used for "Warning" diagnostic signs in sign column
|
-- used for "Warning" diagnostic signs in sign column
|
||||||
LspDiagnosticsDefaultWarning = { fg = c.red_1 },
|
LspDiagnosticsDefaultWarning = { fg = c.red_1 },
|
||||||
-- used for "Warning" diagnostic signs in sign column
|
-- used for "Warning" diagnostic signs in sign column
|
||||||
@ -364,7 +367,7 @@ M.setup = function()
|
|||||||
-- Virtual text "Warning"
|
-- Virtual text "Warning"
|
||||||
LspDiagnosticsVirtualTextWarning = { fg = c.red_1 },
|
LspDiagnosticsVirtualTextWarning = { fg = c.red_1 },
|
||||||
-- used to underline "Warning" diagnostics.
|
-- used to underline "Warning" diagnostics.
|
||||||
LspDiagnosticsUnderlineWarning = {},
|
LspDiagnosticsUnderlineWarning = { underline = config.underline },
|
||||||
-- used for "Information" diagnostic virtual text
|
-- used for "Information" diagnostic virtual text
|
||||||
LspDiagnosticsDefaultInformation = { fg = c.yellow },
|
LspDiagnosticsDefaultInformation = { fg = c.yellow },
|
||||||
-- used for "Information" diagnostic signs in sign column
|
-- used for "Information" diagnostic signs in sign column
|
||||||
@ -374,7 +377,7 @@ M.setup = function()
|
|||||||
-- Virtual text "Information"
|
-- Virtual text "Information"
|
||||||
LspDiagnosticsVirtualTextInformation = { fg = c.yellow },
|
LspDiagnosticsVirtualTextInformation = { fg = c.yellow },
|
||||||
-- used to underline "Information" diagnostics.
|
-- used to underline "Information" diagnostics.
|
||||||
LspDiagnosticsUnderlineInformation = {},
|
LspDiagnosticsUnderlineInformation = { underline = config.underline },
|
||||||
-- used for "Hint" diagnostic virtual text
|
-- used for "Hint" diagnostic virtual text
|
||||||
LspDiagnosticsDefaultHint = { fg = c.wisteria },
|
LspDiagnosticsDefaultHint = { fg = c.wisteria },
|
||||||
-- used for "Hint" diagnostic signs in sign column
|
-- used for "Hint" diagnostic signs in sign column
|
||||||
@ -384,7 +387,7 @@ M.setup = function()
|
|||||||
-- Virtual text "Hint"
|
-- Virtual text "Hint"
|
||||||
LspDiagnosticsVirtualTextHint = { fg = c.wisteria },
|
LspDiagnosticsVirtualTextHint = { fg = c.wisteria },
|
||||||
-- used to underline "Hint" diagnostics.
|
-- used to underline "Hint" diagnostics.
|
||||||
LspDiagnosticsUnderlineHint = {},
|
LspDiagnosticsUnderlineHint = { underline = config.underline },
|
||||||
-- used for highlighting "text" references
|
-- used for highlighting "text" references
|
||||||
LspReferenceText = {},
|
LspReferenceText = {},
|
||||||
-- used for highlighting "read" references
|
-- used for highlighting "read" references
|
||||||
@ -502,7 +505,7 @@ M.setup = function()
|
|||||||
TreesitterContext = { fg = c.none, bg = c.bg1 },
|
TreesitterContext = { fg = c.none, bg = c.bg1 },
|
||||||
|
|
||||||
-- Indent Blankline
|
-- Indent Blankline
|
||||||
IndentBlanklineChar = { fg = c.niagara_2 },
|
IndentBlanklineChar = { fg = c.niagara_1 },
|
||||||
IndentBlanklineSpaceChar = { fg = c.bg5 },
|
IndentBlanklineSpaceChar = { fg = c.bg5 },
|
||||||
IndentBlanklineSpaceCharBlankline = { fg = c.bg5 },
|
IndentBlanklineSpaceCharBlankline = { fg = c.bg5 },
|
||||||
IndentBlanklineContextChar = { fg = c.wisteria1 },
|
IndentBlanklineContextChar = { fg = c.wisteria1 },
|
||||||
|
@ -10,6 +10,7 @@ M.config = {
|
|||||||
-- overrides = {},
|
-- overrides = {},
|
||||||
dim_inactive = false,
|
dim_inactive = false,
|
||||||
transparent = true,
|
transparent = true,
|
||||||
|
light = false,
|
||||||
}
|
}
|
||||||
|
|
||||||
function M.setup(config)
|
function M.setup(config)
|
||||||
|
32
lua/neogruber/palette_light.lua
Normal file
32
lua/neogruber/palette_light.lua
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
return {
|
||||||
|
fg_1 = '#101010',
|
||||||
|
bg_1 = '#d4dfdf',
|
||||||
|
fg = '#181818',
|
||||||
|
bg = '#e4e4ef',
|
||||||
|
fg1 = '#282828',
|
||||||
|
bg1 = '#f4f4ff',
|
||||||
|
fg2 = '#453d41',
|
||||||
|
bg2 = '#f5f5f5',
|
||||||
|
white = '#000000',
|
||||||
|
black = '#ffffff',
|
||||||
|
select = '#4f4f4f',
|
||||||
|
bg3 = '#484848',
|
||||||
|
bg4 = '#52494e',
|
||||||
|
bg5 = '#9998a8',
|
||||||
|
bg6 = '#7d3894',
|
||||||
|
red_1 = '#c73c3f',
|
||||||
|
red = '#f43841',
|
||||||
|
red1 = '#ff4f58',
|
||||||
|
green = '#28BF28',
|
||||||
|
yellow = '#cca300',
|
||||||
|
brown = '#cc8c3c',
|
||||||
|
quartz = '#868c73',
|
||||||
|
niagara_1 = '#565f73',
|
||||||
|
niagara = '#697fb0',
|
||||||
|
wisteria_1 = '#85a0c7',
|
||||||
|
wisteria = '#9e95c7',
|
||||||
|
wisteria1 = '#6e55f6',
|
||||||
|
light_blue = '#0087d7',
|
||||||
|
-- Special
|
||||||
|
none = 'NONE',
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user