All blocks

App template

Design tool

Lay out screens in frames on an infinite canvas, edit layers in the inspector, reuse components and variants, prototype, comment with your team, and hand off in inspect mode.

Habit app — v2Mobile · Cover · Saved
PRTOLBAK

Habit app — v2

Onboarding and home redesign · Ready for review

Priya Raman, Tom Okafor, Leah Brandt

Cover
Priya
Tom
Leah
Nothing selected

Use this template

Installs the whole app into your project: its pages, routes, services with sample data, agent tools and the browser entry. Every file is yours to edit.

npx shadcn@latest add checkfu/uicontext/design-tool
  1. Run itLoad from your page’s script. It builds the app with createApp: the browser’s router, the agent tools, an offline notice, and sign-in when you turn it on. Inside an app that already routes, render DesignTool, which brings its own in-memory router.
  2. Connect your backendEvery read and write goes through Design in . Implement it over your API and point DesignLive at your Layer.
  3. Make it yoursPages are one file per route. Delete the ones you don’t need, and the sample data in .

Screens

  • File

    /

    The file on its first page: pages and layers, the canvas with its tools, and the properties panel.

  • Page

    /pages/:page

    Any page of the file, in design, prototype or inspect mode, with comments and version history beside it.

Where your backend plugs in

Pages never call a backend. They read through the queries in queries/ and write through Commands kept beside the component that runs them; both capture the Design service. Implement its interface in over HTTP, a sync engine or a database client, then change one line:

export const DesignLive = Design.sample
// becomes your Layer, such as
export const DesignLive = Layer.effect(Design, makeHttpDesign)

The root provides it once, so every page shares one instance. Sign-in is one line: delete auth: false in once your backend serves the session routes, and the sidebar shows who signed in.

What to delete

  • services/seed.ts, and Design.sample in services/Design.ts
  • The collaborators' moving cursors: peerCursor in pages/FilePage.ts, once presence comes from your server

To drop a screen, delete its file in pages/ and its route in ; TypeScript points at every link that still prints it. The agent tools are in .