Add Kanagawa theme

Thanks again to @iljo-dp!
This commit is contained in:
David Heinemeier Hansson 2024-06-06 21:55:20 +02:00
parent b388f73f7c
commit c86d6bfbee
6 changed files with 76 additions and 2 deletions

BIN
backgrounds/kanagawa.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

@ -1,6 +1,6 @@
# Pick a preconfigured theme # Pick a preconfigured theme
THEME_NAMES=("Tokyo Night" "Catppuccin" "Everforest" "Gruvbox" "Nord" "Rose Pine") THEME_NAMES=("Tokyo Night" "Nord" "Catppuccin" "Everforest" "Gruvbox" "Kanagawa" "Rose Pine")
THEME=$(gum choose "${THEME_NAMES[@]}" --header "Choose your theme" --height 8 | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g') THEME=$(gum choose "${THEME_NAMES[@]}" --header "Choose your theme" --height 9 | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g')
[ ! -n "$THEME" ] && exit 0 [ ! -n "$THEME" ] && exit 0
@ -29,6 +29,9 @@ elif [ "$THEME" == "rose-pine" ]; then
elif [ "$THEME" == "nord" ]; then elif [ "$THEME" == "nord" ]; then
VSC_THEME="Nord" VSC_THEME="Nord"
VSC_EXTENSION="arcticicestudio.nord-visual-studio-code" VSC_EXTENSION="arcticicestudio.nord-visual-studio-code"
elif [ "$THEME" == "kanagawa" ]; then
VSC_THEME="Kanagawa"
VSC_EXTENSION="qufiwefefwoyn.kanagawa"
fi fi
code --install-extension $VSC_EXTENSION > /dev/null code --install-extension $VSC_EXTENSION > /dev/null
sed -i "s/\"workbench.colorTheme\": \".*\"/\"workbench.colorTheme\": \"$VSC_THEME\"/g" ~/.config/Code/User/settings.json sed -i "s/\"workbench.colorTheme\": \".*\"/\"workbench.colorTheme\": \"$VSC_THEME\"/g" ~/.config/Code/User/settings.json

View File

@ -0,0 +1,36 @@
[colors]
[colors.primary]
background = '#1f1f28'
foreground = '#dcd7ba'
[colors.normal]
black = '#090618'
red = '#c34043'
green = '#76946a'
yellow = '#c0a36e'
blue = '#7e9cd8'
magenta = '#957fb8'
cyan = '#6a9589'
white = '#c8c093'
[colors.bright]
black = '#727169'
red = '#e82424'
green = '#98bb6c'
yellow = '#e6c384'
blue = '#7fb4ca'
magenta = '#938aa9'
cyan = '#7aa89f'
white = '#dcd7ba'
[colors.selection]
background = '#2d4f67'
foreground = '#c8c093'
[[colors.indexed_colors]]
index = 16
color = '#ffa066'
[[colors.indexed_colors]]
index = 17
color = '#ff5d62'

11
themes/gnome/kanagawa.sh Normal file
View File

@ -0,0 +1,11 @@
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
gsettings set org.gnome.desktop.interface cursor-theme 'Yaru'
gsettings set org.gnome.desktop.interface gtk-theme 'Yaru-purple-dark'
gsettings set org.gnome.desktop.interface icon-theme 'Yaru-purple'
OMAKUB_BACKGROUND_ORG_PATH="$HOME/.local/share/omakub/backgrounds/kanagawa.jpg"
OMAKUB_BACKGROUND_DEST_PATH="$HOME/.local/share/backgrounds/kanagawa.jpg"
[ ! -f $OMAKUB_BACKGROUND_DEST_PATH ] && cp $OMAKUB_BACKGROUND_ORG_PATH $OMAKUB_BACKGROUND_DEST_PATH
gsettings set org.gnome.desktop.background picture-uri $OMAKUB_BACKGROUND_DEST_PATH
gsettings set org.gnome.desktop.background picture-uri-dark $OMAKUB_BACKGROUND_DEST_PATH
gsettings set org.gnome.desktop.background picture-options 'zoom'

View File

@ -0,0 +1,9 @@
return {
{ "rebelot/kanagawa.nvim" },
{
"lazyvim/lazyvim",
opts = {
colorscheme = "kanagawa",
},
},
}

View File

@ -0,0 +1,15 @@
themes {
kanagawa {
fg "#DCD7BA"
bg "#1F1F28"
red "#C34043"
green "#76946A"
yellow "#FF9E3B"
blue "#7E9CD8"
magenta "#957FB8"
orange "#FFA066"
cyan "#7FB4CA"
black "#16161D"
white "#DCD7BA"
}
}