carbon-design-system / design-language-website

IBM Design Language website
https://www.ibm.com/design/language/
82 stars 228 forks source link

[Data viz] Color palettes page enhancement #564

Closed jeanservaas closed 4 years ago

jeanservaas commented 4 years ago

There are several unique components in this page that will either require a modification of the Gatsby Tabs component or a net new component. I've highlighted and spec'd each of the new components and also shown the page in context.

New Color Palettes page in context

New components are highlighted

[data_viz]color_palette_context.png

[Data viz] Color palettes page enhancement

1. Categorial palette component and 4. Alert palette component are the same

This is basically just the Gatsby tab component with a few exceptions:

image.png

Categorical palette and alert palette component for light and dark themes at 1312

Categorical_palette_component.png

2. Color combinations commponent specs

This is similar to the Gatsby tab component, but combines the tabs with a dropdown... a combination that we haven't done yet in the Gatsby theme. @vince thinks it will be easier to build it from scratch than hack the Gatsby tab components.

Color combo component specs at 1312

Color_combinations_component.png

3. Sequential and diverging palette component specs

For BOTH the sequential and diverging palettes there is NO difference between light and dark themes. So there is no need to have tabs that toggle between light and dark. So there will be no white or dark stroking around the steps... only ONE 1px #ffffff stroke down the middle

This component should function exactly like the color palette component on the IDL site https://www.ibm.com/design/language/color#specifications — with two small exceptions

image.png

Sequential&diverging_component.png

Breakpoints

1056 image.png


672

image.png


Mobile

image.png

image.png

jeanservaas commented 4 years ago

@jnm2377

Sequential_palette_Component_revised.png

After talking with the Cognos team about some palette inconsistencies, Sadek and I added two more monochrome palettes to the sequential palettes page.

We also noticed that it was inconsistent not to label these palettes as "options" like the color pairings component does... so that is added here as well.

I hope this isn't a big curve ball... sorry! We can talk through this too sometime this week.

ps, i have NO IDEA why all these images are broken... will look into that shizz tomorrow.

mjabbink commented 4 years ago

@jeanservaas and @jnm2377 What is the status of this page?

mjabbink commented 4 years ago

@jeanservaas and @jnm2377 This seems so close. Let’s prioritize this please.