Skip to content

Commit

Permalink
fix(markdown): fix header colors
Browse files Browse the repository at this point in the history
  • Loading branch information
sho-87 committed Sep 9, 2024
1 parent 4376cd2 commit cb5b597
Showing 1 changed file with 37 additions and 13 deletions.
50 changes: 37 additions & 13 deletions lua/kanagawa-paper/highlights/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -247,19 +247,43 @@ function M.setup(colors, opts)
Headline6 = { bg = tostring(color(theme.rainbow.rainbow6):brighten(-0.4)), fg = theme.ui.fg_dark, bold = true },

-- markdown.nvim
RenderMarkdownH1Bg = { bg = theme.rainbow.rainbow1, fg = theme.ui.fg_dark, bold = true },
RenderMarkdownH2Bg = { bg = theme.rainbow.rainbow2, fg = theme.ui.fg_dark, bold = true },
RenderMarkdownH3Bg = { bg = theme.rainbow.rainbow3, fg = theme.ui.fg_dark, bold = true },
RenderMarkdownH4Bg = { bg = theme.rainbow.rainbow4, fg = theme.ui.fg_dark, bold = true },
RenderMarkdownH5Bg = { bg = theme.rainbow.rainbow5, fg = theme.ui.fg_dark, bold = true },
RenderMarkdownH6Bg = { bg = theme.rainbow.rainbow6, fg = theme.ui.fg_dark, bold = true },

RenderMarkdownH1 = { bg = theme.rainbow.rainbow1, fg = theme.ui.fg_dark, bold = true },
RenderMarkdownH2 = { bg = theme.rainbow.rainbow2, fg = theme.ui.fg_dark, bold = true },
RenderMarkdownH3 = { bg = theme.rainbow.rainbow3, fg = theme.ui.fg_dark, bold = true },
RenderMarkdownH4 = { bg = theme.rainbow.rainbow4, fg = theme.ui.fg_dark, bold = true },
RenderMarkdownH5 = { bg = theme.rainbow.rainbow5, fg = theme.ui.fg_dark, bold = true },
RenderMarkdownH6 = { bg = theme.rainbow.rainbow6, fg = theme.ui.fg_dark, bold = true },
RenderMarkdownH1 = { fg = theme.rainbow.rainbow1 },
RenderMarkdownH2 = { fg = theme.rainbow.rainbow2 },
RenderMarkdownH3 = { fg = theme.rainbow.rainbow3 },
RenderMarkdownH4 = { fg = theme.rainbow.rainbow4 },
RenderMarkdownH5 = { fg = theme.rainbow.rainbow5 },
RenderMarkdownH6 = { fg = theme.rainbow.rainbow6 },

RenderMarkdownH1Bg = {
fg = theme.rainbow.rainbow1,
bg = tostring(color(theme.rainbow.rainbow1):brighten(-0.6)),
bold = true,
},
RenderMarkdownH2Bg = {
fg = theme.rainbow.rainbow2,
bg = tostring(color(theme.rainbow.rainbow2):brighten(-0.6)),
bold = true,
},
RenderMarkdownH3Bg = {
fg = theme.rainbow.rainbow3,
bg = tostring(color(theme.rainbow.rainbow3):brighten(-0.6)),
bold = true,
},
RenderMarkdownH4Bg = {
fg = theme.rainbow.rainbow4,
bg = tostring(color(theme.rainbow.rainbow4):brighten(-0.6)),
bold = true,
},
RenderMarkdownH5Bg = {
fg = theme.rainbow.rainbow5,
bg = tostring(color(theme.rainbow.rainbow5):brighten(-0.6)),
bold = true,
},
RenderMarkdownH6Bg = {
fg = theme.rainbow.rainbow6,
bg = tostring(color(theme.rainbow.rainbow6):brighten(-0.6)),
bold = true,
},

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

0 comments on commit cb5b597

Please sign in to comment.