Skip to content

CSS Styles

If you choose to use the CSS files of Astro Breadcrumbs, you can use the following CSS variables to customize the look and feel of the component.

The CSS File is the compiled version of the SCSS file, using there SCSS default variables.

Default: $color-link default value @see

Defines the color rule for c-breadcrumbs__link.

—size-font-breadcrumbs

Default: $size-font default value @see

Sets the font size of the breadcrumbs.

—spacing-vertical-separator-breadcrumbs

Default: $spacing-vertical-separator default value @see

Controls the vertical spacing of the separator.

—display-ellipsis-breadcrumbs

Default: none

Controls .c-breadcrumbs__crumb that contains the truncated-button with the ellipsis.

—visibility-truncated-breadcrumbs

Default: hidden

Controls visibility of all truncated crumbs.

—position-truncated-breadcrumbs

Default: absolute

Controls position of all truncated crumbs.

—color-truncated-button

Default: --color-link-breadcrumbs

Controls the truncated-button color.

Usage

---
import "astro-breadcrumbs/breadcrumbs.css";
---