Hello everyone! i'm trying to make my first cli-app and added some chalk.js sweetness but i have a problem with the rendering on different terminal apps.
Is there a workaround to support all of them with different bg's?
Thanks :D
Left: iterm2 V3
right: osx terminal Version 2.6.1 (361.1)

I don't think there's a way to detect the terminal background color.
// @Qix-
There's a kind of workaround by using the inverse method. It's not exactly what I wanted but it works on every terminal. :D I'll try to dig more, to see if there's a better way of doing this.

Nope, unfortunately nothing that is cross-platform. Terminals are generally a one-way means of interaction in terms of styling.
@sindresorhus @Qix- Thanks for the quick replies! :D
I'll stick to the inverse method until i find how to style it better.
Thanks again!
Most helpful comment
I don't think there's a way to detect the terminal background color.
// @Qix-