Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 1.44 KB

File metadata and controls

64 lines (45 loc) · 1.44 KB

← README

Getting Started

Installation

Clone or copy the framework, then install dependencies:

cd frame-svg
npm install

Start the dev server

npm run dev

Opens a live preview at localhost:5173. Every time you save a .frame file, the SVG updates automatically.

Render to SVG

npm run render

Renders src/main.framedist/main.svg.

Project structure

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.

Your first frame

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.

Next steps