Skip to content

Yellow highlight backgrounds and foreground color #30

@dginev

Description

@dginev

Figure 1 in 2510.20075v1 is a good example:

https://arxiv.org/html/2510.20075v1#S1.F1

The v0.8.4 CSS keeps the black-on-yellow light mode correct, as with the PDF.
In dark mode, the foreground text color switches to an appropriate white.
And currently, an HSL map switches the highlight yellow to a similar yellow.

The problem: white-on-yellow is quite difficult to read in practice.

Changing that fill map to oklch shows better results:

[data-theme="dark"] [style*="--ltx-fill-color:"] {
        --fill-color: oklch(from var(--ltx-fill-color) calc(1 - 0.7 * l) c h);
        fill: var(--fill-color);
}

But likely damages other examples? Opening an issue to collect more data and suggestions.

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions