Sites with dark mode usually have a black footer with light text, but in the Code of Conduct pages, the footer is light background color with light text.

Sample screenshot from Stack Overflow Code of Conduct page's footer:

Stack Overflow Code of Conduct footer with dark mode


2 Answers 2


Thanks for letting us know about this bug. It was, as correctly deduced here, a specificity issue. Rather than edit the files (which are used in a bunch of places), I just removed the product css from that page and pulled in only what was necessary to keep the typefaces consistent. This fix is live now, please let me know if you notice any issues with it, and thanks again!


Helping the developers a bit, I found the root cause: the Code of Conduct page is loading product.css file, which overrides the footer style, and is not loaded in the ordinary Stack Overflow pages.

Quick fix is to just remove the override there, as it's already defined in primary.css however I can't know other implications it might have, of course.

  • 6
    Greatly appreciate the help. I'm sure it will save our devs some time.
    – Piper Staff
    Commented Mar 7 at 14:20
  • 1
    Afaict, product.css only affects the font in the title and lede (in light mode).
    – wizzwizz4
    Commented Mar 7 at 23:50
  • 2
    This did indeed save me some time, thank you!
    – kristinalustig StaffMod
    Commented Mar 8 at 22:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .