Loomi AI for Shopify: CSS class reference

Loomi AI for Shopify supports CSS classes used to customize Search, Autosuggest, and Collections. The classes won't change between non-breaking releases, so your styles stay intact when the app updates.

To apply custom styles, use the Custom CSS setting available in each widget's configuration in the Loomi AI for Shopify app.

📘

The CSS classes in this article apply to Loomi AI for Shopify only and differ from those in the Discovery Shopify app.

Naming convention

All classes follow a BEM naming convention with a br- namespace:

  • Block: br-{block-name} — for example, br-search-widget
  • Element: br-{block-name}__{element-name} — for example, br-search-widget__input
  • Modifier: br-{block-name}--{modifier} — for example, br-widget-host--search

Names use lowercase and kebab-case segments.

Stability rules

  • Documented class names won’t be renamed or removed without a major version bump.
  • New classes may be added at any time.
  • If a rename is unavoidable, backward-compatibility aliases will be kept for at least one major version.

Shared classes

These classes apply to both the Search and Collections widgets.

ClassDescription
br-widget-resetBase reset layer applied to all widget host elements. Ensures style isolation from your store's theme.
br-widget-hostTop-level wrapper around any widget instance.
br-widget-host--searchModifier applied when the widget is a search page.
br-widget-host--collectionsModifier applied when the widget is a collections page.
br-collectionsRoot container of the Collections widget.
br-collections__resultsWrapper around the product results area within Collections.
br-products__gridGrid layout container that holds product cards.
br-toolbarToolbar row containing sorting controls, pagination, and the show all filters toggle.
br-facets__containerWrapper around all facet filter groups.
br-facets__selectedContainer for currently active filter chips.

Search widget

ClassDescription
br-search-widgetRoot container of the full search page widget.
br-search-widget__barSearch bar area containing the input field, clear button, and submit button.
br-search-widget__inputText input field where the user types a search query.
br-search-widget__clearButton that clears the current search input.
br-search-widget__submitButton that submits the search query.
br-search-widget__query-displayBlock showing the "Showing results for…" message after a search.
br-search-widget__redirect-displayBlock shown when the search triggers a keyword redirect.
br-search-widget__did-you-meanBlock containing "Did you mean?" spelling suggestions.
br-search-widget__count-displayBlock displaying the total number of results found.
br-search-widget__resultsWrapper around the search results product grid.

Autosuggest

Search page autosuggest

These classes apply to the autosuggest dropdown that appears on the search results page.

ClassDescription
br-search-autosuggestRoot container of the autosuggest dropdown on the search page.
br-search-autosuggest__panelInner panel holding all autosuggest content.
br-search-autosuggest__listList of query suggestion items.
br-search-autosuggest__itemSingle suggestion entry within the suggestion list.
br-search-autosuggest__brandsSection displaying brand suggestions related to the query.
br-search-autosuggest__productsSection displaying product previews within autosuggest.
br-search-autosuggest__show-allLink or button that navigates to full search results for the current query.

Header and modal autosuggest

These classes apply to the autosuggest dropdown that appears in your store's header search box or modal.

ClassDescription
br-autosuggestRoot container of the header or modal autosuggest overlay.
br-autosuggest__panelInner panel holding suggestions and product previews.
br-autosuggest__listList of query suggestion items.
br-autosuggest__itemSingle suggestion entry within the suggestion list.
br-autosuggest__titleSection heading label (for example, "Suggestions" or "Products").
br-autosuggest__productsSection displaying product previews within autosuggest.
br-autosuggest__show-allLink or button that navigates to full search results for the current query.

Product card

ClassDescription
br-product-cardRoot element of an individual product card.
br-product-card__imageProduct image element inside the card.
br-product-card__titleProduct title text.
br-product-card__priceContainer for all price information.
br-product-card__price-saleDiscounted sale price value.
br-product-card__price-originalOriginal strikethrough price shown alongside a sale price.
br-product-card__add-to-cartAdd-to-cart button on the product card.

Facets

ClassDescription
br-facetRoot element of a single facet filter group (for example, "Color" or "Size").
br-facet__titleClickable heading of the facet group.
br-facet__optionIndividual selectable filter option within a facet.
br-facet__option--selectedModifier applied to a facet option that is currently active.
br-slider-facet__containerRoot element of a range slider facet (for example, a price range filter).
br-facet-chipPill element representing a single active filter that can be removed.

Pagination

ClassDescription
br-paginationRoot container of the pagination controls.
br-pagination__pageIndividual page number button.
br-pagination__page--activeModifier applied to the currently active page number.

Sorting

ClassDescription
br-sortingRoot container of the sort-by dropdown.
br-sorting__dropdownDropdown panel listing available sort options.
br-sorting__optionIndividual sort option within the dropdown.

© Bloomreach, Inc. All rights reserved.