Skip to content
Ethan Chan edited this page Sep 3, 2016 · 5 revisions

Color schemes

# color_scheme.yaml
colors:
  name:         (string) title
  primary:      (string) ANSI color name
  secondary:    (string) ANSI color name
  background:   (string) hex color
  foreground:   (string) hex color
  black:
    normal:     (string) hex color
    bold:       (string) hex color
  red:
    normal:     (string) hex color
    bold:       (string) hex color
  green:
    normal:     (string) hex color
    bold:       (string) hex color
  yellow:
    normal:     (string) hex color
    bold:       (string) hex color
  blue:
    normal:     (string) hex color
    bold:       (string) hex color
  magenta:
    normal:     (string) hex color
    bold:       (string) hex color
  cyan:
    normal:     (string) hex color
    bold:       (string) hex color
  white:
    normal:     (string) hex color
    bold:       (string) hex color

# default.yaml
# Accessor shorthand
bgc:        "{{ colors.background }}"
fgc:        "{{ colors.foreground }}"

n_black:    "{{ colors.black.normal }}"
b_black:    "{{ colors.black.bold }}"
n_red:      "{{ colors.red.normal }}"
b_red:      "{{ colors.red.bold }}"
n_green:    "{{ colors.green.normal }}"
b_green:    "{{ colors.green.bold }}"
n_yellow:   "{{ colors.yellow.normal }}"
b_yellow:   "{{ colors.yellow.bold }}"
n_blue:     "{{ colors.blue.normal }}"
b_blue:     "{{ colors.blue.bold }}"
n_magenta:  "{{ colors.magenta.normal }}"
b_magenta:  "{{ colors.magenta.bold }}"
n_cyan:     "{{ colors.cyan.normal }}"
b_cyan:     "{{ colors.cyan.bold }}"
n_white:    "{{ colors.white.normal }}"
b_white:    "{{ colors.white.bold }}"

n_primary:  "{{ colors[colors.primary].normal }}"
b_primary:  "{{ colors[colors.primary].bold }}"
n_secondary:  "{{ colors[colors.secondary].normal }}"
b_secondary:  "{{ colors[colors.secondary].bold }}"

text_primary:         "{{ colors.primary }}"
text_secondary:       "{{ colors.secondary }}"
Clone this wiki locally