Hello,
I noticed the Ledger documentation site
<
https://ledger-cli.org/doc/ledger3.html> now attempts to support the
dark theme. To that end, it sets the body background to the value of
variable --background-color, which is conditionally set to the value
of --dark-background-color, which is #212121. It also sets default
color to --color, conditionally set to --dark-color, which is #fefefe.
The problem is first seen in § 4.5.4 Complete control over commodity
pricing, under “A valuation function receives three arguments:”, where
argument names and descriptions are formatted as a definition list
(<dl> containing <dt>/<dd> pairs). The definition term element, along
with fifth and sixth level headings, is styled without any regard to
theme:
h5, h6, dt { color: #222; }
which is invisible on the dark background of #212121.
As a workaround, I’m injecting a userstyle of:
h5, h6, dt { color: var(--color); }