Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-warchol committed Apr 18, 2020
1 parent d8ebfab commit b65eae4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 23 deletions.
40 changes: 20 additions & 20 deletions tests/selenized.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,35 @@ DIM="\e[37m"
RESET="\e[0m"

echo -e "$BRIGHT
_ _ _
___ ___| | ___ _ __ (_)_______ __| |
/ __|/ _ \ |/ _ \ '_ \| |_ / _ \/ _' |
\__ \ __/ | __/ | \ | |/ / __/ (_| |
|___/\___|_|\___|_| |_|_/___\___|\__,_|
_ _ _
___ ___| |___ _ __ (_)_______ __| |
/ __| _ \ | _ \ '_ \| |_ / _ \ _' |
\__ \ __/ | __/ | \ | |/ /| __/(_| |
|___/.__|_|.__|_| |_|_/___/.__|__._|
$DIM
author: Jan Warchoł
Solarized done right
$RESET"

echo -en "\e[0m "
for color in 40 100 47 46 44 45 41 43 42 47 100 40; do
for color in 40 100 47 41 43 42 46 44 45 47 100 40; do
echo -en "\e[${color}m "
done
echo -e "\e[0m"

echo -ne "
${BOLD}Selenized${RESET} is a color palette based on Ethan Shoonover's ${BOLD}Solarized.${RESET}
I have adjusted hues and lightness to decrease ambiguity and ensure
readability in all conditions.
"
Fine-tuned color palette for programmers with focus on ${BOLD}readability,${RESET}
with ${BOLD}beautiful,${RESET} vibrant and easily distinguishable accent colors.
echo -en "
${DIM}Note how using just slightly softer color can make this note appear
less important than the rest of the text while still being legible.${RESET}
"

loremipsum="\n \e[0mLorem ipsum dolor sit amet, consectetur adipiscing elit, sed tempor"
echo -en "$loremipsum\n "
for color in 90 37 39 36 34 35 31 33 32 39 37 90; do
echo -en "\e[${color}m Text"
done
echo -e "$loremipsum\n"
# echo -en "
# ${DIM}Note how using just slightly softer color can make this note appear
# less important than the rest of the text while still being legible.${RESET}
# "

# loremipsum="\n \e[0mLorem ipsum dolor sit amet, consectetur adipiscing elit, sed tempor"
# echo -en "$loremipsum\n "
# for color in 90 37 39 36 34 35 31 33 32 39 37 90; do
# echo -en "\e[${color}m Text"
# done
# echo -e "$loremipsum\n"
7 changes: 4 additions & 3 deletions whats-wrong-with-solarized.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,13 @@ placed next to a window with high-contrast content:

![Solarized next to black&white Wikipedia](http://i.imgur.com/UlOxerG.png)

This is even more visible when Solarized dark is used for a code snippets on
This is even more visible when Solarized dark is used for code snippets on
a website with white background:

![short code sample with Solarized](http://i.imgur.com/vStjfca.png)

Selenized dark is slightly lighter and doesn't have this problem:
Selenized dark, being slightly lighter and having more contrast,
doesn't have this problem:

![Selenized next to black&white Wikipedia](http://i.imgur.com/OX2Ce2r.png)

Expand All @@ -86,7 +87,7 @@ Better terminal compatibility
-----------------------------

Solarized puts both light and dark variants in one color palette, resulting in
a weird mapping of ANSI color codes to actual color values. For example,
a weird mapping of ANSI color codes to actual colors. For example,
Solarized maps color code meant for bright/bold green to "base 01" (greyish
shade used for comments):

Expand Down

0 comments on commit b65eae4

Please sign in to comment.