The style for inline code (``) seems to be the same in the light and dark theme (background #dedede). Could that be changed?
IMHO, the background is maybe a bit too dark in light mode, and way too bright in dark mode. Admittedly I probably overuse this feature, but it can be kind of blinding.
Looking at other Discourse instances, I guess it was changed to the current style because the default one doesn’t stand out enough in the light theme? If so, I’d agree with that to an extent; I do appreciate not having to worry about punctuation being interpreted as part of a command.
I made a possible change — try setting your site theme to Testing Dark (use at your own risk in preferences: interface (make sure to hit the Save button). What do you think?
They’ve used colors that are already defined for the code-highlighting embedding, and borrowed those for inline code. The code-highlighting CSS already has dark-mode switching, so inline code gets it for free.
IOW, code_highlighting.scss (on the Python or Fedora instances) ends with:
p > code,
li > code,
pre > code {
color: var(--primary-very-high);
background: var(--hljs-bg);
}
By simply not overriding that at all, inline code matches the highlighted code blocks, in either palette.
(Oops, sorry. This got posted as a reply to Matt but became a reply to Barry.)
I think we still want to override it for a more distinct look than is default but I’ll look for something that works on both light and dark without being Too Much.
I mean, i don’t know if inline red fixed-width text is the hill I’d want to die on, personally, from a branding perspective… but it’s not my call, obviously.
FTR, in terms of fixed-width text rendering, here’s the site’s current theme in dark mode…
Here’s the same thing with the theme overrides disabled so that it falls back to the default styles from code_highlighting.scss…
(I can’t tell if the background to the inline text really is darker than the background to the highlighted block, or if that’s just an optical illusion. It shouldn’t be darker, unless there’s some non-opaque color rule I failed to spot.)
I’ve been using this theme, and I like it a lot better, but I’m not sure there’s enough contrast.
I noticed that Pagure uses a slightly paler pink (#e83e8c) with no background. My Dark Reader extension lightens that a bit further to #e94a93 for dark mode. I think it works pretty well.