Skip to main content

Buttons

Live preview of the Buttons element in the Salient WordPress theme. Every button type: a filled primary, an outlined See Through and a raised Material button, then the Underline, Arrow and Next Section link types. Sample content, for demonstration only.
Get startedWatch the demoPricing

The Button element covers everything from a plain call to action to an animated text link. One element, ten Type options: some render as a solid button, others as a line of text that animates on hover.

Buttons sit inside a column like any other element, so anything you can do with a column, you can do with a row of buttons.

Types​

The Type setting is the biggest decision on the element, because it changes what the button is rather than just how it looks.

  • Basic A solid filled button. The default, and the one most demos use.
  • See Through An outlined button with a transparent fill.
  • Arrow Animation A text link with an arrow beside it that slides forward on hover.
  • Arrow Circle Animation A diagonal arrow in a circle, swapping for a second copy of itself on hover.
  • Curved Arrow Animation A text link with a curved arrow that animates on hover.
  • Underline A text link with an underline that animates on hover.
  • Text Reveal Wave The label swaps for a second copy letter by letter, so the change runs across the word.
  • Text Reveal The same swap, the whole label at once.
  • Material Button A raised button with a shadow, in the Material style.
  • Next Section Button A down arrow that scrolls the visitor to the next row, for use at the foot of a hero.

Settings​

  • Text Before Link Text Optional text that sits before the button, on the same line.
  • Link text Text The button's label.
  • Link URL Text Where it goes. Accepts an ordinary URL, or an anchor such as #pricing.
  • Link Type Choice Whether the link opens normally, in a new tab, or triggers a lightbox.
  • Aria Label Text Text An accessible name, for when the visible label is not descriptive on its own.

Coloring​

Buttons pull from the palette set in Salient Options > Accent Colors, so Accent Color, Extra Color 1 to 3 and the two gradients all stay in step with the rest of the site. Choose Custom to override for one button.

  • Background Color Choice The button fill, from the theme palette.
  • Background Color Custom Color Background Color set to Custom only. A fill of your own.
  • Background Color Hover Color The fill on hover.
  • Text Color Color The label color.
  • Text Color Hover Color The label color on hover.
  • Border Color Color The outline, used by See Through and any bordered style.
  • Border Color Hover Color The outline on hover.
  • Border Thickness Choice How heavy that outline is.

Size and spacing​

  • Min Font Size Number The smallest the label is allowed to set.
  • Max Font Size Number The largest. The label scales between the two with the viewport, the same way Fluid Typography works for body text.
  • Button Roundness Number Corner radius, from square to a full pill.
  • Margin NumberResponsive. Set a different value for desktop, tablet and phone. Space on each of the four sides, set independently.
Two buttons side by side

Put each button in its own column, or set the left and right margins so a pair sits together with a gap. The element is inline, so two in the same column will sit on the same line until the row runs out of width.