Project studio
Make visual edits
Refine text, images, spacing, and styles directly in your preview.
On this page
Before you startOpen the visual editorSelect the right elementChange text and contentChoose screen and theme scopeAdjust appearanceReplace an image or iconReview and apply your draftRecover from common problemsCheck the resultVisual edits let you adjust a specific part of your app from its preview. Use them for a heading, button color, image, or spacing change. For a new screen, data behavior, or a change that spans several components, describe the change in project chat instead.
Before you start
Open an existing project with a completed build and a working Preview. Visual editing needs saved project source, an eligible workspace plan, and permission to edit the project. A viewer may be able to inspect or download source without being able to change it.
Wait for any active build to finish. Editing an older preview while a build is producing newer code can leave your draft out of date. If you see Prepare project, follow that step to retrieve the older project's saved source first.
Open the visual editor
- Open your project and select Preview in the top navigation.
- Navigate to the page you want to change. Open any menus or screens you need before selecting an element.
- Click Visual edits in the preview toolbar.
- The floating panel opens with Select an element to edit. Click the text, image, or section in your preview.
- Check the selected element at the top of the panel. It identifies the element and source file so you can confirm you selected the intended part of the page.
You can move the floating panel using its drag handle, minimize it to see more of your app, or close it. These controls change your workspace view; applying a change is a separate action.
Select the right element
A click may select a small text element inside a larger card or section. Use the parent-element buttons near the selected element to move outward when you want to style the container instead. For example, select the card container to change its padding, and select its heading to change the heading size.
Read the shared-element notice before editing repeated components. A style change to a shared card can affect every instance of that card. When Card text fields are available, each field changes only the corresponding card's text, while appearance changes still apply to the repeated cards.
The panel separates Appearance from Content. Switch between them depending on whether you want to change how the element looks or what it says.
Change text and content
- Select the heading, label, or paragraph in the preview.
- Choose Content in the visual editor.
- Edit Element text. If the element contains separate styled text segments, edit the appropriate Text section instead.
- Click outside the field to commit the draft adjustment. Check the text in the preview.
- Use Undo visual edit if the result is not what you intended.
For example, change a landing-page heading from “Manage your work” to “Bring your team's projects together.” After editing, check whether the longer text wraps well on a narrow screen.
Text changes apply across all screen sizes and themes. Selecting Mobile or Dark in Appearance does not create a separate mobile-only or dark-only version of the text.
If the panel shows Text inside this element, choose the child text you want to edit. If it shows Content from your app, the content contains components or dynamic behavior. Use Ask AI about this element to provide context for a chat request, then explain the change you need. For example: “Change the empty-state message when there are no tasks, keeping the task filtering behavior.”
Choose screen and theme scope
In Appearance → Editing scope, choose where your style change should apply before adjusting it.
| Control | Choices | Use it for |
|---|---|---|
| Screen size scope | All screens, Mobile, Tablet, Desktop | A shared style or a correction at a particular screen width |
| Theme scope | All themes, Light, Dark | A shared style or a color correction for one theme |
Start with All screens for a general change. Use Mobile when a heading is too large or a section is too crowded only at narrow widths. Use Dark for a dark-theme contrast issue. Screen-specific styling does not replace testing the complete page at other sizes.
A practical sequence is to make the shared change first, inspect mobile and desktop, and then make the smallest scope-specific adjustment needed. This makes it easier to understand why the element looks different across screens.
Adjust appearance
The panel exposes styling controls for the selected element. Enter a value and press Enter or leave the field to add it to the draft.
Colors and typography
Use Color to change Text and Background. You can choose a color with the picker or enter a color value. Check text against its background after each change, especially when switching between light and dark themes.
Typography includes Font size, Weight, Line height, Letter spacing, and Text alignment. For example, try 32px for a heading size and 1.2 for its line height, then inspect the result. These are example values, not defaults for every project. Long headings usually need more attention on mobile than short labels.
Spacing
Padding changes the space inside the selected element. Margin changes the space around it. Top, Right, Bottom, and Left can be adjusted separately. Gap controls spacing between children in layouts that support it.
To give a card more breathing room, select its container and adjust padding. To separate two sections, adjust the relevant margin or the parent container's gap. Changing the heading's padding when you intended to change the whole card can produce an uneven layout.
Size, borders, and layout
Size & border includes Width, Height, Max width, Corner radius, Border width, Opacity, Border color, and Border style. Prefer checking a change at several widths before fixing an element to a specific height: longer text can need more room.
Layout includes Display, Flex direction, Justify content, and Align items. These affect how child elements are arranged. For a flex container, direction chooses a row or column, justification positions children along that direction, and alignment positions them across it. Setting Display to none hides the element in the chosen scope; it does not delete its source code.
Replace an image or icon
- Select the image in the preview and open Content.
- Enter an Image URL, or choose Upload replacement and select a file.
- Use PNG, JPEG, or WebP up to 5 MB. Wait for the image to finish preparing.
- If Image description is available, describe the image's purpose for people using assistive technology.
- Check the image in its actual layout, including cropping and mobile size.
For supported icons, use Upload replacement icon. Read the shared-icon message: replacing an icon in a shared card container can replace it on every card. If you need only one card to differ, describe that requirement in chat instead of applying a shared replacement.
Review and apply your draft
Your adjustments remain a draft until you apply them. The panel shows the pending-change count and provides Undo and Redo controls.
- Click Review changes when you are ready.
- Read each change, including its element, file, screen scope, and theme scope.
- Compare the proposed After value with Before where shown. Review the code changes if you want to inspect the source impact.
- Remove an unwanted change with its remove button, or choose Back to editing to continue adjusting.
- Click Apply & update preview to save the changes and build the updated preview.
- Wait for the update to finish, then test the page again.
The existing preview stays available while the update builds. Applying a visual edit does not publish the change to your live app. Follow Publish your app after you have checked the result.
Recover from common problems
| What you see | What to do |
|---|---|
| Your app is updating | Wait for the active build to finish; keep the panel open if you want to continue afterward. |
| Visual editing is read-only | Ask a workspace owner or admin for an appropriate role. |
| An upgrade prompt | Check the workspace plan's visual-editing access. |
| Prepare this older project | Use Prepare project to retrieve its saved source. |
| Preview connection unavailable | Try Reconnect preview. An older app may need Prepare older preview. |
| Clicking does not select an element | Confirm the preview has connected and visual editing is on. Reconnect if necessary; use chat if the element cannot be edited directly. |
| A newer version makes your draft stale | Discard the stale draft and reload the current source before making the change again. |
| Draft is in memory only | Browser storage is unavailable. Avoid refreshing or closing the tab before applying the draft. |
| Retry Apply or Retry build | Read the reported failure and current status before retrying; avoid submitting the same change through another workflow at the same time. |
Discard removes unapplied visual changes after confirmation. It does not roll back a successfully applied version. For an already applied change, use version history or make a new corrective edit.
Check the result
Test the edited page at desktop and mobile sizes, in each supported theme, and with realistic text lengths. If you changed a shared component, inspect another instance too. Finally, click through the affected controls with Visual edits turned off so that you test the app's behavior rather than selecting its elements.