-
Notifications
You must be signed in to change notification settings - Fork 15
Apply our brand colors on source{d} dashboards #259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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.
080d69b
to
aa05be4
Compare
@dpordomingo Already started building a rationale on the branding design doc "Charts Colour Scheme". |
ad729b3
to
e65a75f
Compare
@src-d/applications My last commit 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. |
There was a problem hiding this 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
There was a problem hiding this 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...
@carlosms Thanks for the review, all changes were addressed on my last commit |
e42954c
to
4e4f683
Compare
b0ec8ae
to
157da4e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
LGTM @ricardobaeta How should we proceed to merge & release? |
@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. |
Ok. I'll rebase over current master, perform a quick sanity check, and merge if everything is ok. |
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>
from https://docs.google.com/document/d/1cD7SvX1MDrUxBsxjb7AYAxQUSCdhxGWrktrQKlPVPyw/edit#bookmark=id.3n1cgzc2rbmf Signed-off-by: David Pordomingo <David.Pordomingo.F@gmail.com>
from https://docs.google.com/document/d/1cD7SvX1MDrUxBsxjb7AYAxQUSCdhxGWrktrQKlPVPyw/edit#bookmark=id.3n1cgzc2rbmf Signed-off-by: David Pordomingo <David.Pordomingo.F@gmail.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>
157da4e
to
73e15ce
Compare
I rebased and performing the sanity check, I realized that the colors are not ordered as in the design doc, and also that @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. It would create this color distribution, for example: With my commits:The palette I just pushed implements the gradient as in the design doc, and removes the it would produce this other distribution, imho more balanced. click to see the code used to draw the palettes aboveconst 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)); |
There was a problem hiding this 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 ✨
supersedes #241 (This PR is the second stage, as defined by #241 (comment))
depends on #257blocks #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
andlime_white_royal
as the defaults palettes when usingSUPERSET_DEFAULT
in categorical and sequential schemes.