# Mockup Viewer A **design-time** tool for plugin authors. Drop a `.html` file into your vault and Mockup Viewer renders it inside an isolated iframe with Obsidian's `app.css`, the active theme, and your plugin CSS all injected — so it looks like the real thing without the build / reload loop. ## Why Iterating on Obsidian plugin UI is painful: - Want to try a different modal layout? Write TS, build, reload the plugin, open the modal, see the colour is wrong, change, reload again. - Plain HTML in Reading mode misses Obsidian's CSS variables, font stack, and host-class selectors. It never looks like the real plugin. - Want to test mobile UI? Toggling `is-phone` on Obsidian itself breaks the whole app. - Got an HTML mockup from a designer or AI? You need to eyeball it side-by-side with your real plugin styles, without running the full plugin. Mockup Viewer solves this: - Save HTML into `Mockup/foo.html` — the preview appears instantly. - The iframe boundary keeps `is-phone` / `is-keyboard-open` / your host classes from leaking onto Obsidian's own chrome. - Obsidian's app.css + your plugin's styles.css are both injected, so visuals are ~1:1 with the real plugin. - Edits hot-reload (200 ms debounce). Theme switches re-render too. > **Trust model.** Mockup Viewer executes whatever `