Update THEMES.md

This commit is contained in:
Michael Lazar
2017-12-09 21:27:11 -05:00
committed by GitHub
parent 656027064a
commit b424ee7b40

View File

@@ -10,10 +10,7 @@ Color support on modern terminals can be split into 4 categories:
3. 16 system colors - Everything above + bright variations 3. 16 system colors - Everything above + bright variations
4. 256 extended colors - Everything above + 6x6x6 color palette + 24 greyscale colors 4. 256 extended colors - Everything above + 6x6x6 color palette + 24 greyscale colors
<div> <img alt="terminal colors" src="resources/terminal_colors.png"/>
<img alt="terminal colors" src="resources/terminal_colors.png"/>
<p>The 256 terminal color codes, image from <a href=https://github.com/eikenb/terminal_colors>https://github.com/eikenb/terminal_colors</p>
</div>
The 16 system colors, along with the default foreground and background, The 16 system colors, along with the default foreground and background,
can usually be customized through your terminal's profile settings. The can usually be customized through your terminal's profile settings. The
@@ -22,10 +19,7 @@ all terminals. RTV's default theme only uses the 8 primary system colors,
which is why it matches the "look and feel" of the terminal that you're which is why it matches the "look and feel" of the terminal that you're
running it in. running it in.
<figure> <img alt="iTerm preferences" src="resources/iterm_preferences.png"/>
<img alt="iTerm preferences" src="resources/iterm_preferences.png"/>
<figcaption>Setting the system colors in iTerm preferences</figcaption>
</figure>
The curses library determines your terminal's color support by reading your The curses library determines your terminal's color support by reading your
environment's ``$TERM`` variable, and looking up your terminal's environment's ``$TERM`` variable, and looking up your terminal's
@@ -173,10 +167,7 @@ SelectedCursor = ansi_241 ansi_254 bold+reverse
Link = ansi_33 - underline Link = ansi_33 - underline
``` ```
<figure> <img alt="iTerm preferences" src="resources/theme_modifiers.png"/>
<img alt="iTerm preferences" src="resources/theme_modifiers.png"/>
<figcaption>The default solarized-light theme</figcaption>
</figure>
In the snippet above, the ``Link`` element has it's background color set In the snippet above, the ``Link`` element has it's background color set
to the ``-`` token. This means that it will inherit it's background to the ``-`` token. This means that it will inherit it's background
@@ -195,10 +186,7 @@ SelectedCursor = ansi_241 ansi_254 bold+reverse
Link = ansi_33 ansi_230 underline Link = ansi_33 ansi_230 underline
``` ```
<figure> <img alt="iTerm preferences" src="resources/theme_modifiers_2.png"/>
<img alt="iTerm preferences" src="resources/theme_modifiers_2.png"/>
<figcaption>A modified solarized-light theme, with the Link background set to ansi_230</figcaption>
</figure>
In this case, the ``Link`` background stays ansi_230 (yellow) even the link is In this case, the ``Link`` background stays ansi_230 (yellow) even the link is
selected by the cursor. selected by the cursor.