2022-04-04 09:39:29 +00:00
|
|
|
{ config, ... }:
|
|
|
|
|
2022-04-23 09:36:20 +00:00
|
|
|
with config.lib.stylix.colors.withHashtag;
|
2022-04-04 09:39:29 +00:00
|
|
|
|
|
|
|
# Based upon https://github.com/helix-editor/helix/blob/f8c83f98859fd618980141eb95e7927dcdf074d7/runtime/themes/base16_default_dark.toml
|
|
|
|
let theme = {
|
2022-04-23 09:36:20 +00:00
|
|
|
"ui.background".bg = base00;
|
2022-04-04 09:39:29 +00:00
|
|
|
"ui.menu" = {
|
2022-04-23 09:36:20 +00:00
|
|
|
fg = base05;
|
|
|
|
bg = base01;
|
2022-04-04 09:39:29 +00:00
|
|
|
};
|
|
|
|
"ui.menu.selected" = {
|
2022-04-23 09:36:20 +00:00
|
|
|
fg = base01;
|
|
|
|
bg = base04;
|
2022-04-04 09:39:29 +00:00
|
|
|
};
|
|
|
|
"ui.linenr" = {
|
2022-04-23 09:36:20 +00:00
|
|
|
fg = base03;
|
|
|
|
bg = base01;
|
2022-04-04 09:39:29 +00:00
|
|
|
};
|
2022-04-23 09:36:20 +00:00
|
|
|
"ui.popup".bg = base01;
|
|
|
|
"ui.window".bg = base01;
|
2022-04-04 09:39:29 +00:00
|
|
|
"ui.linenr.selected" = {
|
2022-04-23 09:36:20 +00:00
|
|
|
fg = base04;
|
|
|
|
bg = base01;
|
2022-04-04 09:39:29 +00:00
|
|
|
modifiers = [ "bold" ];
|
|
|
|
};
|
2022-04-23 09:36:20 +00:00
|
|
|
"ui.selection".bg = base02;
|
2022-04-04 09:39:29 +00:00
|
|
|
"comment" = {
|
2022-04-23 09:36:20 +00:00
|
|
|
fg = base03;
|
2022-04-04 09:39:29 +00:00
|
|
|
modifiers = [ "italic" ];
|
|
|
|
};
|
|
|
|
"ui.statusline" = {
|
2022-04-23 09:36:20 +00:00
|
|
|
fg = base04;
|
|
|
|
bg = base01;
|
2022-04-04 09:39:29 +00:00
|
|
|
};
|
|
|
|
"ui.cursor" = {
|
2022-04-23 09:36:20 +00:00
|
|
|
fg = base04;
|
2022-04-04 09:39:29 +00:00
|
|
|
modifiers = [ "reversed" ];
|
|
|
|
};
|
|
|
|
"ui.cursor.primary" = {
|
2022-04-23 09:36:20 +00:00
|
|
|
fg = base05;
|
2022-04-04 09:39:29 +00:00
|
|
|
modifiers = [ "reversed" ];
|
|
|
|
};
|
2022-04-23 09:36:20 +00:00
|
|
|
"ui.text" = base05;
|
|
|
|
"operator" = base05;
|
|
|
|
"ui.text.focus" = base05;
|
|
|
|
"variable" = base08;
|
|
|
|
"constant.numeric" = base09;
|
|
|
|
"constant" = base09;
|
|
|
|
"attributes" = base09;
|
|
|
|
"type" = base0A;
|
2022-04-04 09:39:29 +00:00
|
|
|
"ui.cursor.match" = {
|
2022-04-23 09:36:20 +00:00
|
|
|
fg = base0A;
|
2022-04-04 09:39:29 +00:00
|
|
|
modifiers = [ "underlined" ];
|
|
|
|
};
|
2022-04-23 09:36:20 +00:00
|
|
|
"string" = base0B;
|
|
|
|
"variable.other.member" = base0B;
|
|
|
|
"constant.character.escape" = base0C;
|
|
|
|
"function" = base0D;
|
|
|
|
"constructor" = base0D;
|
|
|
|
"special" = base0D;
|
|
|
|
"keyword" = base0E;
|
|
|
|
"label" = base0E;
|
|
|
|
"namespace" = base0E;
|
2022-04-04 09:39:29 +00:00
|
|
|
"ui.help" = {
|
2022-04-23 09:36:20 +00:00
|
|
|
fg = base06;
|
|
|
|
bg = base01;
|
2022-04-04 09:39:29 +00:00
|
|
|
};
|
|
|
|
|
2022-04-23 09:36:20 +00:00
|
|
|
"markup.heading" = base0D;
|
|
|
|
"markup.list" = base08;
|
2022-04-04 09:39:29 +00:00
|
|
|
"markup.bold" = {
|
2022-04-23 09:36:20 +00:00
|
|
|
fg = base0A;
|
2022-04-04 09:39:29 +00:00
|
|
|
modifiers = [ "bold" ];
|
|
|
|
};
|
|
|
|
"markup.italic" = {
|
2022-04-23 09:36:20 +00:00
|
|
|
fg = base0E;
|
2022-04-04 09:39:29 +00:00
|
|
|
modifiers = [ "italic" ];
|
|
|
|
};
|
|
|
|
"markup.link.url" = {
|
2022-04-23 09:36:20 +00:00
|
|
|
fg = base09;
|
2022-04-04 09:39:29 +00:00
|
|
|
modifiers = [ "underlined" ];
|
|
|
|
};
|
2022-04-23 09:36:20 +00:00
|
|
|
"markup.link.text" = base08;
|
|
|
|
"markup.quote" = base0C;
|
|
|
|
"markup.raw" = base0B;
|
2022-04-04 09:39:29 +00:00
|
|
|
|
2022-04-23 09:36:20 +00:00
|
|
|
"diff.plus" = base0B;
|
|
|
|
"diff.delta" = base09;
|
|
|
|
"diff.minus" = base08;
|
2022-04-04 09:39:29 +00:00
|
|
|
|
|
|
|
"diagnostic".modifiers = [ "underlined" ];
|
2022-04-23 09:36:20 +00:00
|
|
|
"ui.gutter".bg = base01;
|
|
|
|
"info" = base0D;
|
|
|
|
"hint" = base03;
|
|
|
|
"debug" = base03;
|
|
|
|
"warning" = base09;
|
|
|
|
"error" = base08;
|
2022-04-04 09:39:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
in {
|
2022-04-24 10:38:24 +00:00
|
|
|
home-manager.sharedModules = [{
|
2022-04-04 09:39:29 +00:00
|
|
|
programs.helix = {
|
|
|
|
settings.theme = "stylix";
|
|
|
|
themes.stylix = theme;
|
|
|
|
};
|
2022-04-24 10:38:24 +00:00
|
|
|
}];
|
2022-04-04 09:39:29 +00:00
|
|
|
}
|