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.

    Focus Indicator

    Create clear focus styles that guide users through your interface.

    When to use

    Apply focus styles to every interactive element such as buttons, links, and form controls so users can navigate confidently.

    How to use

    Create two contrasting borders by applying box-shadow and removing the browser default outline. This approach ensures your focus style meets contrast requirements independently.

    Example

    *:focus {
      box-shadow: var(--pl-focus-box-shadow);
    }
    
    /* Or modify for your situation */
    *:focus {
      box-shadow: 0 0 0 2px var(--pl-color-bg-accent), 0 0 0 4px var(--pl-color-fg-default);
      outline: none;
    }
    

    Relevant guidelines

    Where it's used

    Design System

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