
I wanted to add dark mode support to the default nginx “Welcome to nginx” page. This is about the simplest change I could choose to make - it’s a simple, backwards compatible, small additive change to one single index.html
file. My initial version of this change looks like this, and is added to the files <style>
element, in the <head>
section:
@media (prefers-color-scheme: dark) {
body {
background-color: #363839;
color: #d1cec9;
}
a {
color: #c4c4ff;
}
}
So, this is the process of getting that change from my brain, into the upstream nginx codebase.