Skip to content

Conversation

@hugovk
Copy link
Member

Without wanting to bikeshed too much!

The dark theme's current background colour has a bit of a greenish tint: #001111 (labelled "Dark Green" on some sites) which looks a bit off.

The background shouldn't be pure black, the contrast is too high. Here's what a few other sites use:

Previews:

#001111
#121212
#202020
#202124
#2d2d2d
imageimageimageimageimage

Material Design's #121212 is often suggested (1, 2, 3, 4) so I've gone for that.

No contrast errors at https://wave.webaim.org/report#/https://hugovk-peps.readthedocs.io/en/dark-bgcolor/ or https://wave.webaim.org/report#/https://hugovk-peps.readthedocs.io/en/dark-bgcolor/pep-0008.

Demo

https://pep-previews--2977.org.readthedocs.build/

@hugovkhugovk added the infra Core infrastructure for building and rendering PEPs label Jan 22, 2023
Copy link
Member

@CAM-GerlachCAM-Gerlach left a comment

Choose a reason for hiding this comment

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

One tweak, otherwise SGTM

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Copy link
Member

@CAM-GerlachCAM-Gerlach left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @hugovk !

@hugovkhugovk merged commit 15caa8f into python:mainJan 24, 2023
@hugovkhugovk deleted the dark-bgcolor branch January 24, 2023 05:53
JelleZijlstra pushed a commit to JelleZijlstra/peps that referenced this pull request Jan 24, 2023
…ython#2977) * Use #121212 for dark theme bgcolor * Use #1111111 for dark theme bgcolor Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infraCore infrastructure for building and rendering PEPs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@hugovk@CAM-Gerlach