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

Fallback color when a given color (e.g. "bright" variants) are not available #49

Open
rootwork opened this issue May 19, 2021 · 1 comment

Comments

@rootwork
Copy link

If I chain colors like so:

colors.green.greenBright

will it fall-back to "green" if "greenBright" isn't available?

I wanted to test this myself, but wasn't sure how to force-disable "brights" in my terminal.

If this isn't possible it would be a nice feature to consider. I'm wary of using the brights when setting colors on a project that's going to be used by others, because I don't know what will happen if it's not available.

Thanks for maintaining this great package!

@rootwork
Copy link
Author

It looks like https://github.com/sttk/ansi-colors-prioritized will allow me to accomplish this.

So you can close this unless you want to consider fallback colors within this project.

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

1 participant