-
Notifications
You must be signed in to change notification settings - Fork 27
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
Adds color guideline documentation #989
Conversation
…ge, and accessibility guidelines
cleans up imports on color usage page
standardized delivery of usages assets
✅ Deploy Preview for thumbprint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for thumbprint-gatsby canceled.
|
adds tab nav component for usage tabs adds alt tags for images moves reusable types into utils
adds high emphasis color to accessibility
adds atomicClasses parameter to H2 component for additional flexibiltiy adds rounded corners on color accessibility swatches improves table strucuturing
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.
Nicely done! Just some small comments.
<img src={images.usage.src.src} width="375px" alt={images.usage.alt} /> | ||
</div> | ||
</ExampleBox> | ||
{overviewTable({ list: usageContent })} |
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 works, but the more traditional way to do it with React is to do rename overviewTable
to OverviewTable
and do: <OverviewTable list={usageContent} />
.
} | ||
|
||
function ColorSection({ values }: { values: Color['values'] }): JSX.Element { | ||
const [active, setActive] = useState(false); |
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.
It's better to call these isActive
and setIsActive
so that we can tell based on the name that it will be a boolean.
</div> | ||
{/* tokens */} | ||
<div className="flex flex-row col-gap2 row-gap2 flex-wrap mv3"> | ||
{TokenPill({ |
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 preferred:
<TokenPill title="Hex" value={...} />
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.
🤦♂️ Not sure where my head was at there. Thank you!
changes function delivery to react components adjusts actice <> isActive naming for states
…not in local object removes 400 label from core colors
* Revert "Revert "Adds color guideline documentation (#989)" (#990)" This reverts commit f744043. * movees color swatches to overview page removes unnecessary intro text on palette page sets order of palette colors from 100-600 sets open state to default color (400 levels and white) * updates image examples removes yellow 600 from a11y documentation since it's not used atm * updates labeling for secondary color per design feedback adjusts indigo color description to reflect secondary nature of color
Provide guidelines for how to apply color from a palette perspective (blue, purple, neutral, etc.), as well as from a themed approach (background, border, icon, and text).
Content for the palette and usage pages are pulled from Coda resources that serve as the source of truth
Palette: https://coda.io/d/_dbXyUQb2tJW/Color_susdp#_luYqP
Color usage: https://coda.io/d/_dbXyUQb2tJW/Color_susdp#_luuQl
Handoff doc
https://www.figma.com/design/LgYvyrjOdTGmdH2GJQa6CD/Color-usage-patterns?node-id=3-54&m=dev&focus-id=6-639
Overview
Palette
Usage / Background
Accessibility