Skip to content

Low contrast in light mode #2795

Closed
Closed
@personalizedrefrigerator

Description

Search terms

Contrast, Accessibility

Expected Behavior

Method names and get signatures rendered by TypeDoc should have sufficient contrast in light mode.

Actual Behavior

At present, some content is difficult to read in light mode due to low contrast:

screenshot: FireFox contrast checker shows 2.72:1 contrast

For example, properties with color --light-color-ts-method have contrast 2.72:1 with the background in the default theme.

Steps to reproduce the bug

To reproduce:

  1. Generate documentation for a project.
  2. Switch to TypeDoc's light theme (if not already enabled).
  3. Inspect the color contrast for a method name.

An example repository that reproduces the issue can be found here.

Note

This issue may be related to this commit.

Environment

  • Typedoc version: 0.27.2
  • TypeScript version: 5.7.2
  • Node.js version: 22.11.0
  • OS: Fedora 41

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions