# How GitHub improved color contrast in Primer with shared tokens and automated checks

DevFeed: [How GitHub improved color contrast in Primer with shared tokens and automated checks](<https://devfeed.tech/articles/unlocking-inclusive-design-how-primer-s-color-system-is-making-github-com-more-inclusive-68002.md>)

Original publisher: [Read original article](<https://github.blog/engineering/user-experience/unlocking-inclusive-design-how-primers-color-system-is-making-github-com-more-inclusive/>)

Author: Lukas Oppermann

Published: 2023-05-11T17:56:27Z

Content type: article

Language: en

Sources: [GitHub Blog](<https://devfeed.tech/sources/github-engineering.md>), [GitHub Engineering](<https://devfeed.tech/sources/github.md>)

Topics: [Primer](<https://devfeed.tech/topics/primer.md>), [Design system](<https://devfeed.tech/topics/design-system.md>), [inclusive design](<https://devfeed.tech/topics/inclusive-design.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>)

Tags: [accessibility](<https://devfeed.tech/tags/accessibility.md>), [design-systems](<https://devfeed.tech/tags/design-systems.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [primer](<https://devfeed.tech/tags/primer.md>), [user-experience](<https://devfeed.tech/tags/user-experience.md>)

## AI overview

GitHub improved color contrast across Primer's themes by auditing color pairs and updating shared color tokens. The team automated contrast checks, handled transparency through color blending, and integrated the checks into pull requests. Gradual rollout and user feedback supported changes that resolved hundreds of accessibility issues across more than a thousand use cases.

## Source excerpt

How Primer's updated light and dark theme color contrast strategy resolved hundreds of color-contrast-related accessibility issues over one thousand use cases.