From 88293cf2cbace0b24b1f4c39867862b6201094e9 Mon Sep 17 00:00:00 2001 From: Guillaume Comte Date: Thu, 20 Jan 2022 15:19:46 +0100 Subject: [PATCH] Sonokai theme --- README.md | 1 + data/themes.json | Bin 94763 -> 95184 bytes themes/sonokai.sh | 56 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 themes/sonokai.sh 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 8598275ff12de00b2720b48916c0a1849cd05740..7479c9eef7dbd30fc4a718087fb24d82f859c446 100644 GIT binary patch delta 512 zcmZ4eg!RI6)(z8jHe2Z}W86GdXEEdE2l}(wHY-~!WZYbCwt{i<5z7jx%}+uXGfuu8 z%DLGlWIp5O_VAUAn=500YIP$$nK#SCmAYlbgdw%3U=u43GN zO_*^x<8}>kMsuP1{Ji|^#7rd}rKFt1jckmZZ}nna%Q*dQ5F_{Yr@oACDgcuTs#O30 delta 188 zcmV;t07L)K=LM_e1+bSavp+7O0kf4Xr~$L!FPjFlAULD}vv)S70kgz8cp9_lRi6Qq z-&F~-JXE6rvxiry0khUxMgy}gS*8KA9A0%rvpc1#0h2JL3$u}v%%Zq3A0S+p8>O<<*5O)>*(w%w}KS`rUAFs q69KCMwL3} 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