Skip to content

Buttons

Define your primary and secondary button styles once and apply them across every block.

The Buttons panel in Global Settings sets the look of your site's buttons. You style a Primary and a Secondary button variant, and blocks that render buttons pick up these styles automatically (via the sp-styble-button-primary and sp-styble-button-secondary classes).

Buttons panel

Primary and secondary variants

The panel has two tabs:

  • Primary — your main call-to-action button. By default it has a filled blue-violet (#4D4DFF) background with white text.
  • Secondary — a complementary button. By default it has white fill with blue-violet text and border.

Each variant is styled independently with the same set of controls.

Normal and hover states

Within each variant, a Normal / Hover toggle lets you style the resting and hover appearance separately. The available controls for each state:

ControlWhat it sets
Text ColorButton label color.
Button Background TypeSolid color or gradient background.
BorderBorder color, style and width.
Border RadiusCorner rounding (px, %, em).
Box ShadowToggle a box shadow and configure it (or pick a global shadow preset).

Typography and padding

Above the state controls, each variant also has:

  • Typography — font family, weight, style, transform, decoration, size, line height and spacing for the button label.
  • Padding — inner spacing on all four sides (px, %, em).

Default values

The shipped button defaults are:

PropertyDefault
Padding12 px top/bottom, 24 px left/right
Border width1.5 px on all sides
Border radius4 px on all corners
Border styleSolid
Font weight500
Font size16 px
Line height1.3
Box shadowEnabled, using the Light (2dp) global preset

Reuse global shadows

The button's box-shadow control can reference a preset from the Shadows panel, keeping elevation consistent with the rest of your design.

Tips

  • Use Primary for the single most important action on a page and Secondary for everything else.
  • Set hover states deliberately — they're a key part of how interactive your site feels.
  • Match button colors to your Colors palette so buttons stay on-brand if you switch palettes.
  • See the Global Settings overview for how all panels fit together.

Released under the GPL-2.0-or-later License.