A layout debug overlay — center/width/padding guides, depth-colored section outlines, labels, and spacing distances — for any page, in any framework. Zero dependencies.
The toolbar below ships inside the engine (toolbar: true) — hit power, then O G L I.
$ npm i -D @dev-lines/core
import { createDevLines } from "@dev-lines/core"; const dl = createDevLines({ contentWidth: 1280, paddingX: 24 }); dl.enable(); // or toggle with ⌘/Ctrl+Shift+L
$ npm i -D @dev-lines/core
import { DevLines } from "@dev-lines/core/react"; {process.env.NODE_ENV === "development" && <DevLines contentWidth={1280} paddingX={24} />}
<script type="module"> import { createDevLines } from "https://esm.sh/@dev-lines/core"; createDevLines({ contentWidth: 1280, paddingX: 24, start: true }); </script>
toolbar: true), the same one running on this page.| ⌘/Ctrl ⇧ L | toggle the overlay |
| O | toggle outlines |
| G | toggle guides |
| L | cycle labels — off → hover → all |
| I | lock inspect on a box — arrows walk the tree |
| B | toggle box-model bands (padding + gap) |
| C | copy the locked/hovered box's handle |
| Alt (hold) | show spacing distances |
| Esc | unlock inspect · disable |