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

core-color component #1185

Closed
AaronLayton opened this issue Feb 12, 2015 · 5 comments
Closed

core-color component #1185

AaronLayton opened this issue Feb 12, 2015 · 5 comments

Comments

@AaronLayton
Copy link

An idea for a new utility element (if something like this doesn't already exist).

Set an inputColor and have the core-color figure out what the closet pallet color is based on the Material Design pallet
http://www.google.co.uk/design/spec/style/color.html#color-color-palette

<core-color inputColor="#ff0000" mainColor="{{ backgroundColour }}" textColor="{{ textColor }}" format="#hex"></core-color>
<!-- backgroundColour == #b71c1c -->
<!-- textColor == #fff -->

Let the input color be anything

  • Web Safe
  • HEX
  • #HEX
  • RGB
  • RGBA
  • HSL
  • HSLA
  • CMYK

Let the user specify the format they want to retrieve the color as

@tjsavage tjsavage added the 0.5 label May 21, 2015
@AaronLayton
Copy link
Author

I would change this to iron-color-picker ?

@addyosmani
Copy link
Member

Going off an idea related to your other ticket, I've been building out elements that pick the dominant colors from a supplied image and generate a Material palette of colors (vibrant, muted etc) that can be used to theme other pieces of UI:

screen shot 2015-09-01 at 13 47 34

Some of this might make it into one of my talks at the Polymer Summit, but I'll look at refactoring them into something more generic if the team thinks that would be useful.

@AaronLayton
Copy link
Author

That's great @addyosmani you preview looks good, anything we can look at now or wait until after the Summit?

@addyosmani
Copy link
Member

It hasn't been code reviewed by the team yet I'm afraid. It'll probably be after the summit before they have a chance to look it over :)

@dfreedm
Copy link
Member

dfreedm commented Jan 27, 2016

This issue was moved to PolymerElements/paper-elements#67

@dfreedm dfreedm closed this as completed Jan 27, 2016
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

4 participants