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

Transparent/RGBA colors #1

Open
PaoloFalomo opened this issue Nov 18, 2016 · 2 comments
Open

Transparent/RGBA colors #1

PaoloFalomo opened this issue Nov 18, 2016 · 2 comments

Comments

@PaoloFalomo
Copy link

First of all i think this is great 🎆 and thank you @desandro to make the web great again !

Feature Request (maybe?)

I think that would be cool to have an alpha value that change the color to exadecimal to rgba().

Something like this:
image

@desandro desandro changed the title Alpha value slider control and RGBA support Transparent/RGBA colors Nov 18, 2016
@desandro
Copy link
Member

desandro commented Nov 18, 2016

Add a 👍 reaction if you would like Huebee to support alpha values for transparent colors.

Do not add "+1" comment — they will be deleted. Subscribe to this issue using the button in the sidebar.


Thank you for this feature request.

You can add transparent or rgba colors via customColors. It accepts any valid color value.

customColor: [
  'rgba(255, 0, 0, 0.5)',
  'hsla(0, 100%, 50%, 0.5)',
  'transparent',
]

But as for adding a separate UI for alpha, I'd rather not. Here are two of Huebee's principles:

  • Keep it simple
  • Focus on actual people using it

That's why Huebee only shows 200 colors instead of 17 million.

I decided to leave off transparent/alpha colors because I don't think the use case is that popular. It adds more complexity to the library, both in code and user experience.

@PaoloFalomo
Copy link
Author

Thank you @desandro for the quick reply :)

Keep it simple

I think that could be an extra feature to have opacity control but yes - it might compromise the semplicity 🚶

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants