-
Notifications
You must be signed in to change notification settings - Fork 16
Conversation
white and black will likely not work, but they will start working with this PR |
"white": { | ||
"white": { | ||
"value": "#ffffff", | ||
"type": "color", | ||
"parent": "Brand Colors/v1 - current", | ||
"description": "" | ||
} | ||
}, | ||
"black": { | ||
"black": { | ||
"value": "#000000", | ||
"type": "color", | ||
"parent": "Brand Colors/v1 - current", | ||
"description": "" | ||
} |
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.
I've updated this section so that the Figma colors will render in storybook but it's likely we should change it back an update the useJsonColor
hook to handle this. @garrettbear would you be able to add the updates you made to handle these colors?
"white": { | |
"white": { | |
"value": "#ffffff", | |
"type": "color", | |
"parent": "Brand Colors/v1 - current", | |
"description": "" | |
} | |
}, | |
"black": { | |
"black": { | |
"value": "#000000", | |
"type": "color", | |
"parent": "Brand Colors/v1 - current", | |
"description": "" | |
} | |
"white": { | |
"value": "#ffffff", | |
"type": "color", | |
"parent": "Brand Colors/v1 - current", | |
"description": "" | |
}, | |
"black": { | |
"value": "#000000", | |
"type": "color", | |
"parent": "Brand Colors/v1 - current", | |
"description": "" | |
} |
"white": { | ||
"value": "#ffffff", | ||
"type": "color", | ||
"parent": "Brand Colors/v2- brand evo (preview)", | ||
"description": "" | ||
}, | ||
"black": { | ||
"value": "#000000", | ||
"type": "color", | ||
"parent": "Brand Colors/v2- brand evo (preview)", | ||
"description": "" |
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 may break storybook unless useJsonColor hook is updated
@@ -131,7 +131,7 @@ | |||
"description": "For the stronger contrast primary semantic elements." | |||
}, | |||
"muted": { | |||
"value": "{blue.400-15%}", | |||
"value": "#43aefc26", |
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.
"value": "{yellow.100-15%}", | ||
"value": "#ffdf7026", |
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.
"value": "{purple.400}", | ||
"value": "{purple.300}", |
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.
"value": "{blue.400}", | ||
"value": "{blue.300}", | ||
"type": "color", | ||
"parent": "Theme Colors/Dark mode", | ||
"description": "For informational read-only elements. Used for text, background, icon or border" | ||
}, | ||
"muted": { | ||
"value": "{blue.400-15%}", | ||
"value": "#43aefc26", |
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.
"value": "{green.400}", | ||
"value": "{green.300}", | ||
"type": "color", | ||
"parent": "Theme Colors/Dark mode", | ||
"description": "For the positive semantic elements. Used for text, background, icon or border" | ||
}, | ||
"muted": { | ||
"value": "{green.400-15%}", | ||
"value": "#28a74526", | ||
"type": "color", | ||
"parent": "Theme Colors/Dark mode", | ||
"description": "For the weakest contrast positive semantic backgrounds." | ||
}, | ||
"inverse": { | ||
"value": "#141618", | ||
"value": "{grey.900}", |
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.
"value": "#1098fc66", | ||
"value": "#43aefc33", | ||
"type": "color", | ||
"parent": "Theme Colors/Dark mode", | ||
"description": "For primary drop shadow color." | ||
}, | ||
"error": { | ||
"value": "#d73a4966", | ||
"value": "#ff758466", |
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.
"500-10%": { | ||
"value": "#1c82341a", | ||
"type": "color", | ||
"parent": "Brand Colors/v1 - current", | ||
"description": "" | ||
}, | ||
"025": { | ||
"value": "#f3fcf5", | ||
"type": "color", | ||
"parent": "Brand Colors/v1 - current", | ||
"description": "" | ||
}, | ||
"400-15%": { | ||
"value": "#28a74526", | ||
"type": "color", | ||
"parent": "Brand Colors/v1 - current", | ||
"description": "" |
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.
}, | ||
"500-10%": { | ||
"value": "#0376c91a", | ||
"type": "color", | ||
"parent": "Brand Colors/v1 - current", | ||
"description": "" | ||
}, | ||
"400-15%": { | ||
"value": "#1098fc26", | ||
"type": "color", | ||
"parent": "Brand Colors/v1 - current", | ||
"description": "" |
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.
}, | ||
"500-10%": { | ||
"value": "#d738471a", | ||
"type": "color", | ||
"parent": "Brand Colors/v1 - current", | ||
"description": "" | ||
}, | ||
"400-15%": { | ||
"value": "#e0647026", | ||
"type": "color", | ||
"parent": "Brand Colors/v1 - current", | ||
"description": "" |
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.
}, | ||
"500-10%": { | ||
"value": "#bf52081a", | ||
"type": "color", | ||
"parent": "Brand Colors/v1 - current", | ||
"description": "" | ||
}, | ||
"400-15%": { | ||
"value": "#f66a0a26", | ||
"type": "color", | ||
"parent": "Brand Colors/v1 - current", | ||
"description": "" | ||
}, | ||
"100-15%": { | ||
"value": "#ffdf7026", | ||
"type": "color", | ||
"parent": "Brand Colors/v1 - current", | ||
"description": "" |
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.
@@ -169,7 +169,7 @@ | |||
"description": "For the stronger contrast error semantic elements." | |||
}, | |||
"muted": { | |||
"value": "{red.400-15%}", | |||
"value": "#e88f9726", |
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.
"value": "#d7384766", | ||
"value": "#ca354266", |
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.
"value": "{blue.500-10%}", | ||
"value": "#0376c91a", |
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.
"value": "{green.500-10%}", | ||
"value": "#1c82341a", |
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.
"value": "{yellow.500-10%}", | ||
"value": "#bf52081a", |
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.
"description": "" | ||
} | ||
} | ||
} |
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.
Removing brand evolution JSON. Will put in a different branch
src/figma/darkTheme.json
Outdated
"value": "#2d3034", | ||
"value": "#282b2e", | ||
"type": "color", | ||
"parent": "Theme Colors/Dark mode", | ||
"description": "For \"hover\" states that use background-default." | ||
}, | ||
"default-pressed": { | ||
"value": "#363b3f", | ||
"value": "#36383b", | ||
"type": "color", | ||
"parent": "Theme Colors/Dark mode", | ||
"description": "For \"pressed\" states that use background-alternative." | ||
}, | ||
"alternative-hover": { | ||
"value": "#1e2124", | ||
"value": "#191b1d", | ||
"type": "color", | ||
"parent": "Theme Colors/Dark mode", | ||
"description": "For \"hover\" states that use background-alternative." | ||
}, | ||
"alternative-pressed": { | ||
"value": "#272b2f", | ||
"value": "#27292a", | ||
"type": "color", | ||
"parent": "Theme Colors/Dark mode", | ||
"description": "For \"pressed\" states that use background-alternative." | ||
}, | ||
"hover": { | ||
"value": "#ffffff0a", | ||
"value": "#ffffff05", |
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.
Matches what the current colors are
design-tokens/src/figma/tokens.json
Lines 1259 to 1300 in e74e09f
"background": { | |
"default": { | |
"value": "#24272A", | |
"description": "(grey800: #24272A) For default neutral backgrounds", | |
"type": "color" | |
}, | |
"default-hover": { | |
"value": "#282B2E", | |
"type": "color", | |
"description": "(#282B2E) For component hover states that use background/default" | |
}, | |
"default-pressed": { | |
"value": "#36383B", | |
"type": "color", | |
"description": "(#36383B) For component pressed states that use background/default" | |
}, | |
"alternative": { | |
"value": "#141618", | |
"description": "(grey900: #141618) For a subtle contrast option for neutral backgrounds. (Example: backdrop, header background)", | |
"type": "color" | |
}, | |
"alternative-hover": { | |
"value": "#191B1D", | |
"type": "color", | |
"description": "(#191B1D) For component hover states that use background/alternative" | |
}, | |
"alternative-pressed": { | |
"value": "#27292A", | |
"type": "color", | |
"description": "(#27292A) For component pressed states that use background/alternative" | |
}, | |
"hover": { | |
"value": "#FFFFFF05", | |
"type": "color", | |
"description": "(#FFFFFF05) For component hover states with no background color" | |
}, | |
"pressed": { | |
"value": "#FFFFFF14", | |
"type": "color", | |
"description": "(#FFFFFF14) For component pressed states with no background color" | |
} | |
}, |
e74e09f
to
dbfcd4a
Compare
src/figma/lightTheme.json
Outdated
"type": "color", | ||
"parent": "Theme Colors/Light mode", | ||
"description": "For \"pressed\" states that use background-alternative." | ||
}, | ||
"hover": { | ||
"value": "#0000000a", | ||
"value": "#00000005", |
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.
Updating to original colors in prod
design-tokens/src/figma/tokens.json
Lines 830 to 861 in 07764c9
"default-hover": { | |
"value": "#FAFAFA", | |
"type": "color", | |
"description": "(#FAFAFA)For component hover states that use background/default" | |
}, | |
"default-pressed": { | |
"value": "#EBEBEB", | |
"type": "color", | |
"description": "(#EBEBEB) For component pressed states that use background/default" | |
}, | |
"alternative": { | |
"value": "#F2F4F6", | |
"description": "(grey040: #F2F4F6) For a subtle contrast option for neutral backgrounds. (Example: backdrop, header background)", | |
"type": "color" | |
}, | |
"alternative-hover": { | |
"value": "#EDEFF1", | |
"type": "color", | |
"description": "(#EDEFF1) For component hover states that use background/alternative" | |
}, | |
"alternative-pressed": { | |
"value": "#DFE0E2", | |
"type": "color", | |
"description": "(#DFE0E2) For component pressed states that use background/alternative" | |
}, | |
"hover": { | |
"value": "#00000005", | |
"type": "color", | |
"description": "(#00000005) For component hover states with no background color" | |
}, | |
"pressed": { | |
"value": "#00000014", |
@@ -71,19 +71,19 @@ | |||
}, | |||
"icon": { | |||
"default": { | |||
"value": "{text.default}", | |||
"value": "{grey.000}", |
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.
i think this change was a mistake @georgewrmarshall
"type": "color", | ||
"parent": "Theme Colors/Dark mode", | ||
"description": "For default neutral icons" | ||
}, | ||
"alternative": { | ||
"value": "{text.alternative}", | ||
"value": "{grey.200}", |
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.
same here. i remember the designers want the icons to reference the text
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.
can you double check with hiro regarding the icon tokens situation?
I think either work for now. We can change it back to text in a future update once docs updates have been merged it contains the logic to handle those aliases #706 |
"value": "#313235", | ||
"type": "color", | ||
"parent": "Theme Colors/Dark mode", | ||
"description": "For \"hover\" states that use background-default." | ||
}, | ||
"default-pressed": { | ||
"value": "#363b3f", | ||
"value": "#3f4145", | ||
"type": "color", | ||
"parent": "Theme Colors/Dark mode", | ||
"description": "For \"pressed\" states that use background-alternative." | ||
}, | ||
"alternative-hover": { | ||
"value": "#1e2124", | ||
"value": "#1f2123", | ||
"type": "color", | ||
"parent": "Theme Colors/Dark mode", | ||
"description": "For \"hover\" states that use background-alternative." | ||
}, | ||
"alternative-pressed": { | ||
"value": "#272b2f", | ||
"value": "#2e3033", |
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.
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.
Looks good!
Description
This PR updates the Figma JSON to remove all opacity brand color values and adds white and black colors. The reason for this change is to ensure brand consistency and improve the design system by using solid colors for white and black instead of opacity variations.
Related issues
Fixes: N/A
Manual testing steps
Screenshots/Recordings
Before and After screenshots are listed in the code comments for easier review
Pre-merge author checklist
Pre-merge reviewer checklist