Open
Description
I'm trying to make inline code elements in markdown (the ones surrounded with backticks) look nice in Clikt help.
The default colors in Clikt for this markdown element type are the default blue highlight over a middle gray background, which has a low contrast and doesn't look very nice:
I tried to use some white-over-gray colors like this:
styles["markdown.code.span"] = styles["markdown.code.span"] + (TextColors.white on TextColors.rgb("#32373e"))
It looks slightly nicer in dark-themed terminals:
But this is quite bad for light themes (the background is too dark, so too eye-catchy):
I would like to adjust the colors depending on what the theme of the current terminal is. But I wonder if this is even possible. Is there any way to know what the default foreground/background colors are?
Metadata
Metadata
Assignees
Labels
No labels