CoDesignFloDocs How it works Pricing Compare GitHub Sign in

Docs › For developers

Setting up a project

#How the project is found

A project is tied to your repository's first commit and the app's folder in it. Every clone, fork and branch is the same project, whatever its remote, even before anything is pushed. Your agent reads them with:

bash
git rev-list --max-parents=0 HEAD
git rev-parse --show-prefix

#Three ways in

SituationWhat happens
You startA new project is created for the code. Invite your designer next.
Your designer started it in Figma and invited youThe agent lists the projects waiting for their code. Pick one: your code is linked to it for good.
The project exists alreadyIt's found by the repository's identity. Nothing to choose.

#The config file

The agent writes .codesignflo/config.json. Commit it.

json
{
  "projectId": "p_e3abff2f9ff1",
  "tokens": "tokens/tokens.json",
  "storybook": {
    "build": "pnpm build-storybook",
    "out": "storybook-static"
  },
  "trackedBranch": "main"
}
FieldMeaning
projectIdThe CoDesignFlo project.
tokensYour DTCG tokens file, if any.
storybook.buildThe command that builds Storybook.
storybook.outWhere the build goes.
trackedBranchThe Live branch.

#The Live branch

Commits on this branch update Live. Change it any time: ask your agent, or codesignflo live-branch <name> (developers and admins).

#Where designs are built

ModeMeaning
storybook-firstDesigns are built in Storybook only (components and page stories), and wired into the app after they're reviewed in Figma.
storybook-and-appBuilt in Storybook and the app together.

Set it with the set_build_mode tool.

#Inviting the designer

The agent asks for your designer's email and invites them. They get an email with how to open the plugin. See Inviting people and roles.