You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/colors.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,12 +20,12 @@ These rules apply to all command-line programs, not just Rust ones.
20
20
## Color palettes
21
21
22
22
Terminals may support one of three color palettes:
23
-
**Truecolor (16 million colors):* 24-bit color; 8 bits for each of red, green and blue. This is the standard that web pages and most monitors support. You may have seen these colors written as e.g. <spanstyle="color:#9b4fd1">#9b4fd1</span>.
24
-
**256 colors:* 8-bit color; the 16 colors above, a 6×6×6 cube for each of red, green and blue, and 24 grayscale tones. [This page by Pádraig Brady](http://www.pixelbeat.org/docs/terminal_colours/#256) has more information about them.
25
23
**16 colors:* 4-bit color; black, red, green, yellow, blue, magenta, cyan, white, and a "bright" version of each.
24
+
**256 colors:* 8-bit color; the 16 colors above, a 6×6×6 cube for each of red, green and blue, and 24 grayscale tones. [This page by Pádraig Brady](http://www.pixelbeat.org/docs/terminal_colours/#256) has more information about them.
25
+
***Truecolor (16 million colors):* 24-bit color; 8 bits for each of red, green and blue. This is the standard that web pages and most monitors support. You may have seen these colors written as e.g. <spanstyle="color:#9b4fd1">#9b4fd1</span>.
26
26
27
27
**The default color schemes in applications *must* be restricted to 12 colors: red, green, yellow, blue, magenta, cyan, and the bright versions of each of these.**
28
-
* While the wider palettes are useful for terminal theming controlled by the user, applications *must not* use them by default. The reason is that users may be using a variety of terminal themes with different backgrounds. **Truecolors and 16-bit colors will not render properly with all terminal themes.**For example, light-colored text will fade into a light background, or dark-colored text will fade into a dark background.
28
+
* While the wider palettes are useful for terminal theming controlled by the user, applications *must not* use them by default. The reason is that users may be using a variety of terminal themes with different backgrounds. **Truecolors and 8-bit colors will not render properly with all terminal themes.**Light-colored text will fade into a light background, and dark-colored text will fade into a dark background.
29
29
* Most terminals allow you to configure these colors to whatever one pleases. In most themes, these 12 colors are set to contrast with the background.
30
30
<tt><spanstyle="color: #acacab; background-color:#050505">Themes with dark backgrounds <spanstyle="color: #a9cdeb">set "blue" to be lighter</span></span></tt>,
31
31
while <tt><spanstyle="color: #0e0101; background-color:#ffffdd">themes with light backgrounds <spanstyle="color: #3465a4">set "blue" to be darker</span></span></tt>. (These examples are from real themes.)
0 commit comments