Breadcrumbs serve as a navigational aid, assisting users in understanding their current location within a website's hierarchy. Typically displayed as a horizontal trail of links, breadcrumbs commence with a link to the homepage and sequentially list links to each preceding level of the hierarchy leading to the current page.
learn more variables
The breadcrumbs theme provides a navigational aid for users to track their path within a website or application. Below are the variables you can customize to match your desired theme:
Variable | Description |
---|---|
--font-size |
Font size of the breadcrumbs. |
--background-color |
Background color of the breadcrumbs container. |
Variable | Description |
---|---|
--color |
Text color of the breadcrumb links. |
--color-primary |
Text color of the last breadcrumb link. |
Variable | Description |
---|---|
--font-size |
Size of the icon within the breadcrumbs. |
Variable | Description |
---|---|
--padding |
Spacing between breadcrumb items. |
/* Custom CSS Variables for Breadcrumbs */
.breadcrumbs {
--font-size: 16px; /* Adjust font size as needed */
--background-color: #f0f0f0; /* Set background color */
--color: #333333; /* Set text color */
--color-primary: #007bff; /* Set text color for the last breadcrumb */
--padding: 8px; /* Adjust padding between breadcrumb items */
}
<div class="breadcrumbs" bread-h-label="Home">
<!-- automatics window.location -->
</div>
The provided HTML snippet demonstrates a basic structure for implementing breadcrumbs. It employs a div
element with the class breadcrumbs
. The attribute bread-h-label="Home"
suggests the label "Home" for the breadcrumb link leading to the homepage. The comment <!-- automatics window.location -->
likely indicates an automatic mechanism for determining and updating breadcrumb links based on the current page's location.