Skip to content

Commit 4c79d4f

Browse files
committed
feat: design mode initial docs
1 parent 21f5034 commit 4c79d4f

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

docs/02z-design-mode.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
title: Design Mode
3+
---
4+
5+
**Design Mode** is a layout that hides the code editor and gives the entire window to your **Live Preview**. It is built for visual-first work: chatting with the AI while you watch changes land in the preview, editing your page directly in Live Preview Edit Mode, or testing how your design looks at different device sizes.
6+
7+
<!-- Add a video here showing the toggle going from the normal layout into Design Mode and back. The editor should disappear, the Live Preview should take over the editor area, and the sidebar should stay visible. -->
8+
9+
## Why use Design Mode
10+
11+
- **Pair with the AI Chat panel.** Ask the AI to make a change and watch it land in the preview as the code changes, without glancing at the editor.
12+
- **Edit visually with Live Preview Edit Mode.** Click elements, drag them, change text, and swap images directly in the page (Pro feature).
13+
- **Test responsive designs.** With Device Preview (Pro), check how your page looks on phone, tablet, and desktop sizes without losing horizontal space to the editor.
14+
15+
## Entering Design Mode
16+
17+
There are two ways to enter Design Mode:
18+
19+
- Click the **Design Mode** button *(pen icon)* near the top of the **Control Bar**, the narrow vertical strip between the sidebar and the editor.
20+
- Click the **fullscreen** button *(expand icon)* in the Live Preview toolbar, right after the reload button.
21+
22+
Both buttons toggle the same mode. Click either one again to exit.
23+
24+
<!-- Add an image here showing both entry points side by side: the Control Bar Design Mode button (pen icon) and the Live Preview toolbar fullscreen button (expand icon), each with an arrow pointing to it. -->
25+
26+
## The Design Mode layout
27+
28+
In Design Mode the code editor is hidden and the Live Preview takes over its space. The sidebar (file tree) and the Control Bar stay visible, and the AI Chat panel keeps its position if it is open.
29+
30+
If the Live Preview was not already open when you entered Design Mode, Phoenix Code opens it for you.
31+
32+
<!-- Add a side-by-side image here comparing the normal layout (sidebar | editor | live preview) with the Design Mode layout (sidebar | live preview filling the rest of the window). -->
33+
34+
### Hiding the sidebar
35+
36+
To go even more focused, click the **toggle sidebar** button *(double left-arrow icon)* just below the Design Mode toggle in the Control Bar to hide the sidebar. Click it again to bring the sidebar back.
37+
38+
## Working with the AI Chat panel
39+
40+
Design Mode is the recommended way to work with [AI Chat](./Pro%20Features/ai-chat). The AI Chat panel keeps its position when you enter Design Mode, so you can chat on one side and watch the maximized preview update on the other as the AI works.
41+
42+
<!-- Add a video here showing the AI Chat panel and a maximized Live Preview side by side, with the user typing a request and the change appearing in the preview as the AI runs. -->
43+
44+
## Working with Live Preview Edit Mode
45+
46+
[Live Preview Edit Mode](./Pro%20Features/edit-mode-live-preview) is an independent toggle, but it pairs naturally with Design Mode. Enter Design Mode for the room, then click the pen icon in the Live Preview toolbar to enable Edit Mode and start clicking, dragging, and editing elements directly in the page.
47+
48+
> Live Preview Edit Mode is a Pro feature. Design Mode itself is free.

0 commit comments

Comments
 (0)