Skip to content

Commit

Permalink
docs: Website dark mode (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbmorley authored Jan 21, 2024
1 parent 98f8e03 commit b289b11
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
21 changes: 17 additions & 4 deletions docs/css/style.css
Original file line number Diff line number Diff line change
@@ -1,21 +1,34 @@
:root {
--tint-color: color(display-p3 0.946 0.64 0.263);
--brand-color: color(display-p3 0.946 0.64 0.263);
--body-color: #000000;
--text-color: #000000;
--background-color: #ffffff;
--navigation-background: rgba(255, 255, 255, 0.7);
--content-width: 900px;
--vertical-spacing: 15px;
}

@media (prefers-color-scheme: dark) {

:root {
--text-color: #ffffff;
--background-color: #181818;
--navigation-background: rgba(24, 24, 24, 0.7);
}

}

body {
font-family: Helvetica, sans-serif;
font-weight: 200;
margin: 0;
color: var(--body-color);
background-color: var(--background-color);
color: var(--text-color);
}

a {
text-decoration: underline;
color: var(--body-color);
color: var(--text-color);
}

a:hover {
Expand All @@ -38,7 +51,7 @@ ul.navigation {
box-sizing: border-box;
font-weight: 400;
text-align: center;
background: rgba(255, 255, 255, 0.7);
background: var(--navigation-background);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
Expand Down
Binary file added docs/images/screenshot-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion docs/index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ title: About
<a href="https://testflight.apple.com/join/PeUmrJ4X" target="_blank">TestFlight Public Beta</a>
</nav>

<img class="hero" src="/images/screenshot.png" width="867" />
<picture class="hero" width="868">
<source srcset="/images/screenshot-dark.png" media="(prefers-color-scheme: dark)">
<img class="hero" src="/images/screenshot.png" />
</picture>

Overview is a minimal app that gives you an at-a-glance overview of how you spend your time each month by grouping like-named calendar entries.

Expand Down

0 comments on commit b289b11

Please sign in to comment.