Buttons

Updated

Usage

Open Appearance → Customize → Styles → Buttons to set the default look of buttons across the site: block buttons, form submit buttons, and WooCommerce buttons.

Choose the Font, Text size, Weight, and Capitalization, then set Padding, sides, Padding, top and bottom, Corner radius, and Border width for the shape. All four have a slider and a number box and can hold a decimal, such as 20.5. Main button color sets the main button color from your Palette. Second button color sets the color for buttons that use the Alternate style.

When to use it

  • After setting your Palette, to match buttons to your brand colors.
  • When buttons feel too big, too square, or don't match your form fields. Match Corner radius with Styles → Forms.
  • Before styling Hero, CTA, and Grid blocks that offer Button and Alternate link styles.

Tips

  • Main button color fills the button and its border, with white text.
  • Blocks set to the Alternate style use Second button color. Set it to Secondary or Accent for a clear second button color.
  • Buttons on a section in your button Main button color (for example a Primary Background block, or a Group, Columns or Column with a Primary background, when Main button color is Primary; a Black one when Main button color is Text) switch to Second button color, so they don't disappear into the section. On a Group or Columns, buttons with a style or a color of their own keep it.
  • Buttons in Second button color keep white text wherever it's easy to read on that color (a contrast of 4.5:1 or more). On a light color, such as a pale yellow or light gray, the text turns black. On hover they darken as usual, unless the text would get hard to read; then they keep their color.
  • Border width at 0 with a Corner radius above 0 gives solid pill buttons. A visible border works well for outline buttons over photos.
  • Menu items styled as buttons use these settings too. Menu text is set under Styles → Navigation.
  • To add an arrow to one button, select the Button block and turn on Show arrow under Arrow in the block settings. It works with every button style and matches the button's text color. The arrow slides in when the page loads and nudges on hover. If the button's text already has a typed arrow, delete it so you don't get two.
  • Width shows when this style's font comes in several widths and is set to Full axis in Dirigible Fonts. Uncheck Default and drag the slider for a condensed (narrower) or expanded (wider) cut of the font; the slider covers only the widths the font has. Leave Default checked to keep the width the text has now.

Settings

Buttons

Font

Picks which of the three stacks from Styles → Fonts this style uses. Each row shows the family behind it, with a sample set in that font.

  • Headings
  • Bodydefault
  • Alternate
Text size10 to 36 px. Default 16.
Letter spacing-0.2 to 0.3 em. Default 0.
Width

Shows when this style's font comes in several widths and is set to Full axis in Dirigible Fonts. Uncheck Default, then drag for a narrower (condensed) or wider (expanded) cut; the slider covers only the widths the font has. Default keeps the width the text has now.

Weight

With a variable font, a slider and a number box cover the weights the font has. With other fonts, only the weights Dirigible Fonts loads show. A saved weight the font doesn't load is marked, with a note.

  • Extra light
  • Light
  • Normal
  • Book
  • Semibold
  • Bolddefault
  • Extra bold
  • Black
  • Extra black
Capitalization
  • Nonedefault
  • Uppercase
  • Lowercase
  • Title Case
Padding, sides0 to 64 px. Default 24.
Padding, top and bottom0 to 64 px. Default 16.
Corner radius0 to 100 px. Default 0.
Border width0 to 8 px. Default 2.
Main button color
  • Text
  • Primarydefault
  • Secondary
  • Accent
  • Variant
  • Muted
Second button color
  • Text
  • Primary
  • Secondarydefault
  • Accent
  • Variant
  • Muted

Built by Dirigible Studio. Get in touch