diff --git a/README.md b/README.md index 12072fc..4dfe593 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,7 @@ If you want to create your own color scheme or contribute to the project, [start - [SMYCK](http://color.smyck.org/) by [John-Paul Bader](https://github.com/hukl) - [Snazzy](https://github.com/sindresorhus/hyper-snazzy) by [Sindre Sorhus](https://github.com/sindresorhus) - [Solarized](https://ethanschoonover.com/solarized) by [Ethan Schoonover](https://github.com/altercation) +- [Sonokai](https://github.com/sainnhe/sonokai) by [Sainnhe Park](https://github.com/sainnhe) - [Srcery](https://github.com/roosta/vim-srcery) by [Daniel Berg](https://github.com/roosta) - [Summer Pop](https://github.com/guillermoap/Gogh) by [Guillermo Aguirre](https://github.com/guillermoap) - [SynthWave '84 ](https://github.com/robb0wen/synthwave-vscode) diff --git a/data/themes.json b/data/themes.json index 8598275..7479c9e 100644 Binary files a/data/themes.json and b/data/themes.json differ diff --git a/themes/sonokai.sh b/themes/sonokai.sh new file mode 100644 index 0000000..d1e5d69 --- /dev/null +++ b/themes/sonokai.sh @@ -0,0 +1,56 @@ +#!/usr/bin/env bash + +# ====================CONFIG THIS =============================== # +# Regular text +export COLOR_01="#2C2E34" # Dark Gray +export COLOR_02="#FC5D7C" # Sonokai Red +export COLOR_03="#9ED072" # Sonokai Green +export COLOR_04="#E7C664" # Sonokai Yellow +export COLOR_05="#F39660" # Sonokai Orange +export COLOR_06="#B39DF3" # Sonokai Magenta +export COLOR_07="#76CCE0" # Sonokai Cyan +export COLOR_08="#E2E2E3" # Light Gray +# Bold text +export COLOR_09="#2C2E34" # Dark Gray +export COLOR_10="#FC5D7C" # Sonokai Red +export COLOR_11="#9ED072" # Sonokai Green +export COLOR_12="#E7C664" # Sonokai Yellow +export COLOR_13="#F39660" # Sonokai Orange +export COLOR_14="#B39DF3" # Sonokai Magenta +export COLOR_15="#76CCE0" # Sonokai Cyan +export COLOR_16="#E2E2E3" # Light Gray +# Text and background +export BACKGROUND_COLOR="#2C2E34" # Background Color +export FOREGROUND_COLOR="#E2E2E3" # Foreground Color (text) +export CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor color +export PROFILE_NAME="Sonokai" +# =============================================================== # + + + + + + + +# =============================================================== # +# | Apply Colors +# ===============================================================|# +SCRIPT_PATH="${SCRIPT_PATH:-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}" +PARENT_PATH="$(dirname "${SCRIPT_PATH}")" + +# Allow developer to change url to forked url for easier testing +# IMPORTANT: Make sure you export this variable if your main shell is not bash +BASE_URL=${BASE_URL:-"https://raw.githubusercontent.com/Mayccoll/Gogh/master"} + + +if [[ -e "${PARENT_PATH}/apply-colors.sh" ]]; then + bash "${PARENT_PATH}/apply-colors.sh" +else + if [[ "$(uname)" = "Darwin" ]]; then + # OSX ships with curl and ancient bash + bash -c "$(curl -so- "${BASE_URL}/apply-colors.sh")" + else + # Linux ships with wget + bash -c "$(wget -qO- "${BASE_URL}/apply-colors.sh")" + fi +fi