Skip to content

Commit 3302d97

Browse files
authored
Match base16 styling spec for base03. (#62)
1 parent fb705bc commit 3302d97

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

colortest

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ else
1919
fi
2020

2121
case "$theme_name" in
22-
"base16"*)
22+
"base16"*)
2323
color_variables="\
2424
base00 \
2525
base08 \
@@ -43,7 +43,7 @@ case "$theme_name" in
4343
base02 \
4444
base04 \
4545
base06";;
46-
"base24"*)
46+
"base24"*)
4747
color_variables="\
4848
base00 \
4949
base08 \
@@ -52,8 +52,8 @@ case "$theme_name" in
5252
base0D \
5353
base0E \
5454
base0C \
55-
base06 \
56-
base02 \
55+
base05 \
56+
base03 \
5757
base12 \
5858
base14 \
5959
base13 \
@@ -94,15 +94,15 @@ while [ $i -lt 22 ]; do
9494
color_variable="color$(printf "%02d" $i)"
9595
eval current_color=\$$color_variable
9696
current_color=$(printf "%s" "$current_color" | tr 'a-f' 'A-F' | tr -d '/') # POSIX-compliant uppercase & remove slashes
97-
97+
9898
# Fetching the color name and ANSI label based on position
9999
base16_color_name=$(printf "%s\n" $color_variables | sed -n "$((i + 1))p")
100100
ansi_label=$(printf "%s\n" $ansi_labels | sed -n "$((i + 1))p")
101-
101+
102102
# Displaying the color block
103103
block=$(printf "\033[48;5;%dm___________________________" $i)
104104
foreground=$(printf "\033[38;5;%dm%s" $i "$color_variable")
105105
printf "%s %s %s %-30s %s\033[0m\n" "$foreground" "$base16_color_name" "${current_color:-space}" "${ansi_label:-""}" "$block"
106-
106+
107107
i=$((i + 1))
108108
done

templates/base16.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env sh
22
# tinted-shell (https://github.com/tinted-theming/tinted-shell)
3-
# Scheme name: {{scheme-name}}
3+
# Scheme name: {{scheme-name}}
44
# Scheme author: {{scheme-author}}
55
# Template author: Tinted Theming (https://github.com/tinted-theming)
66
export BASE16_THEME={{scheme-slug}}
@@ -13,7 +13,7 @@ color04="{{base0D-hex-r}}/{{base0D-hex-g}}/{{base0D-hex-b}}" # Base 0D - Blue
1313
color05="{{base0E-hex-r}}/{{base0E-hex-g}}/{{base0E-hex-b}}" # Base 0E - Magenta
1414
color06="{{base0C-hex-r}}/{{base0C-hex-g}}/{{base0C-hex-b}}" # Base 0C - Cyan
1515
color07="{{base05-hex-r}}/{{base05-hex-g}}/{{base05-hex-b}}" # Base 05 - White
16-
color08="{{base02-hex-r}}/{{base02-hex-g}}/{{base02-hex-b}}" # Base 03 - Bright Black
16+
color08="{{base03-hex-r}}/{{base03-hex-g}}/{{base03-hex-b}}" # Base 03 - Bright Black
1717
color09="$color01" # Base 08 - Bright Red
1818
color10="$color02" # Base 0B - Bright Green
1919
color11="$color03" # Base 0A - Bright Yellow

templates/base24.mustache

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env sh
22
# tinted-shell (https://github.com/tinted-theming/tinted-shell)
3-
# Scheme name: {{scheme-name}}
3+
# Scheme name: {{scheme-name}}
44
# Scheme author: {{scheme-author}}
55
# Template author: Tinted Theming (https://github.com/tinted-theming)
66
export BASE24_THEME="{{scheme-slug}}"
@@ -12,8 +12,8 @@ color03="{{base0A-hex-r}}/{{base0A-hex-g}}/{{base0A-hex-b}}" # Base 0A - Yellow
1212
color04="{{base0D-hex-r}}/{{base0D-hex-g}}/{{base0D-hex-b}}" # Base 0D - Blue
1313
color05="{{base0E-hex-r}}/{{base0E-hex-g}}/{{base0E-hex-b}}" # Base 0E - Magenta
1414
color06="{{base0C-hex-r}}/{{base0C-hex-g}}/{{base0C-hex-b}}" # Base 0C - Cyan
15-
color07="{{base06-hex-r}}/{{base06-hex-g}}/{{base06-hex-b}}" # Base 06 - White
16-
color08="{{base02-hex-r}}/{{base02-hex-g}}/{{base02-hex-b}}" # Base 02 - Bright Black
15+
color07="{{base05-hex-r}}/{{base05-hex-g}}/{{base05-hex-b}}" # Base 05 - White
16+
color08="{{base03-hex-r}}/{{base03-hex-g}}/{{base03-hex-b}}" # Base 03 - Bright Black
1717
color09="{{base12-hex-r}}/{{base12-hex-g}}/{{base12-hex-b}}" # Base 12 - Bright Red
1818
color10="{{base14-hex-r}}/{{base14-hex-g}}/{{base14-hex-b}}" # Base 14 - Bright Green
1919
color11="{{base13-hex-r}}/{{base13-hex-g}}/{{base13-hex-b}}" # Base 13 - Bright Yellow

0 commit comments

Comments
 (0)