@sobagu/devtools
v0.1.2
Published
Sobagu CSS in-page inspector: hover an element to see its style props and CSS
Maintainers
Readme
@sobagu/devtools
An in-page inspector for Sobagu. Press Alt+Shift+S and hover any element to see its Sobagu props,
decoded from the class names (for example md › hover › shadow = lg), with the CSS each one produces.
Click to pin an element, Copy props to copy them as JSX, Esc to close.
It is plain DOM code with no dependencies, so it works with React, Vue, Svelte, Solid, Angular and plain HTML. Use it in development only.
Install
npm i -D @sobagu/devtoolsUsage
// your entry file, e.g. main.ts (Vite)
import { enableDevtools } from '@sobagu/devtools'
if (import.meta.env.DEV) {
const devtools = enableDevtools() // Alt+Shift+S toggles the panel
// devtools.open(), devtools.close(), devtools.destroy()
}Docs
Sobagu is in 0.x: the API can still change between minor versions.
Licence
MIT © 2026 Sobagu contributors
