The frame-svg VSCode extension adds first-class support for .frame files.
- Syntax highlighting — JSX-like syntax colored correctly in
.framefiles - Autocomplete — component names, props, and valid values suggested as you type
- Bracket matching — auto-close for
<,{,(,[ - Comment toggling —
Ctrl+//⌘+/works in.framefiles
npm run ext:installThis copies the extension into ~/.vscode/extensions/frame-svg/. Restart VSCode after running it.
The extension reads vscode-extension/schema.json — a file that describes every component, its props, and their valid types or values.
If you add a new component or change a prop, regenerate the schema:
npm run schemaThen reinstall the extension:
npm run ext:install- Component names (
Page,Stack,Box,Card, ...) - Prop names for each component
- Enum values (e.g.
direction,align,variant,size,status) - Variable suggestions for color props (
$bg,$surface,$accent, ...)
Autocomplete not showing up — make sure the file has a .frame extension and that you restarted VSCode after installation.
Schema is out of date — run npm run schema && npm run ext:install and restart VSCode.