1.27.1 · master
Harbour

Components

Card Content Dialog Menu Popover Tag

Controls

Button Checkbox Drop-down menu Input Stepper Link Password Input Text Input

Layouts

Collection Form Layout Menu View Page

Variables

Icons

Button

The classes belonging to the button component can be used to style both the <button> and <a> element.

Link
<button class="button" type="button">Action</button>
<a class="button button--primary button--outline" href="/">Link</a>

Available states

Hover, focus and active

<button class="button is-hovered" type="button">is-hovered</button>
<button class="button is-focused" type="button">is-focused</button>
<button class="button is-active" type="button">is-active</button>

Disabled

<button class="button is-disabled" type="button">is-disabled</button>

Available modifiers

Colors

<button class="button button--call-to-action" type="button">button--call-to-action</button>
<button class="button button--primary" type="button">button--primary</button>
<button class="button button--secondary" type="button">button--secondary</button>

Outline version (available in all colors)

<button class="button button--outline" type="button">button--outline</button>

Sizes

<button class="button button--80" type="button">button--80</button>
<button class="button button--90" type="button">button--90</button>
<button class="button button--200" type="button">button--200</button>
<button class="button button--full" type="button">button--full</button>

Available local variables

Default button (ui colors)

$button-color
$button-background-color
$button-hover-color
$button-hover-background-color
$button-focus-box-shadow
$button-active-color
$button-active-background-color
$button-disabled-color
$button-disabled-background-color

Call to action

$button-call-to-action-color
$button-call-to-action-background-color
$button-call-to-action-hover-color
$button-call-to-action-hover-background-color
$button-call-to-action-focus-box-shadow
$button-call-to-action-active-color
$button-call-to-action-active-background-color
$button-call-to-action-disabled-color
$button-call-to-action-disabled-background-color

Primary

$button-primary-color
$button-primary-background-color
$button-primary-hover-color
$button-primary-hover-background-color
$button-primary-focus-box-shadow
$button-primary-active-color
$button-primary-active-background-color
$button-primary-disabled-color
$button-primary-disabled-background-color

Secondary

$button-secondary-color: red;
$button-secondary-background-color
$button-secondary-hover-color
$button-secondary-hover-background-color
$button-secondary-focus-box-shadow
$button-secondary-active-color
$button-secondary-active-background-color
$button-secondary-disabled-color
$button-secondary-disabled-background-color

Outline

$button-outline-border-width

When I'm not surfing or sailing, I am to be found at the harbour working on my boat.

Build on 20 July 2021 12:12