Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for using the user's terminal's theme colors #141

Closed
AdamGaskins opened this issue Jun 30, 2022 · 0 comments
Closed

Add support for using the user's terminal's theme colors #141

AdamGaskins opened this issue Jun 30, 2022 · 0 comments
Assignees

Comments

@AdamGaskins
Copy link
Contributor

Modern terminals allow users to configure a "theme", which is 16 predefined colors that work well together, and with the terminal background.

image
A theme in iTerm2

Most command line binaries use these 16 colors, so the output looks good in every theme. Here's msgcat output in a light and dark terminal theme:

image
image

It would be awesome to make use of these in Termwind! That's the main thing keeping me from using it currently, since it feels less professional to show colors that may clash with the background (e.g. some people use a Solarized Light theme). I'm thinking something like text-ansi-red / bg-ansi-red for the class names?

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

No branches or pull requests

3 participants