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

Update dark mode link color to lighter blue for better contrast #802

Merged
merged 2 commits into from
Feb 16, 2024

Conversation

lukasoppermann
Copy link
Contributor

Summary

This PR closes https://github.com/github/primer/issues/2011.

Since we added underlines to all links, we can now dial back the contrast between text and links and thus increase the contrast of links with the BG.

@lukasoppermann lukasoppermann requested a review from a team as a code owner February 12, 2024 13:09
@lukasoppermann lukasoppermann requested review from a team and siddharthkp February 12, 2024 13:10
Copy link

changeset-bot bot commented Feb 12, 2024

🦋 Changeset detected

Latest commit: 469c67b

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 Patch

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

Copy link
Contributor

github-actions bot commented Feb 12, 2024

Variables changed
No variables changed

Copy link
Contributor

github-actions bot commented Feb 12, 2024

Design Token Diff

/css/functional/themes/dark-colorblind.css

+++ /home/runner/work/primitives/primitives/tokens-next-private/css/functional/themes/dark-colorblind.css	2024-02-16 08:22:30.311609649 +0000
@@ -123,7 +123,7 @@
 --button-primary-borderColor-active: #f0f6fc1a;
 --button-primary-borderColor-disabled: #1158c7;
 --button-primary-shadow-selected: 0px 0px 0px 0px #000000;
-  --button-invisible-fgColor-rest: #2f81f7;
+  --button-invisible-fgColor-rest: #4493f8;
 --button-invisible-fgColor-hover: #58a6ff;
 --button-invisible-fgColor-disabled: #8b949e;
 --button-invisible-iconColor-rest: #848d97;
@@ -139,7 +139,7 @@
 --button-outline-fgColor-rest: #388bfd;
 --button-outline-fgColor-hover: #58a6ff;
 --button-outline-fgColor-active: #ffffff;
-  --button-outline-fgColor-disabled: #2f81f780;
+  --button-outline-fgColor-disabled: #4493f880;
 --button-outline-bgColor-rest: #f0f6fc;
 --button-outline-bgColor-hover: #30363d;
 --button-outline-bgColor-active: #0d419d;
@@ -171,7 +171,7 @@
 --buttonCounter-outline-bgColor-disabled: #1f6feb0d;
 --buttonCounter-outline-fgColor-rest: #388bfd;
 --buttonCounter-outline-fgColor-hover: #58a6ff;
-  --buttonCounter-outline-fgColor-disabled: #2f81f780;
+  --buttonCounter-outline-fgColor-disabled: #4493f880;
 --buttonCounter-danger-bgColor-hover: #ffffff33;
 --buttonCounter-danger-bgColor-disabled: #bd561d0d;
 --buttonCounter-danger-bgColor-rest: #49020233;
@@ -195,9 +195,9 @@
 --fgColor-muted: #848d97;
 --fgColor-onEmphasis: #ffffff;
 --fgColor-disabled: #8b949e;
-  --fgColor-link: #2f81f7;
+  --fgColor-link: #4493f8;
 --fgColor-neutral: #6e7681;
-  --fgColor-accent: #2f81f7;
+  --fgColor-accent: #4493f8;
 --fgColor-success: #58a6ff;
 --fgColor-attention: #d29922;
 --fgColor-severe: #db6d28;
@@ -532,7 +532,7 @@
   --button-primary-borderColor-active: #f0f6fc1a;
   --button-primary-borderColor-disabled: #1158c7;
   --button-primary-shadow-selected: 0px 0px 0px 0px #000000;
-    --button-invisible-fgColor-rest: #2f81f7;
+    --button-invisible-fgColor-rest: #4493f8;
   --button-invisible-fgColor-hover: #58a6ff;
   --button-invisible-fgColor-disabled: #8b949e;
   --button-invisible-iconColor-rest: #848d97;
@@ -548,7 +548,7 @@
   --button-outline-fgColor-rest: #388bfd;
   --button-outline-fgColor-hover: #58a6ff;
   --button-outline-fgColor-active: #ffffff;
-    --button-outline-fgColor-disabled: #2f81f780;
+    --button-outline-fgColor-disabled: #4493f880;
   --button-outline-bgColor-rest: #f0f6fc;
   --button-outline-bgColor-hover: #30363d;
   --button-outline-bgColor-active: #0d419d;
@@ -580,7 +580,7 @@
   --buttonCounter-outline-bgColor-disabled: #1f6feb0d;
   --buttonCounter-outline-fgColor-rest: #388bfd;
   --buttonCounter-outline-fgColor-hover: #58a6ff;
-    --buttonCounter-outline-fgColor-disabled: #2f81f780;
+    --buttonCounter-outline-fgColor-disabled: #4493f880;
   --buttonCounter-danger-bgColor-hover: #ffffff33;
   --buttonCounter-danger-bgColor-disabled: #bd561d0d;
   --buttonCounter-danger-bgColor-rest: #49020233;
@@ -604,9 +604,9 @@
   --fgColor-muted: #848d97;
   --fgColor-onEmphasis: #ffffff;
   --fgColor-disabled: #8b949e;
-    --fgColor-link: #2f81f7;
+    --fgColor-link: #4493f8;
   --fgColor-neutral: #6e7681;
-    --fgColor-accent: #2f81f7;
+    --fgColor-accent: #4493f8;
   --fgColor-success: #58a6ff;
   --fgColor-attention: #d29922;
   --fgColor-severe: #db6d28;

/css/functional/themes/dark-dimmed.css

+++ /home/runner/work/primitives/primitives/tokens-next-private/css/functional/themes/dark-dimmed.css	2024-02-16 08:22:29.619608518 +0000
@@ -123,7 +123,7 @@
 --button-primary-borderColor-active: #cdd9e51a;
 --button-primary-borderColor-disabled: #50a254;
 --button-primary-shadow-selected: 0px 0px 0px 0px #000000;
-  --button-invisible-fgColor-rest: #3b7cdb;
+  --button-invisible-fgColor-rest: #478be6;
 --button-invisible-fgColor-hover: #539bf5;
 --button-invisible-fgColor-disabled: #768390;
 --button-invisible-iconColor-rest: #717e8b;
@@ -139,7 +139,7 @@
 --button-outline-fgColor-rest: #4184e4;
 --button-outline-fgColor-hover: #539bf5;
 --button-outline-fgColor-active: #cdd9e5;
-  --button-outline-fgColor-disabled: #3b7cdb80;
+  --button-outline-fgColor-disabled: #478be680;
 --button-outline-bgColor-rest: #cdd9e5;
 --button-outline-bgColor-hover: #444c56;
 --button-outline-bgColor-active: #1b4b91;
@@ -171,7 +171,7 @@
 --buttonCounter-outline-bgColor-disabled: #316dca0d;
 --buttonCounter-outline-fgColor-rest: #4184e4;
 --buttonCounter-outline-fgColor-hover: #539bf5;
-  --buttonCounter-outline-fgColor-disabled: #3b7cdb80;
+  --buttonCounter-outline-fgColor-disabled: #478be680;
 --buttonCounter-danger-bgColor-hover: #cdd9e533;
 --buttonCounter-danger-bgColor-disabled: #c93c370d;
 --buttonCounter-danger-bgColor-rest: #5d0f1233;
@@ -195,9 +195,9 @@
 --fgColor-muted: #717e8b;
 --fgColor-onEmphasis: #cdd9e5;
 --fgColor-disabled: #768390;
-  --fgColor-link: #3b7cdb;
+  --fgColor-link: #478be6;
 --fgColor-neutral: #636e7b;
-  --fgColor-accent: #3b7cdb;
+  --fgColor-accent: #478be6;
 --fgColor-success: #57ab5a;
 --fgColor-attention: #c69026;
 --fgColor-severe: #cc6b2c;
@@ -532,7 +532,7 @@
   --button-primary-borderColor-active: #cdd9e51a;
   --button-primary-borderColor-disabled: #50a254;
   --button-primary-shadow-selected: 0px 0px 0px 0px #000000;
-    --button-invisible-fgColor-rest: #3b7cdb;
+    --button-invisible-fgColor-rest: #478be6;
   --button-invisible-fgColor-hover: #539bf5;
   --button-invisible-fgColor-disabled: #768390;
   --button-invisible-iconColor-rest: #717e8b;
@@ -548,7 +548,7 @@
   --button-outline-fgColor-rest: #4184e4;
   --button-outline-fgColor-hover: #539bf5;
   --button-outline-fgColor-active: #cdd9e5;
-    --button-outline-fgColor-disabled: #3b7cdb80;
+    --button-outline-fgColor-disabled: #478be680;
   --button-outline-bgColor-rest: #cdd9e5;
   --button-outline-bgColor-hover: #444c56;
   --button-outline-bgColor-active: #1b4b91;
@@ -580,7 +580,7 @@
   --buttonCounter-outline-bgColor-disabled: #316dca0d;
   --buttonCounter-outline-fgColor-rest: #4184e4;
   --buttonCounter-outline-fgColor-hover: #539bf5;
-    --buttonCounter-outline-fgColor-disabled: #3b7cdb80;
+    --buttonCounter-outline-fgColor-disabled: #478be680;
   --buttonCounter-danger-bgColor-hover: #cdd9e533;
   --buttonCounter-danger-bgColor-disabled: #c93c370d;
   --buttonCounter-danger-bgColor-rest: #5d0f1233;
@@ -604,9 +604,9 @@
   --fgColor-muted: #717e8b;
   --fgColor-onEmphasis: #cdd9e5;
   --fgColor-disabled: #768390;
-    --fgColor-link: #3b7cdb;
+    --fgColor-link: #478be6;
   --fgColor-neutral: #636e7b;
-    --fgColor-accent: #3b7cdb;
+    --fgColor-accent: #478be6;
   --fgColor-success: #57ab5a;
   --fgColor-attention: #c69026;
   --fgColor-severe: #cc6b2c;

/css/functional/themes/dark-high-contrast.css

+++ /home/runner/work/primitives/primitives/tokens-next-private/css/functional/themes/dark-high-contrast.css	2024-02-16 08:22:30.711610303 +0000
@@ -123,7 +123,7 @@
 --button-primary-borderColor-active: #4ae168;
 --button-primary-borderColor-disabled: #4ae16866;
 --button-primary-shadow-selected: 0px 0px 0px 0px #000000;
-  --button-invisible-fgColor-rest: #52a7ff;
+  --button-invisible-fgColor-rest: #60aeff;
 --button-invisible-fgColor-hover: #1e60d5;
 --button-invisible-fgColor-disabled: #bdc4cc;
 --button-invisible-iconColor-rest: #f0f3f6;
@@ -139,7 +139,7 @@
 --button-outline-fgColor-rest: #5cacff;
 --button-outline-fgColor-hover: #71b7ff;
 --button-outline-fgColor-active: #ffffff;
-  --button-outline-fgColor-disabled: #52a7ff80;
+  --button-outline-fgColor-disabled: #60aeff80;
 --button-outline-bgColor-rest: #ffffff;
 --button-outline-bgColor-hover: #525964;
 --button-outline-bgColor-active: #2672f3;
@@ -171,7 +171,7 @@
 --buttonCounter-outline-bgColor-disabled: #409eff0d;
 --buttonCounter-outline-fgColor-rest: #5cacff;
 --buttonCounter-outline-fgColor-hover: #71b7ff;
-  --buttonCounter-outline-fgColor-disabled: #52a7ff80;
+  --buttonCounter-outline-fgColor-disabled: #60aeff80;
 --buttonCounter-danger-bgColor-hover: #01040926;
 --buttonCounter-danger-bgColor-disabled: #ff6a690d;
 --buttonCounter-danger-bgColor-rest: #01040926;
@@ -195,9 +195,9 @@
 --fgColor-muted: #f0f3f6;
 --fgColor-onEmphasis: #0a0c10;
 --fgColor-disabled: #bdc4cc;
-  --fgColor-link: #52a7ff;
+  --fgColor-link: #60aeff;
 --fgColor-neutral: #9ea7b3;
-  --fgColor-accent: #52a7ff;
+  --fgColor-accent: #60aeff;
 --fgColor-success: #28d751;
 --fgColor-attention: #f0b72f;
 --fgColor-severe: #f48b25;
@@ -532,7 +532,7 @@
   --button-primary-borderColor-active: #4ae168;
   --button-primary-borderColor-disabled: #4ae16866;
   --button-primary-shadow-selected: 0px 0px 0px 0px #000000;
-    --button-invisible-fgColor-rest: #52a7ff;
+    --button-invisible-fgColor-rest: #60aeff;
   --button-invisible-fgColor-hover: #1e60d5;
   --button-invisible-fgColor-disabled: #bdc4cc;
   --button-invisible-iconColor-rest: #f0f3f6;
@@ -548,7 +548,7 @@
   --button-outline-fgColor-rest: #5cacff;
   --button-outline-fgColor-hover: #71b7ff;
   --button-outline-fgColor-active: #ffffff;
-    --button-outline-fgColor-disabled: #52a7ff80;
+    --button-outline-fgColor-disabled: #60aeff80;
   --button-outline-bgColor-rest: #ffffff;
   --button-outline-bgColor-hover: #525964;
   --button-outline-bgColor-active: #2672f3;
@@ -580,7 +580,7 @@
   --buttonCounter-outline-bgColor-disabled: #409eff0d;
   --buttonCounter-outline-fgColor-rest: #5cacff;
   --buttonCounter-outline-fgColor-hover: #71b7ff;
-    --buttonCounter-outline-fgColor-disabled: #52a7ff80;
+    --buttonCounter-outline-fgColor-disabled: #60aeff80;
   --buttonCounter-danger-bgColor-hover: #01040926;
   --buttonCounter-danger-bgColor-disabled: #ff6a690d;
   --buttonCounter-danger-bgColor-rest: #01040926;
@@ -604,9 +604,9 @@
   --fgColor-muted: #f0f3f6;
   --fgColor-onEmphasis: #0a0c10;
   --fgColor-disabled: #bdc4cc;
-    --fgColor-link: #52a7ff;
+    --fgColor-link: #60aeff;
   --fgColor-neutral: #9ea7b3;
-    --fgColor-accent: #52a7ff;
+    --fgColor-accent: #60aeff;
   --fgColor-success: #28d751;
   --fgColor-attention: #f0b72f;
   --fgColor-severe: #f48b25;

/css/functional/themes/dark-tritanopia.css

+++ /home/runner/work/primitives/primitives/tokens-next-private/css/functional/themes/dark-tritanopia.css	2024-02-16 08:22:29.963609080 +0000
@@ -123,7 +123,7 @@
 --button-primary-borderColor-active: #f0f6fc1a;
 --button-primary-borderColor-disabled: #5fabfe;
 --button-primary-shadow-selected: 0px 0px 0px 0px #000000;
-  --button-invisible-fgColor-rest: #2f81f7;
+  --button-invisible-fgColor-rest: #4493f8;
 --button-invisible-fgColor-hover: #58a6ff;
 --button-invisible-fgColor-disabled: #8b949e;
 --button-invisible-iconColor-rest: #848d97;
@@ -139,7 +139,7 @@
 --button-outline-fgColor-rest: #388bfd;
 --button-outline-fgColor-hover: #58a6ff;
 --button-outline-fgColor-active: #ffffff;
-  --button-outline-fgColor-disabled: #2f81f780;
+  --button-outline-fgColor-disabled: #4493f880;
 --button-outline-bgColor-rest: #f0f6fc;
 --button-outline-bgColor-hover: #30363d;
 --button-outline-bgColor-active: #0d419d;
@@ -171,7 +171,7 @@
 --buttonCounter-outline-bgColor-disabled: #1f6feb0d;
 --buttonCounter-outline-fgColor-rest: #388bfd;
 --buttonCounter-outline-fgColor-hover: #58a6ff;
-  --buttonCounter-outline-fgColor-disabled: #2f81f780;
+  --buttonCounter-outline-fgColor-disabled: #4493f880;
 --buttonCounter-danger-bgColor-hover: #ffffff33;
 --buttonCounter-danger-bgColor-disabled: #da36330d;
 --buttonCounter-danger-bgColor-rest: #49020233;
@@ -195,9 +195,9 @@
 --fgColor-muted: #848d97;
 --fgColor-onEmphasis: #ffffff;
 --fgColor-disabled: #8b949e;
-  --fgColor-link: #2f81f7;
+  --fgColor-link: #4493f8;
 --fgColor-neutral: #6e7681;
-  --fgColor-accent: #2f81f7;
+  --fgColor-accent: #4493f8;
 --fgColor-success: #58a6ff;
 --fgColor-attention: #d29922;
 --fgColor-severe: #f85149;
@@ -532,7 +532,7 @@
   --button-primary-borderColor-active: #f0f6fc1a;
   --button-primary-borderColor-disabled: #5fabfe;
   --button-primary-shadow-selected: 0px 0px 0px 0px #000000;
-    --button-invisible-fgColor-rest: #2f81f7;
+    --button-invisible-fgColor-rest: #4493f8;
   --button-invisible-fgColor-hover: #58a6ff;
   --button-invisible-fgColor-disabled: #8b949e;
   --button-invisible-iconColor-rest: #848d97;
@@ -548,7 +548,7 @@
   --button-outline-fgColor-rest: #388bfd;
   --button-outline-fgColor-hover: #58a6ff;
   --button-outline-fgColor-active: #ffffff;
-    --button-outline-fgColor-disabled: #2f81f780;
+    --button-outline-fgColor-disabled: #4493f880;
   --button-outline-bgColor-rest: #f0f6fc;
   --button-outline-bgColor-hover: #30363d;
   --button-outline-bgColor-active: #0d419d;
@@ -580,7 +580,7 @@
   --buttonCounter-outline-bgColor-disabled: #1f6feb0d;
   --buttonCounter-outline-fgColor-rest: #388bfd;
   --buttonCounter-outline-fgColor-hover: #58a6ff;
-    --buttonCounter-outline-fgColor-disabled: #2f81f780;
+    --buttonCounter-outline-fgColor-disabled: #4493f880;
   --buttonCounter-danger-bgColor-hover: #ffffff33;
   --buttonCounter-danger-bgColor-disabled: #da36330d;
   --buttonCounter-danger-bgColor-rest: #49020233;
@@ -604,9 +604,9 @@
   --fgColor-muted: #848d97;
   --fgColor-onEmphasis: #ffffff;
   --fgColor-disabled: #8b949e;
-    --fgColor-link: #2f81f7;
+    --fgColor-link: #4493f8;
   --fgColor-neutral: #6e7681;
-    --fgColor-accent: #2f81f7;
+    --fgColor-accent: #4493f8;
   --fgColor-success: #58a6ff;
   --fgColor-attention: #d29922;
   --fgColor-severe: #f85149;

/css/functional/themes/dark.css

+++ /home/runner/work/primitives/primitives/tokens-next-private/css/functional/themes/dark.css	2024-02-16 08:22:29.155607759 +0000
@@ -123,7 +123,7 @@
 --button-primary-borderColor-active: #f0f6fc1a;
 --button-primary-borderColor-disabled: #46bf57;
 --button-primary-shadow-selected: 0px 0px 0px 0px #000000;
-  --button-invisible-fgColor-rest: #2f81f7;
+  --button-invisible-fgColor-rest: #4493f8;
 --button-invisible-fgColor-hover: #58a6ff;
 --button-invisible-fgColor-disabled: #8b949e;
 --button-invisible-iconColor-rest: #848d97;
@@ -139,7 +139,7 @@
 --button-outline-fgColor-rest: #388bfd;
 --button-outline-fgColor-hover: #58a6ff;
 --button-outline-fgColor-active: #ffffff;
-  --button-outline-fgColor-disabled: #2f81f780;
+  --button-outline-fgColor-disabled: #4493f880;
 --button-outline-bgColor-rest: #f0f6fc;
 --button-outline-bgColor-hover: #30363d;
 --button-outline-bgColor-active: #0d419d;
@@ -171,7 +171,7 @@
 --buttonCounter-outline-bgColor-disabled: #1f6feb0d;
 --buttonCounter-outline-fgColor-rest: #388bfd;
 --buttonCounter-outline-fgColor-hover: #58a6ff;
-  --buttonCounter-outline-fgColor-disabled: #2f81f780;
+  --buttonCounter-outline-fgColor-disabled: #4493f880;
 --buttonCounter-danger-bgColor-hover: #ffffff33;
 --buttonCounter-danger-bgColor-disabled: #da36330d;
 --buttonCounter-danger-bgColor-rest: #49020233;
@@ -195,9 +195,9 @@
 --fgColor-muted: #848d97;
 --fgColor-onEmphasis: #ffffff;
 --fgColor-disabled: #8b949e;
-  --fgColor-link: #2f81f7;
+  --fgColor-link: #4493f8;
 --fgColor-neutral: #6e7681;
-  --fgColor-accent: #2f81f7;
+  --fgColor-accent: #4493f8;
 --fgColor-success: #3fb950;
 --fgColor-attention: #d29922;
 --fgColor-severe: #db6d28;
@@ -532,7 +532,7 @@
   --button-primary-borderColor-active: #f0f6fc1a;
   --button-primary-borderColor-disabled: #46bf57;
   --button-primary-shadow-selected: 0px 0px 0px 0px #000000;
-    --button-invisible-fgColor-rest: #2f81f7;
+    --button-invisible-fgColor-rest: #4493f8;
   --button-invisible-fgColor-hover: #58a6ff;
   --button-invisible-fgColor-disabled: #8b949e;
   --button-invisible-iconColor-rest: #848d97;
@@ -548,7 +548,7 @@
   --button-outline-fgColor-rest: #388bfd;
   --button-outline-fgColor-hover: #58a6ff;
   --button-outline-fgColor-active: #ffffff;
-    --button-outline-fgColor-disabled: #2f81f780;
+    --button-outline-fgColor-disabled: #4493f880;
   --button-outline-bgColor-rest: #f0f6fc;
   --button-outline-bgColor-hover: #30363d;
   --button-outline-bgColor-active: #0d419d;
@@ -580,7 +580,7 @@
   --buttonCounter-outline-bgColor-disabled: #1f6feb0d;
   --buttonCounter-outline-fgColor-rest: #388bfd;
   --buttonCounter-outline-fgColor-hover: #58a6ff;
-    --buttonCounter-outline-fgColor-disabled: #2f81f780;
+    --buttonCounter-outline-fgColor-disabled: #4493f880;
   --buttonCounter-danger-bgColor-hover: #ffffff33;
   --buttonCounter-danger-bgColor-disabled: #da36330d;
   --buttonCounter-danger-bgColor-rest: #49020233;
@@ -604,9 +604,9 @@
   --fgColor-muted: #848d97;
   --fgColor-onEmphasis: #ffffff;
   --fgColor-disabled: #8b949e;
-    --fgColor-link: #2f81f7;
+    --fgColor-link: #4493f8;
   --fgColor-neutral: #6e7681;
-    --fgColor-accent: #2f81f7;
+    --fgColor-accent: #4493f8;
   --fgColor-success: #3fb950;
   --fgColor-attention: #d29922;
   --fgColor-severe: #db6d28;

@github-actions github-actions bot temporarily deployed to storybook-preview February 12, 2024 13:12 Inactive
@langermank langermank added the update snapshots Update visual regression test snapshots label Feb 13, 2024
@github-actions github-actions bot removed the update snapshots Update visual regression test snapshots label Feb 13, 2024
@github-actions github-actions bot temporarily deployed to storybook-preview February 16, 2024 08:23 Inactive
@lukasoppermann lukasoppermann merged commit 4fb40ff into main Feb 16, 2024
26 checks passed
@lukasoppermann lukasoppermann deleted the @lukasoppermann/dark-mode-link-contrast branch February 16, 2024 08:32
@primer primer bot mentioned this pull request Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants