-
Notifications
You must be signed in to change notification settings - Fork 39
added a dark mode #458
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
base: main
Are you sure you want to change the base?
added a dark mode #458
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks great. I’d tried this myself in the past but wasn’t sure how to handle the sponsor logos. Boxing them is a nice solution.
body { | ||
background-color: #0D0D0D ; | ||
color: #B3B3B3; | ||
outline: 5px dashed #000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What’s the purpose of this outline? I don’t see how it’s visible.
|
||
} | ||
h1,h2,h3,h4,h5,h6 { | ||
text-shadow: 0px 1px 1px #565656; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use variables to override just the color? Something more like --heading-text-shadow-color: #565656;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternatively, removing the text shadow altogether (including from the light color scheme) sounds reasonable.
&, &:active { | ||
color: #1D7193; | ||
} | ||
&:visited { | ||
color: #1D7193; | ||
} | ||
&:hover { | ||
color: #565656; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can these be bumped up to a text contrast ratio of ≥4.5?
@@ -39,3 +39,10 @@ | |||
width: auto; | |||
} | |||
} | |||
@media (prefers-color-scheme: dark) { | |||
.logo-wall { | |||
display: flex; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
display: flex; |
Redundant, and probably not something we should be touching with a color scheme change anyway.
.logo-wall{ | ||
background-color: #B3B3B3; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.logo-wall{ | |
background-color: #B3B3B3; | |
} |
Redundant
display: flex; | ||
border-radius: 4px; | ||
background-color: #B3B3B3; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | |
border-top: 12px solid #0C5A73; | |
margin-left: auto; | |
margin-right: auto; | |
padding-bottom: 0.5em; | |
padding-top: 0.5em; | |
width: fit-content; | |
} |
Not sure about this but maybe a direction to consider
325603a | suggestion |
---|---|
![]() |
![]() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This adds a dark mode to the seagl website using the
prefers-color-scheme
media feature.Colors were chosen from the official color palette.
see: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme
and: https://seagl.org/style_guide#ColorPalette