Skip to content

fix: Logs in light terminal themes - #91

Merged
mikew merged 2 commits into
mainfrom
fix-light-terminal
Jul 16, 2026
Merged

fix: Logs in light terminal themes#91
mikew merged 2 commits into
mainfrom
fix-light-terminal

Conversation

@mikew

@mikew mikew commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Fixes #90

Preview

Screenshot 2026-07-16 at 12 43 25 AM Screenshot 2026-07-16 at 12 54 33 AM

Comment on lines +16 to +19
// I really didn't want to have to fork this package, but it breaks
// compatibility with light terminal themes by forcing the message to be
// printed with a while color.
// No other slog handlers seem to do JSON printing of the attributes.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

☹️

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, that sounds like something that could also go upstream? Plenty of terminals ship in white by default, Apple's, iTerm 2, Konsole with Plasma's default look, I'm surprised no one submitted something like that to the upstream project yet. Also, respecting NO_COLOR would be neat, I don't think it does that?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't hurt, but I also noticed the lightGray didn't work in a lot of themes either (in Ghostty at least) so I changed those too, most of the colours used actually. But an issue upstream that setting the message to white breaks light themes couldn't hurt.

The NO_COLOR / tty detection stuff actually needs to be done downstream in projects, as that's something turned on manually.

@mikew
mikew merged commit c762346 into main Jul 16, 2026
6 checks passed
@mikew
mikew deleted the fix-light-terminal branch July 16, 2026 04:02
mikew pushed a commit that referenced this pull request Jul 16, 2026
🤖 I have created a release *beep* *boop*
---


## [0.9.1](v0.9.0...v0.9.1)
(2026-07-16)


### Bug Fixes

* **doc:** fix inconsistent between doc and impl
([#88](#88))
([55ac767](55ac767))
* Logs in light terminal themes
([#91](#91))
([c762346](c762346))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Text output is white on white on light-themed terminals

2 participants