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

Name based color detection #29

Open
lukasmalkmus opened this issue Dec 2, 2020 · 1 comment
Open

Name based color detection #29

lukasmalkmus opened this issue Dec 2, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@lukasmalkmus
Copy link

I would love to see named based color detection as a feature, so termenv can be an even better drop in replacement for libraries like ansicolor:

// c := ansicolor.ColorCode("white")

// Becomes ...

c := termenv.ColorProfile().Color("white").Sequence(false)
@muesli
Copy link
Owner

muesli commented Dec 2, 2020

You can kind of do that (even though not quite as straight-forward, admittedly) with the help of gamut: https://github.com/muesli/gamut

@muesli muesli added the enhancement New feature or request label Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants