Skip to content

Add dark color palette #256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 65 additions & 19 deletions app.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,48 @@
:root {
--background-color-1: linear-gradient(168deg, #fff 800px, #f6f9fc 800px);
--background-color-2: #fff;
--foreground-color-1: #444;
--foreground-color-2: #222;
--foreground-color-3: #333;
--foreground-color-link: #4078c0;
--border-color-1: #efefef;
--background-header:#fff;
--background-codeblock: #334;
--foreground-codeblock: #c9c5c4;
}

@media (prefers-color-scheme: dark) {
:root {
--background-color-1:#1A202C;
--border-color-1: #141922d9;
--background-color-2: #1B1E24;
--foreground-color-1: #ffffff;
--foreground-color-2: #f0f0f0;
--foreground-color-3: #c9c9c9;
--foreground-color-link: #77B5E9;
--background-codeblock: #232831;
--foreground-codeblock: #ffffff;
}

.left, .right {
border-radius: 6px;
filter: invert(100%);
}

#select, #select option {
background-color: var(--background-color-2);
color: var(--foreground-color-1);
padding: 5px;
border: 1px solid var(--foreground-color-3);
border-radius: 6px;
}

}

.block a img {
background-color: #fff;
}

.select {
position: relative;
display: inline-block;
Expand Down Expand Up @@ -74,7 +119,7 @@

body,
html {
height: 100%
height: 100%;
}

body {
Expand All @@ -93,11 +138,11 @@ body {
grid-template-columns: 1fr;
grid-template-rows: 72px 1fr;
grid-template-areas: "header" "content";
width: 100%
width: 100%;
}

a {
color: #4078c0;
color: var(--foreground-color-link);
text-decoration: none
}

Expand Down Expand Up @@ -143,12 +188,12 @@ textarea:focus {
}

.codeblock {
background: #334;
background: var(--background-codeblock);
padding: 12px 12px 4px 12px;
max-width: calc(100vw - 56px);
border-radius: 6px;
margin: 0;
color: #c9c5c4;
color: var(--foreground-codeblock);
font-size: 15px;
position: relative;
font-family: "Roboto Mono", "Courier New", Menlo, "DejaVu Sans Mono", Monaco, Courier, monospace
Expand Down Expand Up @@ -353,7 +398,7 @@ textarea:focus {
height: 100%;
width: 100%;
position: sticky;
background: #fff;
background: var(--background-color-2);
z-index: 100;
top: 0;
display: flex;
Expand Down Expand Up @@ -385,11 +430,11 @@ textarea:focus {
}

.header .nav a:hover {
color:#333;
color:var(--foreground-color-3);
}

.header .nav .item {
color: #777;
color: var(--foreground-color-link);
text-decoration: none;
padding-right: 18px;
padding-left: 18px;
Expand Down Expand Up @@ -455,7 +500,7 @@ textarea:focus {
align-items: center;
width: calc(100% - 32px);
max-width: 1200px;
color: #444;
color: var(--foreground-color-1);
margin: 32px 0;
}

Expand Down Expand Up @@ -493,8 +538,8 @@ textarea:focus {

.landing .hero .button .options-container .options {
position: absolute;
background: #fff;
color: #333;
background: var(--background-color-2);
color: var(--foreground-color-3);
border: 1px solid #eee;
right: 0;
top: 54px;
Expand Down Expand Up @@ -586,7 +631,7 @@ textarea:focus {
position: absolute;
bottom: -24px;
left: 0;
color: #333;
color: var(--foreground-color-3);
text-decoration: none
}

Expand Down Expand Up @@ -690,7 +735,7 @@ textarea:focus {
flex-direction: column;
justify-content: flex-start;
align-items: center;
background: linear-gradient(168deg, #fff 800px, #f6f9fc 800px);
background: var(--background-color-1);
padding-bottom: 32px
}

Expand All @@ -700,10 +745,10 @@ textarea:focus {
width: calc(100vw - 32px);
justify-content: space-around;
margin-top: 32px;
background: #fff;
color: #222;
background: var(--background-color-2);
color: var(--foreground-color-2);
border-radius: 6px;
border: 1px solid #efefef
border: 1px solid var(--border-color-1);
}

.landing .section h1,
Expand Down Expand Up @@ -742,7 +787,8 @@ textarea:focus {
.landing i {
max-width: calc(100vw - 64px);
text-align: center;
font-size: 14px
font-size: 14px;
color: var(--foreground-color-1);
}

@media (max-width:1500px) {
Expand Down Expand Up @@ -855,11 +901,11 @@ textarea:focus {
flex-direction: column;
align-items: center;
justify-content: center;
background: #fff;
background: var(--background-color-2);
color: #000;
height: 100px;
width: 125px;
border: 1px solid #efefef;
border: 1px solid var(--border-color-1);
border-radius: 6px;
text-decoration: none;
box-shadow: none;
Expand Down