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: codex-rs/tui/styles.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,16 +7,15 @@
7
7
# Foreground colors
8
8
9
9
-**Default:** Most of the time, just use the default foreground color. `reset` can help get it back.
10
-
-**Selection:** Use ANSI `blue`. (Ed & AE want to make this cyan too, but we'll do that in a followup since it's riskier in different themes.)
11
-
-**User input tips and status indicators:** Use ANSI `cyan`.
10
+
-**User input tips, selection, and status indicators:** Use ANSI `cyan`.
12
11
-**Success and additions:** Use ANSI `green`.
13
12
-**Errors, failures and deletions:** Use ANSI `red`.
14
13
-**Codex:** Use ANSI `magenta`.
15
14
16
15
# Avoid
17
16
18
-
- Avoid custom colors because there's no guarantee that they'll contrast well or look good in various terminal color themes.
17
+
- Avoid custom colors because there's no guarantee that they'll contrast well or look good in various terminal color themes. (`shimmer.rs` is an exception that works well because we take the default colors and just adjust their levels.)
19
18
- Avoid ANSI `black` & `white` as foreground colors because the default terminal theme color will do a better job. (Use `reset` if you need to in order to get those.) The exception is if you need contrast rendering over a manually colored background.
20
-
- Avoid ANSI `yellow` because for now the style guide doesn't use it. Prefer a foreground color mentioned above.
19
+
- Avoid ANSI `blue` and `yellow` because for now the style guide doesn't use them. Prefer a foreground color mentioned above.
21
20
22
21
(There are some rules to try to catch this in `clippy.toml`.)
0 commit comments