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

New light and dark neutral scales #976

Closed
wants to merge 23 commits into from
Closed

New light and dark neutral scales #976

wants to merge 23 commits into from

Conversation

langermank
Copy link
Contributor

Introducing... new light and dark neutral base scales! 🎉

neutral scales

This isn't technically a breaking change and there should be very little visual differences right now, but we'll be releasing this in Primitives v9 since its a new way of approaching neutral base scales.

Changes

Inverted scales

Going forward, our base scales will follow a reverse pattern where 0 is the lightest value in light and the darkest value in dark. This makes it easier to maintain and use for functional tokens where in many cases, both light and dark themes will be identical in base value.

Two scales to rule them all

Rather than maintaining separate high contrast scales, we now have only two scales that handle low, medium and high contrast. We adjust contrast by moving up and down the scale, like darker background shades or darker text shades for light high contrast.

Contrast ratios and application

Each step of the scale serves a purpose. The first 5 shades are primarily background shades, 6 and 7 are borders, and 8 to 11 are for text.

Copy link

changeset-bot bot commented Jun 20, 2024

🦋 Changeset detected

Latest commit: 87053db

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 Major

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

@langermank langermank added the update snapshots Update visual regression test snapshots label Jun 20, 2024
@github-actions github-actions bot temporarily deployed to Preview (Storybook) June 20, 2024 23:16 Inactive
@github-actions github-actions bot temporarily deployed to Preview (Storybook) June 20, 2024 23:17 Inactive
@github-actions github-actions bot removed the update snapshots Update visual regression test snapshots label Jun 20, 2024
@langermank langermank added the update snapshots Update visual regression test snapshots label Jun 21, 2024
@github-actions github-actions bot removed the update snapshots Update visual regression test snapshots label Jun 21, 2024
@github-actions github-actions bot temporarily deployed to Preview (Storybook) June 21, 2024 00:50 Inactive
langermank and others added 3 commits June 21, 2024 13:31
@github-actions github-actions bot temporarily deployed to Preview (Storybook) July 18, 2024 00:40 Inactive
@langermank langermank added the update snapshots Update visual regression test snapshots label Jul 18, 2024
@github-actions github-actions bot removed the update snapshots Update visual regression test snapshots label Jul 18, 2024
@github-actions github-actions bot temporarily deployed to Preview (Storybook) July 18, 2024 01:17 Inactive
@langermank langermank added the update snapshots Update visual regression test snapshots label Jul 18, 2024
@github-actions github-actions bot temporarily deployed to Preview (Storybook) July 18, 2024 16:54 Inactive
@github-actions github-actions bot removed the update snapshots Update visual regression test snapshots label Jul 18, 2024
@github-actions github-actions bot temporarily deployed to Preview (Storybook) July 18, 2024 17:27 Inactive
@langermank langermank added the update snapshots Update visual regression test snapshots label Jul 18, 2024
@github-actions github-actions bot temporarily deployed to Preview (Storybook) July 18, 2024 18:33 Inactive
@github-actions github-actions bot removed the update snapshots Update visual regression test snapshots label Jul 18, 2024
@github-actions github-actions bot temporarily deployed to Preview (Storybook) July 18, 2024 19:09 Inactive
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