Clone or copy the framework, then install dependencies:
cd frame-svg
npm installnpm run devOpens a live preview at localhost:5173. Every time you save a .frame file, the SVG updates automatically.
npm run renderRenders src/main.frame → dist/main.svg.
frame-svg/
├── src/
│ ├── main.frame ← your entry point (edit this)
│ └── components/ ← reusable frames (import from main.frame)
├── dist/ ← generated SVGs (git-ignored)
└── ... ← framework internals (don't touch)
The only folder you work in is src/. Everything else is framework internals.
Edit src/main.frame:
export default (
<Template theme={theme}>
<Container direction="vertical" gap={16} padding={32} background="$bg">
<Text fontSize={28} fontWeight="700" color="$text">Hello, world</Text>
<Text fontSize={14} color="$muted">Your first SVG, rendered from a .frame file.</Text>
</Container>
</Template>
)Save → the preview updates → run npm run render to get the SVG.
- Primitives — all layout components
- Theme — colors and dark/light mode
- Philosophy — understand the .frame model