Landing PagesDesign Mode

Element Styling

Fine-tune individual element styles with visual controls for layout, spacing, typography, and colors.

When you select an element in the preview while in Design Mode, the Element Editor appears with controls to style that specific element.

Selecting an Element

  1. Make sure Design Mode is active
  2. Click on any element in the preview
  3. The element is highlighted and becomes editable
  4. The panel header shows the element type and source file

Element Information

The header displays:

  • Element tag: The HTML element (div, button, h1, section, etc.)
  • Source file: Which file contains this element's code

Styling Categories

The Element Editor organizes controls into categories. Expand each to access its controls.

Layout Controls

Control how elements arrange their children:

PropertyOptions
DisplayBlock, Flex, Grid, Inline, None
Flex DirectionRow, Column
Justify ContentStart, Center, End, Between, Around
Align ItemsStart, Center, End, Stretch
GapSpacing between child elements

Use Flex layout for rows and columns. Set Direction to "Row" for horizontal layout or "Column" for vertical stacking.

Spacing Controls

Control margins (outside) and padding (inside):

Padding - Space inside the element:

  • Top, Right, Bottom, Left
  • Linked mode: Change all sides together

Margin - Space outside the element:

  • Top, Right, Bottom, Left
  • Linked mode: Change all sides together

Typography Controls

For text elements, control:

PropertyWhat It Does
Font SizeText size in pixels or rem
Font WeightLight, Normal, Medium, Bold, etc.
Line HeightSpace between lines
Letter SpacingSpace between characters
Text AlignLeft, Center, Right, Justify

Color Controls

Set colors for the element:

  • Background: The element's background color
  • Text Color: Color of text within the element
  • Border Color: Color of borders (if present)

Click any color swatch to open the color picker:

  • Use the visual picker to select colors
  • Enter exact hex, RGB, or HSL values
  • Select from your color library

Border Controls

Add and style borders:

PropertyOptions
Border WidthThickness in pixels
Border StyleSolid, Dashed, Dotted, None
Border RadiusCorner rounding
Individual SidesControl each side separately

Size Controls

Set explicit dimensions:

  • Width: Fixed width or auto
  • Height: Fixed height or auto
  • Min/Max Width: Size constraints
  • Min/Max Height: Size constraints

Making Changes

  1. Select an element in the preview
  2. Find the relevant control category
  3. Adjust values using:
    • Sliders for numeric values
    • Dropdowns for options
    • Color pickers for colors
    • Number inputs for precise values
  4. See changes immediately in the preview

Changes are saved automatically.

Using the Tailwind Editor

For more control, you can edit the element's Tailwind classes directly:

  1. Select an element
  2. Find the class editor section
  3. Add or modify Tailwind utility classes
  4. Preview updates in real-time

The visual controls generate Tailwind classes. You can use either approach—they're synchronized.

Element Content

For some elements, you can edit their text content directly:

  1. Select a text element (heading, paragraph, span)
  2. Find the content section
  3. Edit the text
  4. Changes apply immediately

Deleting Elements

If an element can be deleted:

  1. Select it
  2. Click the delete icon in the panel header
  3. The element is removed

Not all elements are deletable. Structural components may need to be removed through the AI chat.

Best Practices

Start with the AI

Use the AI for major changes. Design Mode is best for refinement.

Use Consistent Spacing

Stick to consistent spacing values (8px, 16px, 24px, 32px) for a clean look.

Test on All Devices

Changes you make may need adjustment for other screen sizes. Use the device preview to check.

Use Theme Colors

When changing colors, use theme color tokens when possible for consistency.

FAQ