Skip to content

Commit

Permalink
Add light theme to damo.io
Browse files Browse the repository at this point in the history
  • Loading branch information
dam5s committed Feb 15, 2024
1 parent f805110 commit 7844154
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Damo.Io.Server/www/styles/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,23 @@
--emphasis-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: light) {
:root {
--bg-color: #eee;
--fg-color: #444;
--card-color: rgba(0, 0, 0, 0.05);

--menu-item-bg-not-selected: color-mix(in srgb, var(--primary-color), transparent 90%);
--menu-item-bg-selected: color-mix(in srgb, var(--primary-color), transparent 80%);
--menu-item-bg-hover: color-mix(in srgb, var(--primary-color), transparent 70%);

--article-date-text-color: rgba(0, 0, 0, 0.5);

--card-shadow: 1px 0 1px rgba(0, 0, 0, 0.15);
--emphasis-shadow: 1px 0 1px rgba(0, 0, 0, 0.3);
}
}

html {
font-size: 62.5%;
background-color: var(--bg-color);
Expand Down Expand Up @@ -158,6 +175,11 @@ a:link, a:hover, a:visited, a:active {
color: var(--link-color);
}

a:active {
position: relative;
top: 1px;
}

p {
margin: 0 0 2.4rem;
}
Expand Down

0 comments on commit 7844154

Please sign in to comment.