Register and share your invite link to earn from video plays and referrals.

Mitchell Hashimoto
@mitchellh
Co-founder of @Superlogical. Creator of Ghostty. 👻 Prev founded @HashiCorp, created Vagrant, Terraform, Vault, and others.
Joined January 2008
154 Following    229.7K Followers
Terminal programs bias to dark modes and explicit colors are hostile to light modes and themes. We now detect programs when they request colors too out of whack from your theme, apply some Oklab magic and hue rotation to match your theme. Harmonious themes, everywhere, always.
Show more
Have some fun stuff to share for fellow light mode terminal lovers: we call it Automatic Contrast Correction. Users of light themes will have felt my pain. Developers have generally designed text interfaces for dark mode terminals. There are many examples in the tui apps I use everyday: `lsd`, `btop` (with theme bg off), even my beloved `lazygit` has some suss legibility out the box. The issues are so bad, I generally switch to a dark theme to read stuff. Automatic Contrast Correction fixes this issue by evaluating contrast at runtime between whats being sent from the server to the macOS client versus the theme mode the user is running. Our correction pipeline finds low contrast foreground/background combinations, does some oklab magic, hue rotation towards theme-colors, contrast checking and produces an end result of theme-harmonious, perfectly WCAG-approved legible text. All this happens in nanoseconds and is then cached for performance. It's built right into the @superlogical client. (Screenshots above show ACC off and on)
Show more
0
53
1.6K
24
Forward to community