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

Publish new functional color system #224

Merged
merged 19 commits into from
Sep 3, 2021
Merged

Publish new functional color system #224

merged 19 commits into from
Sep 3, 2021

Conversation

colebemis
Copy link
Contributor

@colebemis colebemis commented Aug 30, 2021

Summary

For the past few months, we've been testing new color variables (stored in the colors_v2 directory) on github.com. We're now ready to add the new color variables to the colors directory and deprecate old color variables.

This PR does the following:

  • Adds new functional color variables.
  • Deprecates variables from the old color system
  • Adds a Dark High Contrast theme
Before After
Untitled-2021-07-21-1443(3) Untitled-2021-07-21-1443(4)

Note: We should not release this change until we've updated our color system docs (#225)

@changeset-bot
Copy link

changeset-bot bot commented Aug 30, 2021

🦋 Changeset detected

Latest commit: e3cd86e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/primitives Minor

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

@vercel
Copy link

vercel bot commented Aug 30, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/primer/primitives/FiLh2apndXtKZVug9A5hi7Yk9w47
✅ Preview: https://primitives-git-publish-v2-primer.vercel.app

@colebemis colebemis marked this pull request as ready for review August 31, 2021 00:27
@colebemis colebemis requested a review from a team as a code owner August 31, 2021 00:27
@colebemis colebemis requested review from jonrohan and simurai and removed request for a team August 31, 2021 00:27
Copy link
Contributor

@simurai simurai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we wait with merging this until users won't be able to disable the "Dark High Contrast" feature preview?

@colebemis
Copy link
Contributor Author

@simurai Yeah, let's hold off until we remove the feature flag from github.com. In the meantime, we'll need to keep this branch up-to-date if we make bug fixes.

@colebemis colebemis changed the title Publish v2 variables Publish new functional color system Sep 2, 2021
- name: Compute variable count
run: npx ts-node .github/v2-var-count.ts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variables in colors/ and colors_v2/ are the same now so this action won't give us useful information anymore.

Copy link
Member

@jonrohan jonrohan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks pretty straight forward, had a question but not sure if I am asking something that's out of step with the plan.

@@ -1,86 +0,0 @@
import {merge} from '../../src/utils'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this deletion count as major? Or was the direct data/colors/dark_dimmed never used by external users?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These source files are never referenced directly so it has no impact on consumers.

"introShelf.gradientRight": "success.subtle",
"introShelf.gradientIn": "canvas.default",
"introShelf.gradientOut": null
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a side thought, it would be awesome to automate this script and have actions check it in on prs. So nobody will have to remember to re-run the script.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I thought about that too. But I'm curious if that's something we always want to automate.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's see how the manually keep the file up-to-date goes after the v2 migration, then we can re-evaluate.

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.

3 participants