Optional containerBackground color of the viewer container.
"#e5e5e5" for light mode, "#1e1e1e" for dark mode
Optional darkDark-mode recolor palette. White paper maps to background and black
text/line-art to foreground, recolored per-color at draw time (OKLab
ramp) so hues are preserved and embedded photos keep their pixels.
Only used when mode === "dark".
Replaces the white paper background.
Replaces black text and line art.
{ background: "#141210", foreground: "#eae6e0" }
Optional darkInversion intensity for dark mode (0-1). Lower values create softer dark backgrounds that are easier on the eyes.
0.9
Dark mode now recolors at draw time (OKLab, hue-preserving,
photos untouched) instead of a CSS invert() filter. This value is
ignored. Use PdfHighlighterTheme.darkModeColors instead.
Optional modeTheme mode. In dark mode, pages are recolored at draw time (hue-preserving, photos kept) using PdfHighlighterTheme.darkModeColors.
"light"
Optional scrollbarScrollbar thumb color.
"#9f9f9f" for light mode, "#6b6b6b" for dark mode
Optional scrollbarScrollbar track color.
"#d1d1d1" for light mode, "#2c2c2c" for dark mode
Theme configuration for PdfHighlighter styling. Controls the appearance of the PDF viewer including dark mode support.