Skip to content

Commit

Permalink
Add dark mode (#207)
Browse files Browse the repository at this point in the history
* add dark mode style to index

* add dark mode styles for contributor links
  • Loading branch information
etorres07 authored Oct 16, 2024
1 parent d6d95a5 commit ae1afa7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/styles/contributor-details.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
h2 {
color: #0096ff;
}

@media screen and (prefers-color-scheme: dark) {
a,
#contributor-grid a:visited {
color: #0096ff;
}
}
11 changes: 11 additions & 0 deletions styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,14 @@ body {
'Segoe UI Emoji', 'Segoe UI Symbol';
font-size: 16px;
}

@media screen and (prefers-color-scheme: dark) {
#contributor-grid * {
color: #fff;
}

body {
background-color: #333;
color: #fff;
}
}

0 comments on commit ae1afa7

Please sign in to comment.