Skip to content

core-color component #67

@dfreedm

Description

@dfreedm

From @AaronLayton on February 12, 2015 21:51

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

Copied from original issue: Polymer/polymer#1185

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions