> Markdown version of [Styling](https://vaadin.com/docs/next/components/breadcrumbs/styling). Section index: [llms.txt](https://vaadin.com/docs/next/components/llms.txt)

# Breadcrumbs Styling

## <a id="style-variants"></a>Style Variants

Breadcrumbs supports the following style variants.

| Variant   | Description                                                                        | Supported by |
| --------- | ---------------------------------------------------------------------------------- | ------------ |
| `slash`   | Uses a slash (`/`) as the separator between items instead of the default separator | Lumo, Aura   |
| `primary` | Renders the links using the primary color for stronger emphasis                    | Lumo         |
| `accent`  | Renders the links using the accent color for stronger emphasis                     | Aura         |

## <a id="style-properties"></a>Style Properties

The following style properties can be used in CSS stylesheets to customize the appearance of this component.

To apply values to these properties globally in your application UI, place them in a CSS block using the `html {…​}` selector. See [Component Style Properties](https://vaadin.com/docs/next/styling/styling-components.md#component-style-properties) for more information on style properties.

#### <a id="breadcrumbs-properties"></a>Breadcrumbs Properties

| Property                              | Supported by |
| ------------------------------------- | ------------ |
| `--vaadin-breadcrumbs-font-size`      | Aura, Lumo   |
| `--vaadin-breadcrumbs-font-weight`    | Aura, Lumo   |
| `--vaadin-breadcrumbs-gap`            | Aura, Lumo   |
| `--vaadin-breadcrumbs-line-height`    | Aura, Lumo   |
| `--vaadin-breadcrumbs-link-color`     | Aura, Lumo   |
| `--vaadin-breadcrumbs-overflow-icon`  | Aura, Lumo   |
| `--vaadin-breadcrumbs-separator-icon` | Aura, Lumo   |
| `--vaadin-breadcrumbs-text-color`     | Aura, Lumo   |

#### <a id="breadcrumbs-item-properties"></a>Breadcrumbs Item Properties

| Property                                  | Supported by |
| ----------------------------------------- | ------------ |
| `--vaadin-breadcrumbs-item-border-radius` | Aura, Lumo   |
| `--vaadin-breadcrumbs-item-gap`           | Aura, Lumo   |

### <a id="animation"></a>Animation (since V25.3)

The overlay has a built-in opening and closing animation, which is disabled until an animation duration is set. The `closed` properties define the state that the overlay animates from when it opens, and to when it closes. The Aura theme sets these properties for some components. Lumo has its own overlay animations, which these properties don’t affect.

While an animation runs, the component has the `opening` or `closing` state attribute, so separate values can be applied to each direction. The backdrop always fades, and only the opacity is animated when the user prefers reduced motion.

| Property                                     | Value syntax                   | Initial value |
| -------------------------------------------- | ------------------------------ | ------------- |
| `--vaadin-overlay-animation-delay`           | `<time>`                       | `0s`          |
| `--vaadin-overlay-animation-duration`        | `<time>`                       | `0s`          |
| `--vaadin-overlay-animation-timing-function` | `<easing-function>`            | `ease`        |
| `--vaadin-overlay-opacity-closed`            | `<number>`                     | `0`           |
| `--vaadin-overlay-scale-closed`              | `<number>` or `<percentage>`   | `1`           |
| `--vaadin-overlay-transform-closed`          | `<transform-list>`             | `none`        |
| `--vaadin-overlay-translate-closed`          | `<length>+` or `<percentage>+` | `0px`         |

## <a id="css-selectors"></a>CSS Selectors

The following CSS selectors can be used in stylesheets to target the various parts and states of the component. See the [Styling documentation](https://vaadin.com/docs/next/styling.md) for more details on how to style components.

> **Important: Not for Shadow DOM**
>
> These selectors should be used in `styles.css` or another stylesheet loaded with the `@StyleSheet` annotation or the `@import` CSS rule. **They do not work in the shadow DOM of Vaadin components**, such as in stylesheets in the `components` sub-folder or loaded with the `@CssImport` annotation’s `themeFor` property.

---

- Root element

  `vaadin-breadcrumbs`

## <a id="parts"></a>Parts

- Item list

  `vaadin-breadcrumbs::part(list)`

- Overflow wrapper

  `vaadin-breadcrumbs::part(overflow)`

- Overflow button

  `vaadin-breadcrumbs::part(overflow-button)`

- Overflow overlay

  `vaadin-breadcrumbs::part(overlay)`

- Overflow overlay content

  `vaadin-breadcrumbs::part(overlay-content)`

## <a id="states"></a>States

- With collapsed items

  `vaadin-breadcrumbs[has-overflow]`

## <a id="breadcrumbs-item"></a>Breadcrumbs Item

- Item root element

  `vaadin-breadcrumbs-item`

- Current page item

  `vaadin-breadcrumbs-item[current]`

- Item link (with path)

  `vaadin-breadcrumbs-item::part(link)`

- Item non-link (current page)

  `vaadin-breadcrumbs-item::part(nolink)`

- Item label

  `vaadin-breadcrumbs-item::part(label)`

- Item prefix element

  `vaadin-breadcrumbs-item > [slot="prefix"]`

- Item with prefix content

  `vaadin-breadcrumbs-item[has-prefix]`

- Disabled item

  `vaadin-breadcrumbs-item[disabled]`

- Focused item

  `vaadin-breadcrumbs-item[focused]`

- Keyboard focused item

  `vaadin-breadcrumbs-item[focus-ring]`
