Lyna
SupportBlog
IntroductionFeaturesIntegrationsTips & TricksChangelog
Design

Visual Editor

The visual editor is a browser-based workspace for building web apps by combining visual manipulation, code editing, and AI. Five modes: three primary (Design, Code, Preview) and two interaction modes (Pan, Comment): stay synchronized. Changes in one are reflected in the others immediately.


Editor modes

The top bar mode toggle switches between the three primary views. Two additional modes activate through shortcuts.

Design mode

The default. Your app renders in live iframe frames on the canvas. Click to select elements, drag to reposition, resize frames, modify styles through panels. Most visual editing happens here.

Keyboard shortcut: D

Code mode

A full Monaco editor with file tree, syntax highlighting, TypeScript IntelliSense, and git branch graph. Edit files, review diffs, manage source code. See Code Editor.

Keyboard shortcut: C

Preview mode

A clean view of your app without overlays, handles, or panels. Click buttons, fill forms, navigate pages: test it as a user would.

Keyboard shortcut: V

Pan mode

For navigating the canvas freely. Hold Space and drag, or middle-click drag. Element selection is disabled so you can move around without accidentally selecting things.

Comment mode

Place comments directly on the canvas. Click any position on a frame to add a marker. Comments appear as overlay markers and can be viewed in the right panel.

All five modes share the same live sandbox. Edit a style in Design, the code updates. Edit code in Code, the canvas refreshes. The AI chat is available in all modes.


Focus mode

Hides all panels (left, right, bottom) and shows only the canvas. A distraction-free view for reviewing layouts. Toggle from the top bar.


Workspace layout

Top bar

Mode toggle, project breadcrumb, branch selector, save status, and publish controls.

Left panel (Design mode)

Seven tabs:

  • Layers: DOM tree with drag-and-drop reordering
  • Styles: CSS property editing
  • Brand: Theme presets, colors, typography, border radius
  • Design Prompts: Curated style prompts for the AI
  • Components: shadcn/ui browser and installer
  • Images: Asset management, upload, AI generation
  • Pages: Route and page management

Pages panel

Create new page

Create a New Page dialog with URL slug input

Pages panel showing the About page selected and rendered on canvas

Left panel (Code mode)

Seven activities: Files, Search, Git, GitHub, Packages, Environment, Settings. See Code Editor.

Canvas (Design mode)

Your app in live iframe frames. See Canvas.

Right panel

AI chat tab and comment panel. Chat is available in all modes with Build, Ask, and Plan.

Bottom panels

Terminal: xterm.js-based with multiple tabs. Open sessions, restart the dev server, send output to the AI.

DevTools: Browser-like developer tools with eight tabs:

TabDescription
ConsoleJavaScript console output and errors
NetworkHTTP request monitoring
PerformanceMetrics and profiling
ElementsDOM tree inspector
LighthouseAutomated auditing
CookiesCookie management
MonitoringReal-time app monitoring
DoctorDiagnostic tool for common issues

Selection and editing

In Design mode, click any element to select it:

  • Selection border: Colored outline around the element
  • Resize handles: Drag handles on corners and edges
  • Editor bar: Contextual toolbar with quick actions based on element type

The editor bar adapts to what's selected:

  • Div/container: Display, flex direction, gap, padding, margin, width, height, background, border, radius, opacity
  • Text: Font family, size, weight, color, alignment, line height, letter spacing
  • Image: Source, alt text, object fit, background
  • Frame: Device selector, rotate, theme toggle, window actions

Command palette

Cmd+K (Mac) or Ctrl+K (Windows/Linux) opens a searchable command palette for quick access to editor actions, mode switches, and workspace operations.


Design Prompts

The Design Prompts tab in the left panel has curated AI design system prompts. Pre-written prompts that guide the AI toward specific styles, typography, and visual approaches. Filter by mode and font type.


Keyboard shortcuts

ActionShortcut
Design modeD
Code modeC
Preview modeV
Pan modeSpace + drag
Focus modeToggle from top bar
Zoom inCtrl+= / Cmd+=
Zoom outCtrl+- / Cmd+-
Zoom to fitCtrl+0 / Cmd+0
Command paletteCmd+K / Ctrl+K
EscapeDeselect / exit text editing
DeleteDelete selected element
CopyCtrl+C / Cmd+C
PasteCtrl+V / Cmd+V
UndoCtrl+Z / Cmd+Z
RedoCtrl+Shift+Z / Cmd+Shift+Z

Tips

  • Design mode for layout and styling: Fastest way to adjust spacing, colors, typography, and responsive behavior.
  • Code mode for logic: Data fetching, event handlers, state management, and complex components belong in the editor.
  • Preview mode for testing: Always check your work as users will see it.
  • Let AI bridge the gap: Can describe a visual change but don't know the CSS? Tell the AI. See unfamiliar code? Switch to Ask Mode.

Give feedback