7

enter image description here

In macOS dark mode, the font becomes #fff in my terminal, is there any way to set it to black? or just add another theme for terminal.app in macOS dark mode?

2 Answers 2

10

I had the same problem. Let me first clarify what the issue is, as the first respondent apparently had trouble understanding it.

Like the OP, I have a few Terminal profiles with black or dark gray text on pastel backgrounds. For some reason, when macOS goes into dark mode, there is some internal logic that'll invert this #000000 (or close to it) text foreground into #FFFFFF (or close to it), while leaving the background color unchanged. This leads to the effect shown in the OP's screenshot: white text on fairly bright background, i.e. basically unreadable.

I've found a simple trick to make this go away: Go to the theme in preferences, to the "text" tab. In the "text" section on the right, there are three text foreground chits, for "Text", for "Bold Text", and for the "Selection". You'll note they're showing bright instead of dark when you're in dark mode. Click on the Text one (or any of the others that bother you), switch the color picker that comes up to the "Color Sliders" view, and select the "HSB Sliders" setting from the dropdown.

What you'll see now is that although the color shown in the main preferences screen is white (or bright gray), the bottom slider for "Brightness" is in fact still set to all the way to the left.

Now here's the trick that I found by accident: pull it that brightness slider just a little bit to the right, and you'll note the text color immediately jumps back to dark. Now even if you set it back to the previous setting, it'll now stay dark.

This reproduceably fixed it for me on Catalina on my MacBook Pro 2019.

Hope it helps others!

2
  • 1
    It is reverse for the brightness slider in my case (Big Sur).
    – boated_tw
    Commented Nov 29, 2020 at 12:34
  • Still an issue, and this still resolves it on Monterey (with the caveat from @boated_tw)!
    – Amory
    Commented Sep 13, 2022 at 15:35
-1

This answer might be the one you are looking for. I'm able to do this via the Terminal / Preferences setting on my MacBook in dark mode. Not just for the transparent background but different colors.

Transparent Background in Terminal

Update #1

Thank you for following up.

Blockquote what I want is set a different font color in dark mode and light mode, according to your link, when I set transparency in dark mode, the color still affect in light more – user956609

If I understand correctly, the issue is setting a font color in light mode and different font colors in dark mode. If it's a question of doing so automatically when you switch modes, I'm not aware of a solution.

But manually, you can do so by selecting the text color box.

Screenshot of the terminal with preferences open to profiles tab / text sub-menu and text color area highlighted

If I'm still not understanding your question correctly, my apologies. Perhaps someone else can answer.

1
  • 2
    what I want is set a different font color in dark mode and light mode, according to your link, when I set transparency in dark mode, the color still affect in light more
    – user956609
    Commented May 9, 2020 at 14:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .