Skip to main content

Make visual edits

In addition to prompting the agent to make changes, you can make deterministic changes to individual components with no AI involvement.

Click the icon above the app preview canvas to enter Selection mode. This makes all components on the canvas selectable. When you choose the component you want to edit, the Design panel opens, and you can manually edit the component. To open the selected component's file in the Code tab, click the icon in the Design panel header.

note

You can also make agent-driven changes to the selected component using the floating prompt box that appears next to the selected component.

Manual edits are available only when a component's content and styling are fixed in the app's code, with the exception of text. If the code generates them dynamically, such as based on a condition or a variable, the panel explains why the component can't be edited, and you should use the prompt box instead.

Most component styles are created using the shadcn/ui Tailwind variables that you set when you create a theme. Your options for these variables are first pulled from any organization-level theme that applies to your app, and then any app-level theming that applies.

The following sections walk through the types of changes available. For every setting and what it does, refer to Design settings.

Text​

Select a text component, such as a heading or body element, to directly edit it with the Text setting.

Some text is built from code, such as text that comes from a variable or mixes formatted text with expressions. In this scenario, Retool displays the source of the text. Click Edit source to edit the code snippet directly from the Design panel, and Save your changes.

For font, size, weight, alignment, and color options, refer to Design settings.

Properties​

Select a component with adjustable properties, such as a button or input field, to edit them in the Properties settings. The properties available depend on the component. Refer to Properties.

Layout​

Select a component that contains other elements, such as a button group or a set of cards, to customize its Layout settings. Components that contain only text don't show Layout settings. Which settings appear depends on the Display value.

Refer to Layout settings for the full list.

Spacing​

Select a component to customize its padding, margin, width, and height. Refer to Spacing settings for details.

If a setting is overridden at certain screen sizes or states, the Design panel disables it and explains why.

Color, border, and effects​

Select a component to customize its color, border, and effects. Color options are drawn from your theme.

Refer to Color and Border and effects for the full list of settings.