-
Notifications
You must be signed in to change notification settings - Fork 54
Add contribution graph tokens #1166
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
🦋 Changeset detectedLatest commit: f0f57bd The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Design Token Diff (CSS)
|
Design Token Diff (StyleLint)The message is too long to be displayed here. For more details, please check the job summary. |
Design Token Diff (Figma)The message is too long to be displayed here. For more details, please check the job summary. |
| 'org.primer.overrides': { | ||
| dark: { | ||
| $value: '{base.color.white}', | ||
| alpha: 0.05, | ||
| }, | ||
| 'dark-dimmed': { | ||
| $value: '{base.color.white}', | ||
| alpha: 0.05, | ||
| }, | ||
| 'dark-high-contrast': { | ||
| $value: '{base.color.white}', | ||
| alpha: 1, | ||
| }, | ||
| 'light-high-contrast': { | ||
| alpha: 1, | ||
| }, |
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.
How does this look @lukasoppermann? Can I just override alpha like I've done for light high contrast?
Also, you may notice all of these border colors are the same (so why do we need individual tokens?) I plan to override them individually to achieve 3:1 contrast behind our border contrast feature flag. I'm not sure what the token structure will look like for that yet but I know I need custom values for each level 😄
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.
Yes, it works.
…itives into contrib-graph-tokens
Currently, the contribution graph colors are custom (outside of Primer) and only support
lightanddark. I'd like to move them here so we can support all themes, including some upcoming contrast work.Part of https://github.com/github/accessibility-audits/issues/10272
I have attempted to match the existing custom colors as closely as possible. I'm renaming these to use a
contributionpattern name because "calendar" feels misleading. The number variants represent how many contributions.