back to playground

Buttons

This design system includes two styles of buttons.

Interact with the examples below to view the expected behaviour of each button type.

Usage

Primary buttons should be used sparingly to indicate the most important call-to-action for a user on a page. The secondary button is suitable for situations where no more action is needed by the user after clicking the button.

Accessibility

Make sure to provide descriptive text content, or a descriptive aria-label for buttons with only icons, and use the provided colours to ensure appropriate colour contrast.

Code Example

        <!-- Primary Button -->
        <button type="button" class="btn-main">Primary</button>

        <!-- Secondary Button -->
        <button type="button" class="btn-second">Secondary</button>