Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

core-color component #67

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

Activity

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

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