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

[Feature] add support for hex8 #453

Closed
lukasoppermann opened this issue Sep 20, 2022 · 2 comments
Closed

[Feature] add support for hex8 #453

lukasoppermann opened this issue Sep 20, 2022 · 2 comments

Comments

@lukasoppermann
Copy link

Maybe by adding a new function toHex8 that outputs the hex value with transparency.

@ricokahler
Copy link
Owner

This library does support outputting to hex8 but only when the alpha value is less than one. For the sake of keeping the API stable, I'll close this one for now.

expect(toHex('rgba(0, 255, 0, 0.5)')).toMatchInlineSnapshot(`"#00ff0080"`);

@lukasoppermann
Copy link
Author

Ahh, nice, maybe you could add this to the description of toHex?

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

2 participants