Documentation
Step-by-step guides to install Snapflow and take your screens to code. The API reference and governance recipes are being written.
Installation tutorial
Install Snapflow step by step.
Guides by use case
Pick the one that matches how you work. Each has its steps in order and what you need to follow them.
Design in Figma
You design your screens in Figma with your kit, and your assistant turns them into code.
Code only
No Figma: you ask your assistant for screens or build them in the portal's editor, and they land straight in your app.
Connect your app
Snapflow detects your app's stack and writes down how to fit in: where pages go, how their routes are registered and where their styles load.
Bring your design system
Snapflow puts your design system's values behind its kit, without renaming anything.
Design in Figma
You design your screens in Figma with your kit, and your assistant turns them into code.
You start with the Snapflow kit: your brand's components, colors and text styles, in Figma and in code. It can be a base kit to try things quickly, or one with your brand.
Before you start
Figma desktop, Node 22 or later and an assistant: Claude Code, Cursor, Codex or Antigravity.
Steps
- 1
Install Snapflow with Figma
Close Figma and run the installer in the folder where you'll use your assistant. To "Do you work with Figma?" answer yes.
npx @snapflow-labs/onboard --design figmaDetails
The first time it asks for your license key, your email and your password. The command in Getting started, in the app, already includes your key.
- 2
Type /snapflow-hello in your assistant
It walks you to your first screen and tells you when something is done in Figma. Pick the quick start for a base kit with a neutral logo, or your own brand to build it with your identity.
/snapflow-hello - 3
Create your kit's file
In a Figma project (not in Drafts), create a new file, open the Snapflow plugin there and pick "Use it as the kit".
Details
Building it can take an hour or more. Keep Figma open and in view: if the window goes to the background, Figma slows the work down. From Drafts, Figma won't let you publish the library.
- 4
Publish the library
When the kit is done, in Figma: Assets panel → book icon → Publish. Until it's published, your screens can't use the kit.
- 5
Set up your screens file
In the same Figma project, create another file and add the kit's library from the Assets panel. Open the plugin and pick "Design screens".
- 6
Ask for your screen and take it to code
Tell your assistant which screen you want: it builds it in Figma and, once you approve it, generates its code with your kit's components.
/snapflow-composition Build a pricing page with three plans
When you're done
Your kit in Figma and in code, and your first screen in both.
The Snapflow kit takes your design system's values: colors, typography, style and logo. Your Figma library doesn't change: the kit lives in its own file.
Before you start
Figma desktop, Node 22 or later, an assistant, and your design system's material at hand.
Steps
- 1
Install Snapflow with Figma
Close Figma and run the installer in the folder where you'll use your assistant. To "Do you work with Figma?" answer yes.
npx @snapflow-labs/onboard --design figmaDetails
The first time it asks for your license key, your email and your password. The command in Getting started, in the app, already includes your key.
- 2
Gather your design system's material
Your colors in hex, your typography and your logo as an SVG. Screenshots of your library, your brand guidelines as a PDF or your website's link work too.
- 3
Create your brand in Snapflow
Type
/snapflow-my-brandand share the material. It asks five questions at most and shows you a summary before building the kit./snapflow-my-brandDetails
You also get there from
/snapflow-helloby picking your own brand. If the skill isn't enabled for your organization, ask Snapflow for it. - 4
Build the kit in a new file
In a Figma project, create a new file, open the plugin and pick "Use it as the kit". Don't use your library's file: building the kit clears the file.
Details
Building it can take an hour or more. Keep Figma open and in view: if the window goes to the background, Figma slows the work down. From Drafts, Figma won't let you publish the library.
- 5
Publish the library
When the kit is done, in Figma: Assets panel → book icon → Publish. Until it's published, your screens can't use the kit.
- 6
Set up your screens file
In the same Figma project, create another file and add the kit's library from the Assets panel. Open the plugin and pick "Design screens".
- 7
Ask for your screen and take it to code
Tell your assistant which screen you want: it builds it in Figma and, once you approve it, generates its code with your kit's components.
/snapflow-composition Build a pricing page with three plans
When you're done
The Snapflow kit with your design system's values, and your first screen in Figma and in code.
Keep going
Code only
No Figma: you ask your assistant for screens or build them in the portal's editor, and they land straight in your app.
You create your app from scratch and Snapflow delivers its screens with your kit: your brand's components, colors and text styles.
Before you start
Node 22 or later and an assistant: Claude Code, Cursor, Codex or Antigravity.
Every snapflow command answers in JSON, made for your assistant: ask it to run them and explain the result.
Steps
- 1
Create your app
Use the official generator of the framework your project chose in Snapflow: it's the framework Snapflow generates code in.
Details
Want to try first? The installer offers the playground: a sample project to see the screens Snapflow generates.
- 2
Install Snapflow without Figma
Run the installer in your app's folder. To "Do you work with Figma?" answer no.
npx @snapflow-labs/onboard --design noneDetails
The first time it asks for your license key, your email and your password; the command in Getting started, in the app, already includes your key. The skills go to your assistant: if it detects only one, it uses it, and otherwise it asks "Which assistants do you want to use Snapflow in?".
- 3
Type /snapflow-hello in your assistant
It connects your application, gives it your brand and takes you to your first screen, straight in code. It asks before writing anything in your application. The next steps are the same ones, if you would rather do them yourself.
/snapflow-hello - 4
Connect your app
At the end, the installer detects your app's stack and proposes how to fit in. Review the proposal and confirm it: nothing changes until you do.
Details
If you skipped it, ask your assistant: it runs
snapflow attach, shows you the proposal and writes it once you approve it. - 5
Set your brand
In the portal, open your project and pick Brand: colors, typography, dark mode and logo.
- 6
Bring the kit and your brand into the code
If the connection proposed installing the kit, run the command it showed. Then
snapflow apply-styleswrites the theme, the fonts and the logo; run it again whenever your brand changes.snapflow apply-styles - 7
Build your first screen
Ask your assistant for it: without Figma, it shows you screenshots to approve and writes it into your app. You can also build it in the portal (your project → Pages), publish it and ask your assistant to bring it to code.
/snapflow-composition Build a sign-in page with email and password
When you're done
Your app with your kit and your brand, and a first screen that arrived as code.
Keep going
Your app already exists. Snapflow adapts to how it's written and doesn't change what it does.
Before you start
Node 22 or later, an assistant and your app running on your computer.
Every snapflow command answers in JSON, made for your assistant: ask it to run them and explain the result.
Steps
- 1
Install Snapflow without Figma
Run the installer in your app's folder. To "Do you work with Figma?" answer no.
npx @snapflow-labs/onboard --design noneDetails
The first time it asks for your license key, your email and your password; the command in Getting started, in the app, already includes your key. The skills go to your assistant: if it detects only one, it uses it, and otherwise it asks "Which assistants do you want to use Snapflow in?".
- 2
Type /snapflow-hello in your assistant
It connects your application, gives it your brand and takes you to your first screen, straight in code. It asks before writing anything in your application. The next steps are the same ones, if you would rather do them yourself.
/snapflow-hello - 3
Connect your app
At the end, the installer detects your app's stack and proposes how to fit in. Review the proposal and confirm it: nothing changes until you do.
Details
If you skipped it, ask your assistant: it runs
snapflow attach, shows you the proposal and writes it once you approve it. - 4
Bring the kit and your brand into the code
If the connection proposed installing the kit, run the command it showed. Then
snapflow apply-styleswrites the theme, the fonts and the logo; run it again whenever your brand changes.snapflow apply-styles - 5
Ask for new screens
Your assistant builds the screen and writes it where it belongs, with your app's formatting, linter and names.
/snapflow-composition Build an account settings page - 6
Dress the screens you already have
/snapflow-adoptputs your kit on them one by one, with your approval on each and without changing what they do./snapflow-adopt Dress the billing screen - 7
Check your code
snapflow checkfinds hand-written colors, arbitrary values and classes your theme doesn't have, including in code Snapflow didn't generate.snapflow checkDetails
Using ESLint or Stylelint?
snapflow check --export eslintgives you the equivalent configuration for your linter.
When you're done
Your app connected: new screens arrive with your kit, and the ones you had are dressed in it.
Connect your app
Snapflow detects your app's stack and writes down how to fit in: where pages go, how their routes are registered and where their styles load.
The pages Snapflow generates use only the kit's pieces.
Before you start
Snapflow installed and your assistant open in your app's folder. If the terminal can't find `snapflow`, open a new one.
Every snapflow command answers in JSON, made for your assistant: ask it to run them and explain the result.
Steps
- 1
Detect your stack
snapflow attachlooks at your app and proposes its contract,snapflow.client.json: where pages go, how routes are registered and where styles load. It doesn't run your code or change anything.snapflow attachDetails
It recognizes the most common stacks: Next.js, Nuxt, Angular, SvelteKit, Astro, Rails, Django, Laravel, ASP.NET and Spring, among others. If it doesn't recognize yours, it proposes what it can read from your files and asks you the rest.
- 2
Answer and confirm
Review the proposal with your assistant, answer what it couldn't find out and write it with
--write. From then on, every new page follows that contract.snapflow attach --write - 3
Bring the kit and your brand into the code
If the connection proposed installing the kit, run the command it showed. Then
snapflow apply-styleswrites the theme, the fonts and the logo; run it again whenever your brand changes.snapflow apply-styles - 4
Add your app's rules
snapflow rules importreads what your app already tells its agents (AGENTS.md, CLAUDE.md, Cursor or Copilot rules) and, with--write, stores it in Snapflow.snapflow rules import --writeDetails
Text never turns into a rule that fails the build on its own. To enforce one, such as forbidding a class, add it with
snapflow rules add --kind check. - 5
Ask for new screens
Your assistant builds the screen and writes it where it belongs, with your app's formatting, linter and names.
/snapflow-composition Build an account settings page - 6
Check your code
snapflow checkfinds hand-written colors, arbitrary values and classes your theme doesn't have, including in code Snapflow didn't generate.snapflow checkDetails
Using ESLint or Stylelint?
snapflow check --export eslintgives you the equivalent configuration for your linter.
When you're done
Your app connected: every new page lands in its folder, with its route, written the way you'd write it.
Keep going
Besides the kit, pages use the components your app already has, without copying them.
Before you start
Snapflow installed, your assistant open in your app's folder, and your components written in React, Vue or Angular.
Every snapflow command answers in JSON, made for your assistant: ask it to run them and explain the result.
Steps
- 1
Detect your stack
snapflow attachlooks at your app and proposes its contract,snapflow.client.json: where pages go, how routes are registered and where styles load. It doesn't run your code or change anything.snapflow attachDetails
It recognizes the most common stacks: Next.js, Nuxt, Angular, SvelteKit, Astro, Rails, Django, Laravel, ASP.NET and Spring, among others. If it doesn't recognize yours, it proposes what it can read from your files and asks you the rest.
- 2
Answer and confirm
Review the proposal with your assistant, answer what it couldn't find out and write it with
--write. From then on, every new page follows that contract.snapflow attach --write - 3
Bring the kit and your brand into the code
If the connection proposed installing the kit, run the command it showed. Then
snapflow apply-styleswrites the theme, the fonts and the logo; run it again whenever your brand changes.snapflow apply-styles - 4
Describe your components
snapflow components importreads your components' props, slots and events without running your code. Without a path, it looks in the usual folders; you can also give it yours.snapflow components import - 5
Review and publish
Its answer says what it couldn't read from each component. Fill it in with your assistant and publish with
--write.snapflow components import --writeDetails
When your components change,
snapflow import --diffshows what would change, and nothing is published until you approve it. - 6
Use them in your pages
When a page needs something your app has and the kit doesn't, like your card or your header, your assistant uses your component instead of copying it.
/snapflow-composition Build the dashboard with our metrics card
When you're done
Pages that combine the kit with your own components.
Keep going
Bring your design system
Snapflow puts your design system's values behind its kit, without renaming anything.
Your tokens live in your app or in a package: CSS variables, Sass, Tailwind, JS modules or JSON, Tokens Studio's included.
Before you start
Your app connected to Snapflow. If it isn't yet, start with the guide to connect it.
Every snapflow command answers in JSON, made for your assistant: ask it to run them and explain the result.
Steps
- 1
Read your tokens
Point
--sourceto the file or folder with your tokens. It reads them by what they contain, without running your code, and proposes a map: which of your tokens goes behind each of the kit's.snapflow tokens import --source <path>Details
Don't know where they are? Without
--source, the command answers with the files that look like tokens. It reads CSS variables, Sass, @theme and tailwind.config, JS modules and JSON (DTCG, Style Dictionary or Tokens Studio, with its sets and themes), also inside an installed package. The path stays in the map: next time you don't need to repeat it. - 2
Finish the map
snapflow.tokens.map.jsonkeeps what it couldn't match on its own. Decide each one; your assistant can suggest them. - 3
Publish your tokens
snapflow tokens import --writepublishes them. No name changes: the kit points to your tokens.snapflow tokens import --write - 4
Bring the kit and your brand into the code
If the connection proposed installing the kit, run the command it showed. Then
snapflow apply-styleswrites the theme, the fonts and the logo; run it again whenever your brand changes.snapflow apply-styles - 5
Dress the screens you already have
/snapflow-adoptputs your kit on them one by one, with your approval on each and without changing what they do./snapflow-adopt Dress the billing screen - 6
Keep it up to date
When your design system changes,
snapflow tokens import --checktells you whether what was imported is out of date.snapflow tokens import --checkDetails
To bring the changes in,
snapflow import --diffshows what would change in the theme and which pages it touches, and nothing is published until you approve it. To have your CI check it on every change, install the command there from npm (@snapflow-labs/cli-linux-x64) and store SNAPFLOW_EMAIL, SNAPFLOW_PASSWORD and SNAPFLOW_LICENSE_KEY as secrets;/snapflow-adoptadds the step for you.
When you're done
The kit with your tokens behind it, none renamed, and a way to know when they fall out of date.
Your design system lives in a Figma library. Snapflow leaves it alone: it builds its kit with your values in a separate file.
Before you start
Figma desktop, Node 22 or later, an assistant, and your design system's material at hand.
Steps
- 1
Install Snapflow with Figma
Close Figma and run the installer in the folder where you'll use your assistant. To "Do you work with Figma?" answer yes.
npx @snapflow-labs/onboard --design figmaDetails
The first time it asks for your license key, your email and your password. The command in Getting started, in the app, already includes your key.
- 2
Gather your design system's material
Your colors in hex, your typography and your logo as an SVG. Screenshots of your library, your brand guidelines as a PDF or your website's link work too.
- 3
Create your brand in Snapflow
Type
/snapflow-my-brandand share the material. It asks five questions at most and shows you a summary before building the kit./snapflow-my-brandDetails
You also get there from
/snapflow-helloby picking your own brand. If the skill isn't enabled for your organization, ask Snapflow for it. - 4
Build the kit in a new file
In a Figma project, create a new file, open the plugin and pick "Use it as the kit". Don't use your library's file: building the kit clears the file.
Details
Building it can take an hour or more. Keep Figma open and in view: if the window goes to the background, Figma slows the work down. From Drafts, Figma won't let you publish the library.
- 5
Publish the library
When the kit is done, in Figma: Assets panel → book icon → Publish. Until it's published, your screens can't use the kit.
- 6
Set up your screens file
In the same Figma project, create another file and add the kit's library from the Assets panel. Open the plugin and pick "Design screens".
When you're done
The Snapflow kit with your design system's values, in Figma and in code.
Keep going
Usage questions
Quick answers about installing and using Snapflow. Each one comes from the guides above.
npx @snapflow-labs/onboard --design figma if you work with Figma, or --design none if you don't. The first time it asks for your license key, your email and your password./snapflow-hello in your assistant. It walks you to your first screen.snapflow attach looks at your app and proposes how to fit in without running your code or changing anything: nothing is written until you confirm.snapflow check finds hand-written colors, arbitrary values and classes your theme doesn't have, including in code Snapflow didn't generate.snapflow tokens import --check tells you whether what was imported is out of date. To bring the changes in, snapflow import --diff shows what would change and nothing is published until you approve it.Being written
They go live with the first invitations.
Getting started
Create a project, personalize it with your brand and run your first governed generation.
REST reference
Projects, components, tokens, exports and audit. Versioned, with an OpenAPI spec.
MCP server
Connect Snapflow to your agent, Claude, Cursor or your own, with your key.
CLI
snapflow export and token drift checks on every pull request.
Governance rules
Define what your agents enforce: tokens only, accessibility gates, approvals.
Figma sync
Variables and components both ways, with drift detection and conflict resolution.
Exports per framework
How the components compile to React, Vue 3 and Angular with the same tokens.
Webhooks
Release notices, drift alerts and failing governance checks.