M3E Canvas
M3E Canvas is a browser-based canvas for sketching Material 3 Expressive screens, linking and previewing them, and exporting a natural-language prompt for AI coding tools such as Claude Code, Codex, Gemini CLI and Cursor.
Visit lnkiai/m3e-canvasOverview
M3E Canvas lets you sketch Material 3 Expressive screens in the browser, link them together, tap through them in a preview, and copy the result as a prompt for an AI coding tool. It works with any tool that accepts a prompt, including Claude Code, Codex, Gemini CLI and Cursor. Designs are saved in the browser with localStorage and there is no backend.
Key Features
- Drag-and-drop parts drawn to Material 3 Expressive, including buttons, icon buttons, FABs, split buttons, FAB menus, chips, app bars, navigation bars, floating toolbars, tabs, search bars, cards, lists, dialogs, snackbars, text fields, dropdowns, switches, checkboxes, radio
- Magnetic connections that fuse two nearby buttons or list items into one connected group whose corners soften where they meet.
- Phone and desktop screens: add and name as many screens as you like, switch any screen between a 412×892 phone and a 1280×800 desktop from its label, and mix both sizes in one design.
- Tap and swipe navigation: give tappable parts, app bar icons or navigation bar destinations a target screen or back action with slide, fade, expand or no transition, then tap through it in the preview.
- A theme panel covering the four M3 Expressive axes: color with seven presets or one seed color, light and dark, three contrast levels and a dynamic-color switch; shape corners as square, rounded or full; Roboto, Roboto Flex, Roboto Serif or the system font; and standard or
- Prompt output that turns a whole design or a single screen into a concise natural-language prompt in Japanese, English, Chinese or Korean, targeting Android by default or the web, plus PNG export and prompt copying.
Use Cases
- Sketching a Material 3 Expressive app screen and handing the generated prompt to Claude Code, Codex, Gemini CLI or Cursor to build the app.
- Previewing a multi-screen flow by tapping through linked screens with slide, fade or expand transitions.
- Experimenting with color, shape, type and motion combinations before implementing them.
- Copying a share link that opens a design on someone else's canvas, or asking a coding agent to sketch what you described and reply with such a link (beta).
Getting Started
- Install dependencies with npm install.
- Start the development server with npm run dev, which serves the app at http://localhost:3000\.
- Build a static export into ./out with npm run build.
Deployment & Requirements
- The app is a static Next.js export, so it can be hosted without a backend.
- To host it under a sub-path, such as a GitHub Pages project site, set NEXT_PUBLIC_BASE_PATH=/your-repo at build time.
- The included .github/workflows/deploy.yml sets the base path automatically and publishes out/ to GitHub Pages on every push to main.
- Node.js and npm are required to install and build the project.
Before You Adopt
- License: MIT. Review its terms before using, modifying, or distributing the project.
- The optional AI helper uses your own API key: the key stays in the browser and requests go directly to the chosen provider with no intermediary server.
- Fonts are fetched from Google Fonts rather than bundled with the app.
- The shape-morphing loading indicator shapes and animation model are ported from material-components-android under Apache-2.0.
- The full multi-screen editor is intended for desktop browsers; on a phone you get a single fixed screen and a buttons-only editor.