Skip to content

SmilesViewer molecule SVGs don't adapt to dark mode #13

Description

@dotsdl

Problem

SmilesViewer renders molecule SVGs from OpenChemLib on a hardcoded white background (bg-white with no dark: variant). In dark mode, molecules appear as bright white rectangles against the dark page.

Suggested fix

Add a dark mode background variant to the container, and investigate whether OpenChemLib's toSVG options support configuring atom/bond colors so that molecules are legible on dark backgrounds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions