Skip to content

0.1.1

Choose a tag to compare

@DuckTapeKiller DuckTapeKiller released this 09 Oct 19:54
· 4 commits to main since this release

Dark Reader for Web Viewer 0.1.1

Dark Reader for Obsidian's built-in Web viewer: web pages take your theme's background, text color and font, in dark mode and in light.

Requires: Obsidian 1.8.3 or later, desktop only, with the Web viewer core plugin turned on. Bundles Dark Reader 4.9.133. Tested on Obsidian 1.14.4 (macOS).

Features

  • Matches your theme exactly. Page backgrounds and text become your theme's --background-primary and --text-normal. Links, buttons and accents keep their colors.
  • Dark and light. Pages follow Obsidian as you switch light/dark, change themes or toggle snippets, with no reload.
  • Match Obsidian font (optional). Pages use your theme's text font, including fonts the theme embeds, even on sites with strict security policies. Code and icon fonts are left alone.
  • No white flash. Pages are painted in your colors from the moment they start loading.
  • Works in every Web viewer tab, including popout windows, and after every navigation.
  • Brightness, contrast and sepia sliders, plus commands to toggle and reapply.
  • Dark Reader is bundled. Nothing is downloaded at run time.

Fixed since the initial code

  • Links, buttons and panels were flattened to the body text color. Colors now come from Dark Reader itself.
  • Switching Obsidian between light and dark left pages in the old colors.
  • Toggling off failed after in-page navigation on single-page sites such as GitHub and YouTube.
  • Settings changed while a page was loading were dropped, and color changes were ignored in pages already open.
  • Every navigation showed the bright, unthemed page for about a second.
  • Disabling or updating the plugin could leave pages dark.
  • Light themes with a pure white background came out gray at the default contrast.

Release files

main.js and manifest.json are built from this tag by GitHub Actions, with build provenance attested.

Known limitations

  • Images are not recolored, so a dark logo can be hard to see on a dark page.
  • Below about 80% contrast, very dark themes come out slightly lighter.
  • Fonts must be installed on the system or embedded in the theme.
  • The Web viewer is not a public plugin API, so a future Obsidian update may need a plugin update.
  • Not tested on Windows or Linux.