Skip to content
MyAppBuilder
StableGuide

Component styles

Component styles choose one look for every component of a kind. Instead of styling each button, you decide once that buttons are solid, soft or outlined, that cards are bordered or elevated, that tables have lines or stripes, and where the app's navigation lives. The runtime appl

Component styles choose one look for every component of a kind. Instead of styling each button, you decide once that buttons are solid, soft or outlined, that cards are bordered or elevated, that tables have lines or stripes, and where the app's navigation lives. The runtime applies the choice everywhere, including inside business components such as Customers or Booking Form.

When to use

  • Give the whole app a consistent style in seconds.
  • Switch from a top navigation bar to a sidebar for a back-office app.
  • Make forms feel lighter (filled or underline inputs) on a public page.

The five settings

Open Theme › Component styles:

SettingOptionsNotes
ButtonsSolid (default), Soft, OutlineAffects primary buttons. Solid: filled with the primary color. Soft: light tint of the primary color with primary text. Outline: transparent with a primary border. Secondary, ghost and danger buttons keep their own looks.
InputsOutline (default), Filled, UnderlineOutline: bordered boxes. Filled: light tinted background, no border. Underline: a single bottom line, square corners.
CardsBordered (default), Elevated, FlatBordered: thin border. Elevated: shadow (follows shadow intensity). Flat: neither; relies on the surface color.
TablesLines (default), Striped, PlainLines: a line under each row. Striped: alternate rows shaded. Plain: no lines.
NavigationTop (default), Sidebar, NoneWhere the built-in page navigation is shown. None hides it; add a Navigation Menu component instead.
Example
Buttons   [ Solid ]   [ Soft ]   [ Outline ]
           ######      ::::::     +------+
           # Save#     : Save:    | Save |
           ######      ::::::     +------+

Cards     Bordered      Elevated       Flat
          +--------+    +--------+
          | Title  |    | Title  |      Title
          +--------+    +--------+
                          ````````

How to change them

  1. Open Theme › Component styles.
  2. Click the option you want in each row. The live preview on the right shows real buttons, inputs, a card and a table using your choice.
  3. Changes are saved immediately and can be undone with Ctrl+Z.

The AI understands "Use a sidebar navigation" (sets Navigation to Sidebar) and theme instructions for componentStyles.button, componentStyles.card and componentStyles.nav.

Overriding one component

A single Button has its own Style control in the Content tab (primary, secondary, outline, ghost, danger) and a Size. The theme's button style only reshapes primary buttons, so "Save" stays prominent while "Cancel" stays secondary. For a single card or table, the inspector's Style tab (background, border, shadow) wins over the theme variant.

Presets

Presets set these styles together with colors and fonts: Classic (solid, outline inputs, bordered cards, lines), Ocean (solid, elevated cards, striped tables), Forest (soft buttons, filled inputs), Sunset (elevated cards, plain tables), Mono (outline buttons, underline inputs, plain tables).

Common mistakes

  • Navigation set to None with no Navigation Menu component. Visitors can only reach pages by typing URLs. Add a Navigation Menu or switch back to Top.
  • Underline inputs on a dense form. Without boxes, long forms are harder to scan. Prefer Outline or Filled for back-office forms.
  • Flat cards on a white background. Flat cards use the surface color; if surface and background are both white the card edges disappear. Tint the background slightly.

Advanced

Tokens: componentStyles.button, componentStyles.input, componentStyles.card, componentStyles.table, componentStyles.nav. The runtime root carries data-btn-style, data-input-style and data-table-style attributes that the stylesheet targets (for example [data-btn-style="soft"] .mab-btn-primary). Card variants add mab-elevated or mab-flat classes; the navigation variant is read by the app shell when it renders the top bar or sidebar.

Related

Was this helpful?