v1.6.0
    • Get started

      Install the package, load its styles and components, and build your first page.

    • Foundations

      The content guide, CSS utilities, tokens, and the principles behind every pattern.

    • Patterns

      Every pattern with a live example, when to use it, and where it's already in use.

    Button

    Buttons are for actions. People expect buttons to do an action and links to navigate to another page.

    When to use

    Use buttons for actions like search, request, or delete. Use links for navigation from one page to another.

    How to use

    Use button types to create a hierarchy that guides people toward the most important actions.

    Default buttons should make up most of the page. Too many accent, success, or attention type buttons make it harder for people to focus.

    Default

    Use .pl-button for most actions on the page. It tells people this is not the main focus.

    <div class="pl-margin-m">
      <button class="pl-button">Okay</button>
    </div>
    

    Accent

    Use .pl-button--accent for the main action on the page. It tells people "start here."

    <div class="pl-margin-m">
      <button class="pl-button pl-button--accent">Find it</button>
    </div>
    

    Success

    Use .pl-button--success for actions that complete a task, like placing a request or saving a change.

    <div class="pl-margin-m">
      <button class="pl-button pl-button--success">Request an item</button>
    </div>
    

    Attention

    Use .pl-button--attention for actions that are hard to undo, like deleting or canceling something.

    <div class="pl-margin-m">
      <button class="pl-button pl-button--attention">Delete</button>
    </div>
    

    Button labels

    Keep labels short and start with a verb that describes what happens when people select the button.

    Where it's used

    Design System

    Get started Foundations Patterns Release notes · v1.6.0 Design notes