diff --git a/src/modules/index.ts b/src/modules/index.ts index 020cc38..8dbb63c 100644 --- a/src/modules/index.ts +++ b/src/modules/index.ts @@ -5,6 +5,7 @@ import fzf from "./fzf"; import iterm from "./iterm"; import kitty from "./kitty"; import konsole from "./konsole"; +import lazygit from "./lazygit"; import tmux from "./tmux"; import wezterm from "./wezterm"; import windows_terminal from "./windows_terminal"; @@ -19,6 +20,7 @@ export default { iterm, kitty, konsole, + lazygit, tmux, wezterm, windows_terminal, diff --git a/src/modules/lazygit.ts b/src/modules/lazygit.ts new file mode 100644 index 0000000..767c508 --- /dev/null +++ b/src/modules/lazygit.ts @@ -0,0 +1,36 @@ +import { PrimerPalette } from "palette"; +import { blend } from "@lib/colors"; + +const fmt = (c: string): string => { + return `'${c.replace("#", "0x")}'`; +}; + +export default { + name: "lazygit", + ext: "yml", + generate: (name: string, p: PrimerPalette): string => { + const parse = (c: string) => blend(p.canvas.default, c); + return `# (${name}) Colors for lazygit + +theme: + activeBorderColor: + - '${p.accent.emphasis}' + - bold + inactiveBorderColor: + - '${p.border.default}' + optionsTextColor: + - '${p.fg.muted}' + selectedLineBgColor: + - ${fmt(parse(p.codemirror.selectionBg))} + cherryPickedCommitBgColor: + - '${p.canvas.overlay}' + cherryPickedCommitFgColor: + - '${p.accent.emphasis}' + unstagedChangesColor: + - '${p.danger.emphasis}' + defaultFgColor: + - '${p.fg.default}' + searchingActiveBorderColor: + - '${p.attention.emphasis}'`; + } +} diff --git a/themes/lazygit/github_dark.yml b/themes/lazygit/github_dark.yml new file mode 100644 index 0000000..a0587cb --- /dev/null +++ b/themes/lazygit/github_dark.yml @@ -0,0 +1,22 @@ +# (Github Dark) Colors for lazygit + +theme: + activeBorderColor: + - '#1f6feb' + - bold + inactiveBorderColor: + - '#30363d' + optionsTextColor: + - '#848d97' + selectedLineBgColor: + - '0x33588a' + cherryPickedCommitBgColor: + - '#161b22' + cherryPickedCommitFgColor: + - '#1f6feb' + unstagedChangesColor: + - '#da3633' + defaultFgColor: + - '#e6edf3' + searchingActiveBorderColor: + - '#9e6a03' \ No newline at end of file diff --git a/themes/lazygit/github_dark_colorblind.yml b/themes/lazygit/github_dark_colorblind.yml new file mode 100644 index 0000000..52ea6fd --- /dev/null +++ b/themes/lazygit/github_dark_colorblind.yml @@ -0,0 +1,22 @@ +# (Github Dark Colorblind) Colors for lazygit + +theme: + activeBorderColor: + - '#1f6feb' + - bold + inactiveBorderColor: + - '#30363d' + optionsTextColor: + - '#8b949e' + selectedLineBgColor: + - '0x1e4273' + cherryPickedCommitBgColor: + - '#161b22' + cherryPickedCommitFgColor: + - '#1f6feb' + unstagedChangesColor: + - '#b76100' + defaultFgColor: + - '#c9d1d9' + searchingActiveBorderColor: + - '#9e6a03' \ No newline at end of file diff --git a/themes/lazygit/github_dark_default.yml b/themes/lazygit/github_dark_default.yml new file mode 100644 index 0000000..0135e33 --- /dev/null +++ b/themes/lazygit/github_dark_default.yml @@ -0,0 +1,22 @@ +# (Github Dark Default) Colors for lazygit + +theme: + activeBorderColor: + - '#1f6feb' + - bold + inactiveBorderColor: + - '#30363d' + optionsTextColor: + - '#848d97' + selectedLineBgColor: + - '0x1e4273' + cherryPickedCommitBgColor: + - '#161b22' + cherryPickedCommitFgColor: + - '#1f6feb' + unstagedChangesColor: + - '#da3633' + defaultFgColor: + - '#e6edf3' + searchingActiveBorderColor: + - '#9e6a03' \ No newline at end of file diff --git a/themes/lazygit/github_dark_dimmed.yml b/themes/lazygit/github_dark_dimmed.yml new file mode 100644 index 0000000..dc4a195 --- /dev/null +++ b/themes/lazygit/github_dark_dimmed.yml @@ -0,0 +1,22 @@ +# (Github Dark Dimmed) Colors for lazygit + +theme: + activeBorderColor: + - '#316dca' + - bold + inactiveBorderColor: + - '#444c56' + optionsTextColor: + - '#768390' + selectedLineBgColor: + - '0x2e4c77' + cherryPickedCommitBgColor: + - '#2d333b' + cherryPickedCommitFgColor: + - '#316dca' + unstagedChangesColor: + - '#c93c37' + defaultFgColor: + - '#adbac7' + searchingActiveBorderColor: + - '#966600' \ No newline at end of file diff --git a/themes/lazygit/github_dark_high_contrast.yml b/themes/lazygit/github_dark_high_contrast.yml new file mode 100644 index 0000000..a5965c6 --- /dev/null +++ b/themes/lazygit/github_dark_high_contrast.yml @@ -0,0 +1,22 @@ +# (Github Dark High Contrast) Colors for lazygit + +theme: + activeBorderColor: + - '#409eff' + - bold + inactiveBorderColor: + - '#7a828e' + optionsTextColor: + - '#f0f3f6' + selectedLineBgColor: + - '0x204670' + cherryPickedCommitBgColor: + - '#272b33' + cherryPickedCommitFgColor: + - '#409eff' + unstagedChangesColor: + - '#ff6a69' + defaultFgColor: + - '#f0f3f6' + searchingActiveBorderColor: + - '#e09b13' \ No newline at end of file diff --git a/themes/lazygit/github_dark_tritanopia.yml b/themes/lazygit/github_dark_tritanopia.yml new file mode 100644 index 0000000..dbef18f --- /dev/null +++ b/themes/lazygit/github_dark_tritanopia.yml @@ -0,0 +1,22 @@ +# (Github Dark Tritanopia) Colors for lazygit + +theme: + activeBorderColor: + - '#1f6feb' + - bold + inactiveBorderColor: + - '#30363d' + optionsTextColor: + - '#8b949e' + selectedLineBgColor: + - '0x1e4273' + cherryPickedCommitBgColor: + - '#161b22' + cherryPickedCommitFgColor: + - '#1f6feb' + unstagedChangesColor: + - '#da3633' + defaultFgColor: + - '#c9d1d9' + searchingActiveBorderColor: + - '#9e6a03' \ No newline at end of file diff --git a/themes/lazygit/github_light.yml b/themes/lazygit/github_light.yml new file mode 100644 index 0000000..562305a --- /dev/null +++ b/themes/lazygit/github_light.yml @@ -0,0 +1,22 @@ +# (Github Light) Colors for lazygit + +theme: + activeBorderColor: + - '#0969da' + - bold + inactiveBorderColor: + - '#d0d7de' + optionsTextColor: + - '#656d76' + selectedLineBgColor: + - '0xbbdfff' + cherryPickedCommitBgColor: + - '#ffffff' + cherryPickedCommitFgColor: + - '#0969da' + unstagedChangesColor: + - '#cf222e' + defaultFgColor: + - '#1F2328' + searchingActiveBorderColor: + - '#9a6700' \ No newline at end of file diff --git a/themes/lazygit/github_light_colorblind.yml b/themes/lazygit/github_light_colorblind.yml new file mode 100644 index 0000000..ce6189d --- /dev/null +++ b/themes/lazygit/github_light_colorblind.yml @@ -0,0 +1,22 @@ +# (Github Light Colorblind) Colors for lazygit + +theme: + activeBorderColor: + - '#0969da' + - bold + inactiveBorderColor: + - '#d0d7de' + optionsTextColor: + - '#57606a' + selectedLineBgColor: + - '0xbbdfff' + cherryPickedCommitBgColor: + - '#ffffff' + cherryPickedCommitFgColor: + - '#0969da' + unstagedChangesColor: + - '#b35900' + defaultFgColor: + - '#24292f' + searchingActiveBorderColor: + - '#9a6700' \ No newline at end of file diff --git a/themes/lazygit/github_light_default.yml b/themes/lazygit/github_light_default.yml new file mode 100644 index 0000000..4b28daf --- /dev/null +++ b/themes/lazygit/github_light_default.yml @@ -0,0 +1,22 @@ +# (Github Light Default) Colors for lazygit + +theme: + activeBorderColor: + - '#0969da' + - bold + inactiveBorderColor: + - '#d0d7de' + optionsTextColor: + - '#656d76' + selectedLineBgColor: + - '0xbbdfff' + cherryPickedCommitBgColor: + - '#ffffff' + cherryPickedCommitFgColor: + - '#0969da' + unstagedChangesColor: + - '#cf222e' + defaultFgColor: + - '#1F2328' + searchingActiveBorderColor: + - '#9a6700' \ No newline at end of file diff --git a/themes/lazygit/github_light_high_contrast.yml b/themes/lazygit/github_light_high_contrast.yml new file mode 100644 index 0000000..1a88225 --- /dev/null +++ b/themes/lazygit/github_light_high_contrast.yml @@ -0,0 +1,22 @@ +# (Github Light High Contrast) Colors for lazygit + +theme: + activeBorderColor: + - '#0349b4' + - bold + inactiveBorderColor: + - '#20252c' + optionsTextColor: + - '#0e1116' + selectedLineBgColor: + - '0x368cf9' + cherryPickedCommitBgColor: + - '#ffffff' + cherryPickedCommitFgColor: + - '#0349b4' + unstagedChangesColor: + - '#a0111f' + defaultFgColor: + - '#0e1116' + searchingActiveBorderColor: + - '#744500' \ No newline at end of file diff --git a/themes/lazygit/github_light_tritanopia.yml b/themes/lazygit/github_light_tritanopia.yml new file mode 100644 index 0000000..8653489 --- /dev/null +++ b/themes/lazygit/github_light_tritanopia.yml @@ -0,0 +1,22 @@ +# (Github Light Tritanopia) Colors for lazygit + +theme: + activeBorderColor: + - '#0969da' + - bold + inactiveBorderColor: + - '#d0d7de' + optionsTextColor: + - '#57606a' + selectedLineBgColor: + - '0xbbdfff' + cherryPickedCommitBgColor: + - '#ffffff' + cherryPickedCommitFgColor: + - '#0969da' + unstagedChangesColor: + - '#cf222e' + defaultFgColor: + - '#24292f' + searchingActiveBorderColor: + - '#9a6700' \ No newline at end of file