Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

added a dark mode #458

wants to merge 1 commit into from

Conversation

sen-h
Copy link

@sen-h sen-h commented Mar 28, 2025

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

@sen-h sen-h requested a review from AndrewKvalheim March 28, 2025 01:35
Copy link
Member

@AndrewKvalheim AndrewKvalheim left a 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;
Copy link
Member

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;
Copy link
Member

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;

Copy link
Member

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.

Comment on lines +414 to +422
&, &:active {
color: #1D7193;
}
&:visited {
color: #1D7193;
}
&:hover {
color: #565656;
}
Copy link
Member

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;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
display: flex;

Redundant, and probably not something we should be touching with a color scheme change anyway.

Comment on lines +427 to +429
.logo-wall{
background-color: #B3B3B3;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.logo-wall{
background-color: #B3B3B3;
}

Redundant

display: flex;
border-radius: 4px;
background-color: #B3B3B3;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
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
325603a suggestion

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code is still bright:

code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants