Discovery & Process
The first step I took was to research how dark themes are used on other sites in terms of the color relationship from light to dark, color use in the background and foreground, use in hover states, and how different eye disorders affect perception of colors. I pulled examples of other sites, apps, and operating systems that successfully implemented dark mode and based my initial color discovery on those designs. I mostly adhered to the w3 Design System color palette, but found that I needed to pull in some similar outside shades for better contrast.
Once I had the initial palette, I used it to mock up different pages on our site to assign colors to each component. I used a color contrast analyzer app to make sure that all text, icons, and any foreground elements passed contrast tests against the background colors. I then created a guide that mapped the colors of each component in light mode to its dark mode counterpart.
We tested this new dark theme with users and sent it out to other teams to test with their products.