Buttons

Use a button to help users perform actions, such as submitting a form or dynamically adding, removing, showing, or hiding elements on a page.

Usage guidance

Buttons should not be used for navigation purposes; use links instead.

Write button text in sentence case, clearly describing the action it performs. The button label should be short, clear, and direct. For example: “Save and continue” or “Sign in.”

Button colours should not be altered. If a new button colour is needed, always ensure the colours meet accessibility standards.

The disabled state for buttons has been intentionally omitted, as we aim to avoid using buttons in a disabled state.

Base classes

HTML
<button type="button" class="btn btn-primary">Primary</button>
<button type="button" class="btn btn-secondary">Secondary</button>

Sizes

HTML
<button type="button" class="btn btn-primary btn-sm">Small button</button>
<button type="button" class="btn btn-secondary btn-sm">Small button</button>

Variants

HTML
<!-- Grassy green -->
<button type="button" class="btn btn-info">Button</button>
<!-- Deep rose -->
<button type="button" class="btn btn-danger">Button</button>
<!-- Honey yellow -->
<button type="button" class="btn btn-success">Button</button>

Close button

HTML
<button type="button" class="btn-close" aria-label="Close"><span>Close</span></button>