Skip to main content

Design settings

The Design panel opens when you select a component in Selection mode. The settings that appear depend on the component you select. To learn how to make visual edits, refer to Make visual edits.

Most settings use the shadcn/ui Tailwind variables from your theme.

Text​

SettingDescription
TextThe text content. For text built from code, click Edit source to edit the snippet.
FontThe font family.
SizeThe font size.
WeightThe font weight, such as regular or bold.
AlignThe horizontal alignment of the text.
Text colorThe text color, chosen from your theme colors.

Properties​

The properties available depend on the component. Examples include:

SettingDescription
VariantThe preset visual style of the component, such as primary or outline.
SizeThe preset size of the component.
PlaceholderThe hint text shown when an input field is empty.
DisabledWhether the component ignores user interaction.
DefaultThe initial value of the component.

Layout​

The settings that appear depend on the Display value. Components that contain only text don't show Layout settings.

SettingDescriptionAvailable for
DisplayHow the component lays out its children.All containers
DirectionThe direction children flow in, either row or column.Flex
WrapWhether children move onto a new line when they run out of space.Flex
JustifyHow children are distributed along the main axis.Flex
AlignHow children align along the cross axis.Flex and grid
ColumnsThe number of columns in the grid.Grid
GapThe space between children.Flex and grid

Spacing​

SettingDescription
PaddingThe space between the component's edge and its content.
MarginThe space between the component's edge and neighboring components.
WidthA preset width, such as Auto, Hug content, Fill, or a fraction of the available width.
HeightA preset height, such as Auto, Fill, or Full screen.

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

Color​

SettingDescription
BackgroundThe fill color behind the component's content, chosen from your theme colors.
Border colorThe color of the component's border, chosen from your theme colors.

Border and effects​

SettingDescription
BorderThe width of the border.
Border radiusHow rounded the corners are.
ShadowThe size of the drop shadow.
OpacityHow transparent the component is.