Published February 27, 2026 | Version v1

Scary Stories to Tell in the Dark (Mode)

  • 1. ROR icon North Carolina State University

Contributors

  • 1. ROR icon North Carolina State University

Description

After learning through web analytics that 38% of our users have turned on dark mode at the operating-system level, we decided to implement dark mode on our library’s website. We designed a dark color palette that balanced brand identity, readability, and accessibility, then implemented it using the new light-dark() CSS function. This approach allowed us to define paired colors for light and dark modes across our stylesheets. We’ll share the project’s scope, implementation details, testing process, and slightly scary lessons we learned the hard way. You, too, can implement dark mode and receive user feedback like this: “Yes yes yes yay this is amazing!!!!!! This is life changing for me.” “OMG thank you! My eyes are happy!”

Files

Scary Stories to Tell in The Dark (Mode) - Davis and Wynn - Code4Lib 2026.pdf

Additional details