···11-# darkearth-nvim
22-A dark and earthy colorscheme for Neovim.
11+<h1 align="center">DarkEarth Neovim</h1>
22+33+<p align="center">
44+ A dark and earthy colorscheme for Neovim.
55+</p>
66+77+<p align="center">
88+ <img src="assets/color_bar.png" alt="DarkEarth palette"/>
99+</p>
310411Based on [miasma.nvim](https://github.com/xero/miasma.nvim), and built with [lush](https://github.com/rktjmp/lush.nvim).
1212+Compared to Miasma, darkearth is built to be more colorful overall to reduce sameyness as well as being more centered around browns than grays to enhance the earthiness.
51366-
1414+<p align="center">
1515+ <img src="assets/screenshot-0.png" alt="DarkEarth theme in neovim"/>
1616+</p>
1717+718819## Installation
920···2334```
24352536## Usage
3737+2638```lua
2739-- enable the colorscheme
2840vim.cmd.colorscheme("darkearth")
2941```
30423131-## Build/Modify Colorscheme
4343+## Build or Modify
4444+32451. Ensure [lush.nvim](https://github.com/rktjmp/lush.nvim) and [shipwright.nvim](https://github.com/rktjmp/shipwright.nvim) are installed
33462. Add new modifications to [lush_theme/darkearth.lua](lush_theme/darkearth.lua)
3434-3. Rebuild the colorscheme by running `./build.sh`
4747+3. Rebuild the colorscheme using `./build.sh`
354836493737-## base16 Colorscheme
3838-I have also included a base16 colorscheme script [base16-darkearth.sh](base16-darkearth.sh) that can be used to set shell colors.
5050+## Extras
39515252+I have also included a base16 colorscheme script [extras/base16-darkearth.sh](extras/base16-darkearth.sh) that can be used to set shell colors.
40534141-## Disclaimer
4242-This color scheme is fairly early in development and things are subject to change. (Changes will primarily be new additions)
assets/color_bar.png
This is a binary file and will not be displayed.
-124
base16-darkearth.sh
···11-#!/bin/sh
22-# based off of base16-shell (https://github.com/chriskempson/base16-shell)
33-44-# darkearth scheme (by ptdewey)
55-66-base00="24/21/1E" # dark grey-brown (background)
77-base01="22/1F/1C" # slightly ligher brown (alt-background)
88-base02="44/4A/2B" # very dark green
99-base03="6E/66/5E" # medium grey
1010-base04="73/66/59" # medium grey-brown
1111-base05="D7/C4/84" # light tan (foreground)
1212-base06="BB/78/44" # light orange
1313-base07="77/82/4A" # main green
1414-base08="B3/6B/42" # main orange
1515-base09="C9/A6/54" # main yellow
1616-base0A="5F/86/5F" # main teal
1717-base0B="AC/98/7D" # darker tan - new
1818-base0C="8A/7A/6B" # ligher grey-brown - new
1919-base0D="77/82/4A" # NOTE: duplicate, can be modified
2020-base0E="BB/78/44" # NOTE: duplicate, can be modified
2121-base0F="67/56/42" # darker brown (similar to alt background)
2222-2323-color00=$base00 # bg
2424-color01=$base0B # darker tan
2525-color02=$base0A # teal
2626-color03=$base07 # green
2727-color04=$base08 # main orange
2828-color05=$base06 # light orange
2929-color06=$base09 # yellow
3030-color07=$base05 # fg
3131-color08=$base0F # darker brown
3232-color09=$base0B # darker tan
3333-color10=$base0A # teal
3434-color11=$base07 # green
3535-color12=$base08 # orange
3636-color13=$base06 # light orange
3737-color14=$base09 # yellow
3838-color15=$base05 # fg
3939-4040-if [ -n "$BASE16_SHELL_SET_BACKGROUND" ]; then
4141- if [ "$BASE16_SHELL_SET_BACKGROUND" = true ]; then
4242- color16=$base00
4343- color17=$base00
4444- else
4545- color16=$base01
4646- color17=$base01
4747- fi
4848-else
4949- color16=$base01
5050- color17=$base01
5151-fi
5252-5353-color18=$base01
5454-color19=$base02
5555-color20=$base03
5656-color21=$base04
5757-5858-# 16 color space
5959-if [ -n "$TMUX" ]; then
6060- put_template() { printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $@; }
6161- put_template_var() { printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $@; }
6262- put_template_custom() { printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $@; }
6363-elif [ "${TERM%%[-.]*}" = "screen" ]; then
6464- put_template() { printf '\033P\033]4;%d;rgb:%s\033\\\033\\' $@; }
6565- put_template_var() { printf '\033P\033]%d;rgb:%s\033\\\033\\' $@; }
6666- put_template_custom() { printf '\033P\033]%s%s\033\\\033\\' $@; }
6767-elif [ "${TERM%%-*}" = "linux" ]; then
6868- put_template() { [ $1 -lt 16 ] && printf '\033]P%x%s' $1 $(echo $2 | sed 's/\///g'); }
6969- put_template_var() { true; }
7070- put_template_custom() { true; }
7171-else
7272- put_template() { printf '\033]4;%d;rgb:%s\033\\' $@; }
7373- put_template_var() { printf '\033]%d;rgb:%s\033\\' $@; }
7474- put_template_custom() { printf '\033]%s%s\033\\' $@; }
7575-fi
7676-7777-put_template 0 $color00
7878-put_template 1 $color01
7979-put_template 2 $color02
8080-put_template 3 $color03
8181-put_template 4 $color04
8282-put_template 5 $color05
8383-put_template 6 $color06
8484-put_template 7 $color07
8585-put_template 8 $color08
8686-put_template 9 $color09
8787-put_template 10 $color10
8888-put_template 11 $color11
8989-put_template 12 $color12
9090-put_template 13 $color13
9191-put_template 14 $color14
9292-put_template 15 $color15
9393-9494-put_template_var 10 $base05
9595-if [ "$BASE16_SHELL_SET_BACKGROUND" != false ]; then
9696- put_template_var 11 $base00
9797-fi
9898-put_template_custom 12 ";7"
9999-100100-unset -f put_template
101101-unset -f put_template_var
102102-unset -f put_template_custom
103103-unset color00
104104-unset color01
105105-unset color02
106106-unset color03
107107-unset color04
108108-unset color05
109109-unset color06
110110-unset color07
111111-unset color08
112112-unset color09
113113-unset color10
114114-unset color11
115115-unset color12
116116-unset color13
117117-unset color14
118118-unset color15
119119-unset color16
120120-unset color17
121121-unset color18
122122-unset color19
123123-unset color20
124124-unset color21
+16-36
doc/darkearth-nvim.txt
···11-*darkearth-nvim.txt* For Neovim >= 0.7.0 Last change: 2024 June 11
11+*darkearth-nvim.txt* For Neovim >= 0.7.0 Last change: 2024 June 28
2233==============================================================================
44Table of Contents *darkearth-nvim-table-of-contents*
5566-1. darkearth-nvim |darkearth-nvim-darkearth-nvim|
77- - Installation |darkearth-nvim-darkearth-nvim-installation|
88- - Usage |darkearth-nvim-darkearth-nvim-usage|
99- - Build/Modify Colorscheme|darkearth-nvim-darkearth-nvim-build/modify-colorscheme|
1010- - base16 Colorscheme |darkearth-nvim-darkearth-nvim-base16-colorscheme|
1111- - Disclaimer |darkearth-nvim-darkearth-nvim-disclaimer|
1212-2. Links |darkearth-nvim-links|
1313-1414-==============================================================================
1515-1. darkearth-nvim *darkearth-nvim-darkearth-nvim*
1616-1717-A dark and earthy colorscheme for Neovim.
1818-1919-Based on miasma.nvim <https://github.com/xero/miasma.nvim>, and built with lush
2020-<https://github.com/rktjmp/lush.nvim>.
2121-2222-66+ - Installation |darkearth-nvim-installation|
77+ - Usage |darkearth-nvim-usage|
88+ - Build or Modify |darkearth-nvim-build-or-modify|
99+ - Extras |darkearth-nvim-extras|
1010+DarkEarth NeovimA dark and earthy colorscheme for Neovim.Based on miasma.nvim <https://github.com/xero/miasma.nvim>, and built with lush
1111+<https://github.com/rktjmp/lush.nvim>. Compared to Miasma, darkearth is built
1212+to be more colorful overall to reduce sameyness as well as being more centered
1313+around browns than grays to enhance the earthiness.
231424152525-INSTALLATION *darkearth-nvim-darkearth-nvim-installation*
1616+INSTALLATION *darkearth-nvim-installation*
26172718Lazy:
2819···4233<
433444354545-USAGE *darkearth-nvim-darkearth-nvim-usage*
3636+USAGE *darkearth-nvim-usage*
46374738>lua
4839 -- enable the colorscheme
···5041<
514252435353-BUILD/MODIFY COLORSCHEME*darkearth-nvim-darkearth-nvim-build/modify-colorscheme*
4444+BUILD OR MODIFY *darkearth-nvim-build-or-modify*
544555461. Ensure lush.nvim <https://github.com/rktjmp/lush.nvim> and shipwright.nvim <https://github.com/rktjmp/shipwright.nvim> are installed
56472. Add new modifications to lush_theme/darkearth.lua <lush_theme/darkearth.lua>
5757-3. Rebuild the colorscheme by running `./build.sh`
5858-5959-6060-BASE16 COLORSCHEME *darkearth-nvim-darkearth-nvim-base16-colorscheme*
6161-6262-I have also included a base16 colorscheme script base16-darkearth.sh
6363-<base16-darkearth.sh> that can be used to set shell colors.
4848+3. Rebuild the colorscheme using `./build.sh`
644965506666-DISCLAIMER *darkearth-nvim-darkearth-nvim-disclaimer*
5151+EXTRAS *darkearth-nvim-extras*
67526868-This color scheme is fairly early in development and things are subject to
6969-change. (Changes will primarily be new additions)
7070-7171-==============================================================================
7272-2. Links *darkearth-nvim-links*
7373-7474-1. **: assets/screenshot-0.png
5353+I have also included a base16 colorscheme script extras/base16-darkearth.sh
5454+<extras/base16-darkearth.sh> that can be used to set shell colors.
75557656Generated by panvimdoc <https://github.com/kdheepak/panvimdoc>
7757
+124
extras/base16-darkearth.sh
···11+#!/bin/sh
22+# based off of base16-shell (https://github.com/chriskempson/base16-shell)
33+44+# darkearth scheme (by ptdewey)
55+66+base00="24/21/1E" # dark grey-brown (background)
77+base01="22/1F/1C" # slightly ligher brown (alt-background)
88+base02="44/4A/2B" # very dark green
99+base03="6E/66/5E" # medium grey
1010+base04="73/66/59" # medium grey-brown
1111+base05="D7/C4/84" # light tan (foreground)
1212+base06="BB/78/44" # light orange
1313+base07="77/82/4A" # main green
1414+base08="B3/6B/42" # main orange
1515+base09="C9/A6/54" # main yellow
1616+base0A="5F/86/5F" # main teal
1717+base0B="AC/98/7D" # darker tan - new
1818+base0C="8A/7A/6B" # ligher grey-brown - new
1919+base0D="b3/66/4d" # main red
2020+base0E="BB/78/44" # NOTE: duplicate, can be modified
2121+base0F="67/56/42" # darker brown (similar to alt background)
2222+2323+color00=$base00 # bg
2424+color01=$base0B # darker tan
2525+color02=$base0A # teal
2626+color03=$base07 # green
2727+color04=$base08 # main orange
2828+color05=$base06 # light orange
2929+color06=$base09 # yellow
3030+color07=$base05 # fg
3131+color08=$base0F # darker brown
3232+color09=$base0B # darker tan
3333+color10=$base0A # teal
3434+color11=$base07 # green
3535+color12=$base08 # orange
3636+color13=$base06 # light orange
3737+color14=$base09 # yellow
3838+color15=$base05 # fg
3939+4040+if [ -n "$BASE16_SHELL_SET_BACKGROUND" ]; then
4141+ if [ "$BASE16_SHELL_SET_BACKGROUND" = true ]; then
4242+ color16=$base00
4343+ color17=$base00
4444+ else
4545+ color16=$base01
4646+ color17=$base01
4747+ fi
4848+else
4949+ color16=$base01
5050+ color17=$base01
5151+fi
5252+5353+color18=$base01
5454+color19=$base02
5555+color20=$base03
5656+color21=$base04
5757+5858+# 16 color space
5959+if [ -n "$TMUX" ]; then
6060+ put_template() { printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $@; }
6161+ put_template_var() { printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $@; }
6262+ put_template_custom() { printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $@; }
6363+elif [ "${TERM%%[-.]*}" = "screen" ]; then
6464+ put_template() { printf '\033P\033]4;%d;rgb:%s\033\\\033\\' $@; }
6565+ put_template_var() { printf '\033P\033]%d;rgb:%s\033\\\033\\' $@; }
6666+ put_template_custom() { printf '\033P\033]%s%s\033\\\033\\' $@; }
6767+elif [ "${TERM%%-*}" = "linux" ]; then
6868+ put_template() { [ $1 -lt 16 ] && printf '\033]P%x%s' $1 $(echo $2 | sed 's/\///g'); }
6969+ put_template_var() { true; }
7070+ put_template_custom() { true; }
7171+else
7272+ put_template() { printf '\033]4;%d;rgb:%s\033\\' $@; }
7373+ put_template_var() { printf '\033]%d;rgb:%s\033\\' $@; }
7474+ put_template_custom() { printf '\033]%s%s\033\\' $@; }
7575+fi
7676+7777+put_template 0 $color00
7878+put_template 1 $color01
7979+put_template 2 $color02
8080+put_template 3 $color03
8181+put_template 4 $color04
8282+put_template 5 $color05
8383+put_template 6 $color06
8484+put_template 7 $color07
8585+put_template 8 $color08
8686+put_template 9 $color09
8787+put_template 10 $color10
8888+put_template 11 $color11
8989+put_template 12 $color12
9090+put_template 13 $color13
9191+put_template 14 $color14
9292+put_template 15 $color15
9393+9494+put_template_var 10 $base05
9595+if [ "$BASE16_SHELL_SET_BACKGROUND" != false ]; then
9696+ put_template_var 11 $base00
9797+fi
9898+put_template_custom 12 ";7"
9999+100100+unset -f put_template
101101+unset -f put_template_var
102102+unset -f put_template_custom
103103+unset color00
104104+unset color01
105105+unset color02
106106+unset color03
107107+unset color04
108108+unset color05
109109+unset color06
110110+unset color07
111111+unset color08
112112+unset color09
113113+unset color10
114114+unset color11
115115+unset color12
116116+unset color13
117117+unset color14
118118+unset color15
119119+unset color16
120120+unset color17
121121+unset color18
122122+unset color19
123123+unset color20
124124+unset color21