Skip to content

Add Color Palette Picker component and widget #2795

@elizabetdev

Description

@elizabetdev

The problem

In EUI are providing multiple color palettes but we are not providing a component that allows users to pick them.

In Maps we are using the following pattern to pick a color palette:

Screenshot 2020-01-27 at 14 01 54

And in our charts section in EUI we have a similar pattern:
Screenshot 2020-01-27 at 14 02 15

Not providing this pattern as a component can lead to different implementations.

Also, we only have one qualitative palette. Allowing different teams to pick different solutions can lead to different issues:

  • Most of the available community palettes are not colorblind-safe
  • They don't look good in light and dark themes

Can we provide more qualitative palettes that work in light and dark themes and provide a11y?

The solution

The idea is to provide in EUI a component to pick different types of palettes. Allows, customization and allows users to test the palettes in different scenarios (different themes, different data viz).

Color Palette Picker Component

A color palette picker component that allows picking a specific type of palette. Also, it should allow users to create their customized palette.

Color Palette Picker Widget

It would be great to have a way to test/preview all EUI palettes on different data viz. The following image is an initial design idea:

Color Palette Picker

Figma Prototype

You can find it here

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions