5

With the dark theme, the background color of inline code is gray, while the background color of the code blocks is black:

This disturbs me a little. IMHO these two background colors should be identical, for better readability and better aesthetic.

What do you think of my suggestion? Do you agree?

I didn't check the background colors of the light theme.

1

1 Answer 1

7
A code block's background color

does not need to match inline code's background color as they serve different purposes. And indeed, in light mode, they differ, with a code block having a lighter gray than an inline run of code.

In my opinion, as long as the code block's background has sufficient contrast with the background of the surrounding post, I'm good.

CertainPerformance, in a related post on the then-new design has noted, rightfully, that the contrast between the code block's background color and the background color of the post is quite low, and perhaps insufficient.

4
  • 7
    as long as the code block's background has sufficient contrast with the background of the surrounding post Though, I don't think it does in light mode Sep 29, 2020 at 13:48
  • 2
    @CertainPerformance And that's a valid critique; the ratio is only 1.08:1; practically identical. It's enough for me, and that's obviously the most important thing ;-) Sep 29, 2020 at 13:54
  • Given that even with the old theme code blocks were prone to mis-use, it would be best to make these as similar as possible.
    – Jongware
    Sep 29, 2020 at 14:26
  • 3
    @usr2564301 I really doubt that making the colors more similar will make the misuse any better. Misusers gonna misuse. Sep 29, 2020 at 14:30

You must log in to answer this question.

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