Skip to content

Commit

Permalink
Use a lighter blue for links in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent-P committed Oct 24, 2019
1 parent c5e7314 commit 6b05b15
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
4 changes: 4 additions & 0 deletions extension/open-in-new-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ body {
}

a {
color: var(--blue-50);
color: var(--link-color);
text-decoration: none;

&:hover {
color: var(--blue-60);
color: var(--link-hover-color);
text-decoration: underline;
}

&:active {
color: var(--blue-70);
color: var(--link-active-color);
}

&:focus {
Expand All @@ -42,7 +42,7 @@ a {

// display icon for external links
&:not([class])[href*="//"]::after {
background-image: url(/open-in-new.svg);
background-image: var(--link-external-icon);
background-repeat: no-repeat;
background-size: 16px 16px;
content: "";
Expand Down Expand Up @@ -420,7 +420,7 @@ img {
background-color: var(--card-background-color);
padding: var(--base-unit) calc(var(--base-unit) * 2);
&:hover {
background-color: var(--ghost-button-hover-background-color);
background-color: var(--default-button-background-color);
@media (prefers-color-scheme: dark) {
background-color: var(--default-button-hover-background-color);
}
Expand Down
9 changes: 9 additions & 0 deletions src/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ $midscreen-max-width: 1400px;
--icon-fill-color: var(--grey-90);
--background-cancel-icon: url(/search-cancel.svg) no-repeat center center;

--link-color: var(--blue-50);
--link-hover-color: var(--blue-60);
--link-active-color: var(--blue-70);
--link-external-icon: url(/open-in-new.svg);

@media (prefers-color-scheme: dark) {
--background-color: var(--grey-80);
Expand All @@ -172,5 +176,10 @@ $midscreen-max-width: 1400px;
--secondary-icon-color: var(--grey-10-a60);
--icon-fill-color: var(--grey-10);
--background-cancel-icon: url(/search-cancel-light.svg) no-repeat center center;

--link-color: var(--blue-40);
--link-hover-color: var(--blue-50);
--link-active-color: var(--blue-60);
--link-external-icon: url(/open-in-new-light.svg);
}
}

0 comments on commit 6b05b15

Please sign in to comment.