README file from
GithubKami Reader Companion
A desktop-first Obsidian 1.13+ plugin that keeps the workspace on one continuous Kami-inspired Folio Shell across New Tab, Reading, Editing, Graph, Canvas, and other root views. Active Markdown views additionally receive:
- continuous Reading and Editing presentation;
- exact current-heading highlighting in the core Outline when its rendered rows map uniquely to note headings, with native highlighting as the safe fallback;
- adaptive use of spare pane width for wide diagrams, tables, code and embeds;
- an explicit Toggle reading stage command for deep Reading View;
- an optional Toggle focus mode command that follows the active editor line and reveals Reading blocks through pointer or keyboard focus;
- a transient Toggle white page preview command for printing-minded review of one active Markdown document without changing the surrounding shell.
The plugin is desktop-only, targets Obsidian 1.13+, and works with Obsidian's Default Theme. It does not require Kami Reader. Kami Reader remains an optional companion for fuller styling of callouts, tables, code, editor syntax, menus, settings, and other components outside Companion's document treatment. No theme detection or integration setting is required.
Companion writes no note content, stores no workspace state, and restores the active theme when disabled.
Reading Stage, Focus Mode, and White Page Preview
Open the Command Palette and run Kami Reader Companion: Toggle focus mode
to enter the optional focus treatment in either Editing or Reading View. In
Editing View it follows CodeMirror's active line. In Reading View, point to or
keyboard-focus a block to bring it and its neighbors forward; use Arrow Up
and Arrow Down to move between blocks. Workspace chrome returns to full
contrast-safe throughout; hovered, active, or keyboard-focused controls become
the strongest chrome within their group.
Toggle reading stage remains Reading-only and changes the workspace's
spatial presentation. The two modes can be combined: Reading Stage controls
space, while Focus Mode controls attention. Escape exits Reading Stage first,
then Focus Mode. Neither mode is persisted.
Run Kami Reader Companion: Toggle white page preview in either Reading or Editing View to make only the active Markdown leaf use white paper, dark ink, Ink Blue accents, and warm parchment document surfaces. It composes with Stage and Focus, has no default hotkey or Ribbon button, and clears when the active file, leaf, mode, or owner window changes, or when Companion unloads. It never writes frontmatter or saved plugin data. The same light reset also protects Obsidian PDF export when the app is in Dark mode.
The older macOS and Windows matrices are retained as historical references and
are not counted as current release acceptance. Version 0.3.2 uses ten current
Obsidian 1.13.7 macOS captures from an isolated real app process and the tracked synthetic visual-vault: the
Default and Kami Reader themes, light and dark schemes, Reading and Editing,
single and split layouts, split-pane Focus, Reading Stage, and white-page preview under both
Default Dark and Kami Reader Dark. The split captures also verify the approved
26px whitespace gutter. The gate binds those reviewed
pixels to the exact Companion assets and the paired Kami Reader 0.3.0
release theme.css. The release workflow resolves that same asset
from the 0.3.0 tag, so Companion cannot release before the paired Reader tag
exists. The gate records structure and provenance; it does not replace human
pixel review.
Showcase
One Field works with Default and Kami Reader
| Default · Light · Editing Split | Kami Reader · Light · Editing Split |
|---|---|
![]() |
![]() |
Reading and Editing share the same dark field
| Kami Reader · Dark · Editing Split | Kami Reader · Dark · Reading |
|---|---|
![]() |
![]() |
Stage and white-page preview keep intentional boundaries
| Reading Stage · Light | White-page Preview · Dark |
|---|---|
![]() |
![]() |
Local development
npm ci
npm run check
npm run dev:injector
check:visual also needs the exact paired theme asset:
KAMI_VISUAL_THEME_CSS=/path/to/obsidian-kami-0.3.0/theme.css \
npm run check:visual
On PowerShell, set $env:KAMI_VISUAL_THEME_CSS to the same theme.css path
before running npm run check:visual.
Release screenshots must contain only files and text from
tests/fixtures/visual-vault; never capture a personal or production vault.
Companion inherits --font-text-theme for body copy and the optional
--font-heading-theme contract for headings. Themes without the heading token,
including Obsidian Default, safely fall back to their body font.
Paste .dev/inject-kami-reader-companion.js into Obsidian DevTools, then enable
Kami Reader Companion under Settings → Community plugins.
The injector intentionally refuses to update an existing plugin directory. Remove the previous local installation before injecting a new build.





