Skip to content

Commit

Permalink
feat: Update buttons to handle dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jun 30, 2020
1 parent f1c0b32 commit 7557666
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
12 changes: 11 additions & 1 deletion src/components/Button.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}

.primary {
color: #fff;
color: var(--color-white);
border-color: var(--color-brand-800);
background-color: var(--color-brand-800);
}
Expand All @@ -23,10 +23,20 @@
color: var(--color-neutrals-800);
border-color: var(--color-neutrals-100);
background-color: var(--color-neutrals-100);

:global(.dark-mode) & {
color: var(--color-white);
border-color: var(--color-dark-100);
background-color: var(--color-dark-100);
}
}

.plain {
color: var(--color-brand-800);
border-color: transparent;
background-color: transparent;

:global(.dark-mode) & {
color: var(--color-brand-400);
}
}
3 changes: 0 additions & 3 deletions src/components/CodeSnippet.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@

.copyButton {
font-size: 0.75rem;
color: var(--link-color);
background: none;
border: none;
outline: none;
}

Expand Down
1 change: 0 additions & 1 deletion src/theme.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.light-mode {
--primary-background: var(--color-white);
--primary-text-color: var(--color-neutrals-700);
--primary-button-background-color: var(--color-brand-800);
--primary-surface-background-color: var(--color-white);

--secondary-background-color: var(--color-neutrals-100);
Expand Down

0 comments on commit 7557666

Please sign in to comment.