Skip to content

Conversation

dpordomingo
Copy link
Contributor

@dpordomingo dpordomingo commented Aug 15, 2019

supersedes #241 (This PR is the second stage, as defined by #241 (comment))
depends on #257
blocks #258


DISCLAIMER: This PR introduces visual changes (in charts color scheme) that should be validated or modified by @src-d/product. (screenshots below 👇)


This commit adds four new palettes for categorical schemes and two new ones for sequential schemes.

This commit also stablishes srcdMain and lime_white_royal as the defaults palettes when using SUPERSET_DEFAULT in categorical and sequential schemes.

@dpordomingo
Copy link
Contributor Author

You can find below screenshots showing how this proposal looks like compared with our current color schemes.

overview dashboard

dashboard-overview

collaboration dashboard

note: Pull Requests Workflow chart could not be customized because its underlying type (Event Flow) does not allow to change its visual properties.

dashboard-collaboration

Copy link
Contributor

@ricardobaeta ricardobaeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @dpordomingo ! Once product validation process starts I'll update here, and most probably contribute to this PR.

@dpordomingo dpordomingo force-pushed the schemes-branding branch 5 times, most recently from 080d69b to aa05be4 Compare August 19, 2019 04:12
@ricardobaeta
Copy link
Contributor

@dpordomingo Already started building a rationale on the branding design doc "Charts Colour Scheme".

@ricardobaeta
Copy link
Contributor

@src-d/applications

My last commit e65a75f improves the Charts Colour scheme. This is the result of a collaboration with Anita Lillie from Superset's design community, and the full rationale can be seen on the source{d}-branded Superset UI Design Doc on the Charts Colours Section.

Needless to say that @dpordomingo did all the hard work, and improving it couldn't have been more streamlined by him 🙏

When this is merged, we close source{d}-branded superset UI from 2019-R7-CE.

image

image

image

image

image

Copy link
Contributor

@carlosms carlosms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The linter is complaining about a few style issues (quotes and comma), and one typo in a name.
https://travis-ci.com/src-d/sourced-ui/jobs/232700406

Copy link
Contributor

@carlosms carlosms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding comments that should have been included in the previous review...

@ricardobaeta
Copy link
Contributor

ricardobaeta commented Sep 10, 2019

@carlosms Thanks for the review, all changes were addressed on my last commit 4e4f683.

Copy link
Contributor

@carlosms carlosms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@dpordomingo dpordomingo changed the title [RFC] Apply our brand colors on source{d} dashboards Apply our brand colors on source{d} dashboards Sep 11, 2019
@dpordomingo
Copy link
Contributor Author

dpordomingo commented Sep 11, 2019

LGTM @ricardobaeta

How should we proceed to merge & release?
Do we have any plan from @src-d/product ?

@ricardobaeta
Copy link
Contributor

@dpordomingo The plan was established by @src-d/product for the 2019-R7-CE. We addressed the changes and fully documented our decisions on the source{d} Branding Design Doc.

I would say we can go for the merge and release.

@dpordomingo
Copy link
Contributor Author

Ok. I'll rebase over current master, perform a quick sanity check, and merge if everything is ok.

dpordomingo and others added 6 commits September 12, 2019 21:23
This commit add four new palettes for categorical schemes
and two new ones for sequential schemes.

This commit also stablish 'srcdMain' and 'lime_white_royal' as the
defaults for 'SUPERSET_DEFAULT' categorical and sequential schemes.

Signed-off-by: David Pordomingo <David.Pordomingo.F@gmail.com>
Signed-off-by: Ricardo Baeta <ricardo@ricardobaeta.com>
Signed-off-by: David Pordomingo <David.Pordomingo.F@gmail.com>
Sky colors are not in the Design Doc
from https://docs.google.com/document/d/1cD7SvX1MDrUxBsxjb7AYAxQUSCdhxGWrktrQKlPVPyw/edit#bookmark=id.3n1cgzc2rbmf

Signed-off-by: David Pordomingo <David.Pordomingo.F@gmail.com>
@dpordomingo
Copy link
Contributor Author

I rebased and performing the sanity check, I realized that the colors are not ordered as in the design doc, and also that sky color is not in that document, so I pushed some commits to implement the palette defined in the docs.

@ricardobaeta should I merge with my proposal? or is the color gradient (on the palettes you pushed) different than the one in the design document on purpose?

Before my commits:

It was pushed this palette, which has a different color gradient compared with the design doc.

image

It would create this color distribution, for example:
image

With my commits:

The palette I just pushed implements the gradient as in the design doc, and removes the sky color because it does not exist in that docs:

image

it would produce this other distribution, imho more balanced.
image

click to see the code used to draw the palettes above
const PR_palette = {
    royal: '#7015a8',
    royalMiddle: '#8719cb',
    royalDeep: '#591085',
    royalLight: '#a438e7',
    royalLightDeep: '#bc6ded',

    lime: '#008168',
    limeMiddle: '#009b7c',
    blueDeep: '#006853',
    limeLight: '#00b491',
    blueLightDeep: '#00c8a1',

    coral: '#e5770a',
    coralMiddle: '#f68b0c',
    coralDeep: '#d66600',
    coralLight: '#f89c30',
    coralLightDeep: '#f9ae56',

    vanila: '#d024c6',
    vanilaLight: '#e981e3',

    navy: '#195dca',
    navyLight: '#8fb5f1',

    sky: '#29bff2',
    skyLight: '#c9effc',

    gray: '#6d6e71',
    grayLight: '#c6c7c8',
};

const PR_scheme = palette => [
    {
        id: 'srcdMain',
        label: 'source{d} main colors',
        colors: [
            palette.royal,
            palette.royalDeep,
            palette.royalLight,
            palette.royalLightDeep,
            palette.lime,
            palette.blueDeep,
            palette.limeLight,
            palette.blueLightDeep,
            palette.coral,
            palette.coralDeep,
            palette.coralLight,
            palette.coralLightDeep,
        ],
    },
    {
        id: 'srcdAll',
        label: 'source{d} all colors + middle gradient',
        colors: [
            palette.royal,
            palette.royalMiddle,
            palette.royalDeep,
            palette.royalLight,
            palette.royalLightDeep,
            palette.lime,
            palette.limeMiddle,
            palette.blueDeep,
            palette.limeLight,
            palette.blueLightDeep,
            palette.coral,
            palette.coralMiddle,
            palette.coralDeep,
            palette.coralLight,
            palette.coralLightDeep,
            palette.vanila,
            palette.vanilaLight,
            palette.navy,
            palette.navyLight,
            palette.sky,
            palette.skyLight,
            palette.gray,
            palette.grayLight,
        ],
    },
    {
        id: 'srcdSix',
        label: 'source{d} six colors',
        colors: [
            palette.royal,
            palette.lime,
            palette.coral,
            palette.vanila,
            palette.navy,
            palette.sky,
        ],
    },
    {
        id: 'srcdDuo',
        label: 'source{d} two colors',
        colors: [
            palette.royal,
            palette.royalDeep,
        ],
    },
];

const ALT_palette = {
    royalDeep: '#591085',
    royalMiddle: '#7015a8',
    royal: '#8719cb',
    royalLightDeep: '#a438e7',
    royalLight: '#bc6ded',

    coralDeep: '#d66600',
    coralMiddle: '#e5770a',
    coral: '#f68b0c',
    coralLightDeep: '#f89c30',
    coralLight: '#f9ae56',

    limeDeep: '#006853',
    limeMiddle: '#008168',
    lime: '#009b7c',
    limeLightDeep: '#00b491',
    limeLight: '#00c8a1',

    vanila: '#d024c6',
    vanilaLight: '#e981e3',

    navy: '#195dca',
    navyLight: '#8fb5f1',

    gray: '#6d6e71',
    grayLight: '#c6c7c8',
}

const ALT_scheme = palette => [
    {
        id: 'srcdMain',
        label: 'source{d} main colors',
        colors: [
            palette.royalDeep,
            palette.royal,
            palette.royalLightDeep,
            palette.royalLight,
            palette.coralDeep,
            palette.coral,
            palette.coralLightDeep,
            palette.coralLight,
            palette.limeDeep,
            palette.lime,
            palette.limeLightDeep,
            palette.limeLight,
        ],
    },
    {
        id: 'srcdAll',
        label: 'source{d} all colors + middle gradient',
        colors: [
            palette.royalDeep,
            palette.royalMiddle,
            palette.royal,
            palette.royalLightDeep,
            palette.royalLight,
            palette.coralDeep,
            palette.coralMiddle,
            palette.coral,
            palette.coralLightDeep,
            palette.coralLight,
            palette.limeDeep,
            palette.limeMiddle,
            palette.lime,
            palette.limeLightDeep,
            palette.limeLight,
            palette.vanila,
            palette.vanilaLight,
            palette.navy,
            palette.navyLight,
            palette.gray,
            palette.grayLight,
        ],
    },
    {
        id: 'srcdSix',
        label: 'source{d} six colors',
        colors: [
            palette.royalDeep,
            palette.coralMiddle,
            palette.lime,
            palette.vanila,
            palette.navy,
            palette.gray,
        ],
    },
    {
        id: 'srcdDuo',
        label: 'source{d} two colors',
        colors: [
            palette.royalMiddle,
            palette.royalLight,
        ],
    },
];

const prepare = () => {
    style = document.createElement('style');
    style.innerHTML = `
        body {
            margin: 20px;
        }
        h1 {
            margin-top: 20px;
        }
        .label,
        .color {
            display: inline-block;
            margin: 2px 1px;
            padding: 20px 6px;
        }
        .label {
            width: 75px;
            text-align: right;
            color: #666;
        }
        .color {
            font-family: courier;
            color: #fff;
            font-size: 11px;
            margin-left: 0px;
        }`;
    document.body.innerHTML = '';
    document.body.appendChild(style);
}

const print = scheme => scheme.forEach(p => {
    const palette = document.createElement('div');
    const label = document.createElement('span');
    label.className = 'label';
    label.innerHTML = p.id;
    palette.appendChild(label);
    p.colors.forEach(c => {
        const color = document.createElement('span');
        color.className = 'color';
        color.style.background = c;
        color.innerHTML = c;
        palette.appendChild(color);
    });
    document.body.appendChild(palette);
});

const header = text => {
    const title = document.createElement('h1')
    title.innerHTML = text;
    document.body.appendChild(title);
};

prepare();
header('PR palette')
print(PR_scheme(PR_palette));
header('alternative palette')
print(ALT_scheme(ALT_palette));

Copy link
Contributor

@ricardobaeta ricardobaeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is stunning David ✨

@dpordomingo dpordomingo merged commit 8a07c7d into src-d:master Sep 13, 2019
@dpordomingo dpordomingo deleted the schemes-branding branch September 13, 2019 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants