colors
Zeioth edited this page Feb 23, 2024
·
16 revisions
Normally, your colorscheme colors are used by default and they should look great. But you can define your own custom colors to be used by default by all components the next way.
"Zeioth/heirline-components.nvim",
opts = {
colors = {
none = "NONE",
fg = "#abb2bf",
bg = "#1e222a",
dark_bg = "#2c323c",
blue = "#61afef",
green = "#98c379",
grey = "#5c6370",
bright_grey = "#777d86",
dark_grey = "#5c5c5c",
orange = "#ff9640",
purple = "#c678dd",
bright_purple = "#a9a1e1",
red = "#e06c75",
bright_red = "#ec5f67",
white = "#c9c9c9",
yellow = "#e5c07b",
bright_yellow = "#ebae34"
}
},
- The normal priority order for colors is
your colorscheme colors > fallback colors
- But when you use this option, priority will be
your colors > fallback colors
- So make sure you define all colors, or the ugly fallback ones will be used.
Most components allow hl
, so you can also specify your colors by component.
require("heirline-components.all").component.fill { hl = { fg = "#ebae34", bg = "#abb2bf" } }
Please read the docs of every component to learn how to customize them in detail.