Customizing Buttons

The following table lists the available variables for customization.

Name Default value Description
$button-bg $secondary The background of the buttons.
$button-text contrast-wcag( $button-bg, $gray-900 ) The text color of the buttons.
$button-border $button-bg The border color of the buttons.
$button-gradient null The background gradient of the buttons.
$button-hovered-bg try-darken( $button-bg, 7.5% ) The background of hovered buttons.
$button-hovered-text contrast-wcag( $button-hovered-bg, $gray-900 ) The text color of hovered buttons.
$button-hovered-border try-darken( $button-border, 10% ) The border color of hovered buttons.
$button-hovered-gradient null The background gradient of hovered buttons.
$button-pressed-bg try-darken( $button-bg, 10% ) The background color of pressed buttons.
$button-pressed-text contrast-wcag( $button-pressed-bg, $gray-900 ) The text color of pressed buttons.
$button-pressed-border try-darken( $button-border, 12.5% ) The border color of pressed buttons.
$button-pressed-gradient null The background gradient of pressed buttons.
$button-focused-shadow 0 0 0 3px rgba($button-border, .5) The shadow of focused buttons.

In this article