Skip to content

Commit

Permalink
fix(headlines): reduce brightness of markdown header bg
Browse files Browse the repository at this point in the history
  • Loading branch information
sho-87 committed Jul 16, 2024
1 parent 3f240b5 commit 341adbe
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions lua/kanagawa-paper/highlights/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ local M = {}
---@param opts? KanagawaConfig
function M.setup(colors, opts)
opts = opts or require("kanagawa-paper.config").options

local color = require("kanagawa-paper.lib.color")
local theme = colors.theme
local palette = colors.palette

Expand Down Expand Up @@ -237,12 +239,12 @@ function M.setup(colors, opts)
TroublePos = { fg = theme.ui.special },

-- Headlines
Headline1 = { bg = theme.rainbow.rainbow1, fg = theme.ui.fg, bold = true },
Headline2 = { bg = theme.rainbow.rainbow2, fg = theme.ui.fg, bold = true },
Headline3 = { bg = theme.rainbow.rainbow3, fg = theme.ui.fg, bold = true },
Headline4 = { bg = theme.rainbow.rainbow4, fg = theme.ui.fg, bold = true },
Headline5 = { bg = theme.rainbow.rainbow5, fg = theme.ui.fg, bold = true },
Headline6 = { bg = theme.rainbow.rainbow6, fg = theme.ui.fg, bold = true },
Headline1 = { bg = tostring(color(theme.rainbow.rainbow1):brighten(-0.4)), fg = theme.ui.fg_dark, bold = true },
Headline2 = { bg = tostring(color(theme.rainbow.rainbow2):brighten(-0.4)), fg = theme.ui.fg_dark, bold = true },
Headline3 = { bg = tostring(color(theme.rainbow.rainbow3):brighten(-0.4)), fg = theme.ui.fg_dark, bold = true },
Headline4 = { bg = tostring(color(theme.rainbow.rainbow4):brighten(-0.4)), fg = theme.ui.fg_dark, bold = true },
Headline5 = { bg = tostring(color(theme.rainbow.rainbow5):brighten(-0.4)), fg = theme.ui.fg_dark, bold = true },
Headline6 = { bg = tostring(color(theme.rainbow.rainbow6):brighten(-0.4)), fg = theme.ui.fg_dark, bold = true },

-- Raindow delimiters
RainbowDelimiterRed = { fg = theme.rainbow.rainbow1 },
Expand Down

0 comments on commit 341adbe

Please sign in to comment.