Skip to main content

Styles tab

The Styles tab allows you to customise the visual appearance of the UI components through both CSS code and a visual editor.

ClassName

A text input where you can enter custom CSS class name(s) to apply additional styling. Supports variable binding via this icon Variable Binding.

If you want to add a className e.g., my-custom-button to a button, be sure to define it properly at the project level or within the application:

  • At project level: Define the className in the global.css file under the Assets folder on the Resources panel. Then you can select the button and enter my-custom-button in the ClassName to apply the effect.

    global.css
  • Within the application: Define the className in the index.css file in the Source Code Panel.

    index.css

Responsive

A radio group (Global | Device) that controls whether style overrides apply universally or per device type.

  • Global — Style changes apply across all device sizes.
  • Device — Style changes apply only to the currently active device breakpoint (PC, tablet, or mobile), allowing different styles per device.
note

The Responsive option is only available when the Advanced Responsive toggle is enabled in the Create or Edit Application window.

Css

A code editor that lists out all the child classnames of the selected component. Supports variable binding via this icon Variable Binding.

Style

A code editor for inline style overrides. Click Save to apply changes. Supports variable binding via this icon Variable Binding.

Layout

A visual editor for configuring the component's layout properties:

  • Layout pattern — Sets the CSS display mode for the component. Choose from the following patterns:
    • Inline — Displays the component inline with surrounding content
    • Flex — Enables flexbox layout for the component. When selected, the following additional properties appear:
      • Direction — Sets the main axis direction of flex items (row, row-reverse, column, column-reverse)
      • Justify — Controls how flex items are distributed along the main axis (flex-start, center, flex-end, space-between, space-around, space-evenly)
      • Align — Controls how flex items are aligned along the cross axis (flex-start, center, flex-end, stretch, baseline)
      • Wrap — Controls whether flex items wrap onto multiple lines (Nowrap, Wrap, Wrap-reverse)
    • Block — Displays the component as a block-level element
    • Inline-block — Displays as inline but allows width/height settings
    • None — Hides the component from the page layout
  • Padding — Set the inner spacing (top, right, bottom, left) in pixels
  • Margin — Set the outer spacing (top, right, bottom, left) in pixels
  • Width / Height — Set explicit dimensions in pixels or percentage (%)

Font

Configure the text appearance of the component:

PropertyUI ControlDescription
Font sizeNumber input (px)Sets the font size of the text
Line heightNumber input (px)Sets the line height of the text
Font WeightDropdownSelect the font weight (e.g., normal, bold)
Font familyDropdownSelect font family, including those uploaded into the Assets/font folder. See details here.
Text colorColor pickerSets the text color
AlignAlignment buttonsSets the text alignment (left, center, right, justify)

Background

PropertyUI ControlDescription
BackgroundColour picker / Image selector / Gradient editorSets the background colour, gradient, or image, including those uploaded into the Assets/image folder. See details here
SizeRadio group (Default | Contain | Cover)Sets the CSS background-size mode for the background image. Only visible when a background image is set.
Width / HeightNumber input (px)Sets explicit dimensions for the background image. Only visible when a background image is set.
PositionPosition grid + Number inputs (Left, Top in px)Sets the alignment and offset of the background image within the component. Only visible when a background image is set.
Repeat DisplaySelection buttonsControls how the background image is repeated (repeat, repeat-y, repeat-x, no-repeat). Only visible when a background image is set.
OpacitySlider (%)Controls the opacity level.

Add a gradient color into the background

  1. Select the component you want to style.
  2. Go to the Styles tab in the right panel.
  3. Under Background, click the gradient icon next to the color picker.
  4. Use the gradient editor to configure the following:
    • Angle — enter a degree value (e.g., 30) to set the gradient direction.
    • Color stops — click along the gradient bar to add color stops, then use the color picker to set each stop's color and opacity.
  5. Click outside the editor to apply the gradient.

Position

PropertyUI ControlDescription
PositioningDropdownSelect the CSS positioning mode (static, relative, absolute, fixed, sticky)
ZIndexNumber inputSets the z-index stacking order
FloatSelection buttonsSets the float direction (none, left, right)
ClearSelection buttonsSets the clear behavior (none, left, right, both)

Border

PropertyUI ControlDescription
Round CornerCorner radius buttonsSets the border radius for each corner
BorderBorder style pickerConfigure border width, style, and color
ShadowShadow controlsConfigure box shadow with Outset/Inset, Shadow Color, as well as x offset, y offset, Blur, and Stretch values (in px)

Last updated on 20 May 2026