Skip to content
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

Merged
merged 23 commits into from
Aug 27, 2024
Merged

Adds color guideline documentation #989

merged 23 commits into from
Aug 27, 2024

Conversation

egoens
Copy link
Contributor

@egoens egoens commented Aug 23, 2024

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

image

Palette

image

Usage / Background

image

Accessibility

image

Copy link

netlify bot commented Aug 23, 2024

Deploy Preview for thumbprint ready!

Name Link
🔨 Latest commit 292b326
🔍 Latest deploy log https://app.netlify.com/sites/thumbprint/deploys/66ce0fd376e9940008494483
😎 Deploy Preview https://deploy-preview-989--thumbprint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Aug 23, 2024

Deploy Preview for thumbprint-gatsby canceled.

Name Link
🔨 Latest commit 292b326
🔍 Latest deploy log https://app.netlify.com/sites/thumbprint-gatsby/deploys/66ce0fd35529ab00088c86cf

@egoens egoens requested a review from danoc August 26, 2024 20:44
@egoens egoens marked this pull request as ready for review August 26, 2024 20:45
Copy link
Member

@danoc danoc left a 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 })}
Copy link
Member

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);
Copy link
Member

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({
Copy link
Member

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={...} />

Copy link
Contributor Author

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!

@egoens egoens merged commit 2aa30f5 into master Aug 27, 2024
9 checks passed
@egoens egoens deleted the erik/color-guidelines branch August 27, 2024 18:06
egoens added a commit that referenced this pull request Aug 27, 2024
egoens added a commit that referenced this pull request Aug 28, 2024
This reverts commit 2aa30f5 (color usage guidance)
egoens added a commit that referenced this pull request Aug 29, 2024
egoens added a commit that referenced this pull request Sep 4, 2024
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants