useoutlinekit
v1.0.0
Published
X-ray vision for your website's design DNA. One component renders grid lines, spacing rhythm, type scale, color palette, component boundaries, and accessibility markers.
Maintainers
Readme
useoutlinekit
X-ray vision for your website's design DNA.
Install
npm i useoutlinekit -DQuick Start
import { Outline } from 'useoutlinekit'
function App() {
return (
<>
<YourApp />
{process.env.NODE_ENV === "development" && <Outline />}
</>
)
}Features
- 6 scan layers — grid, typography, colors, spacing, components, accessibility
- Font extraction — families, sizes, type scale with sample text
- Color palette — text, background, and border colors with counts
- Spacing scale — padding/margin values, baseline rhythm detection
- Grid detection — column positions from element alignment
- React components — fiber tree names and depth
- Accessibility — missing alt, labels, low contrast, missing href
- Blueprint overlay — visual overlay rendering all layers
- Markdown output — copy full Design DNA report for agents
Programmatic API
import { scanDesignDNA, formatDesignDNA } from 'useoutlinekit'
const dna = scanDesignDNA('body')
const markdown = formatDesignDNA(dna)Disclaimer
This is experimental software. See DISCLAIMER.md for full details. Use at your own risk. DYOR.
Security
See SECURITY.md for reporting vulnerabilities.
Contributing
See CONTRIBUTING.md for guidelines.
License
MIT — see LICENSE
Made by @dragoon0x
