CSS class reference for Loomi for Shopify widgets

Loomi for Shopify supports CSS classes used to customize Search, Autosuggest, Collections, and Recommendations. 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 for Shopify app.

📘

Note

CSS classes let you restyle existing tile elements. If you need to add new elements, bind custom data, or match a fully custom design, use experience customization instead. For more information, see Customize product tiles​.

The CSS classes in this article apply to Loomi for Shopify only and differ from those in the Search 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 across the Search, Collections, and Recommendations 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-widget-host--recommendationsModifier applied when the widget is a recommendations section.
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-toolbar__filters-toggleMobile-only button that opens the filters drawer. Hidden on desktop.
br-toolbar__filters-drawerWrapper around facets. Transparent on desktop, full-screen drawer on mobile.
br-toolbar--filters-drawer-openModifier applied to the toolbar when the mobile filters drawer is open.
br-facets__containerWrapper around all facet filter groups.
br-facets__selectedContainer for currently active filter chips.

Search widget

See Search for setup and configuration.

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

See Autosuggest for setup and configuration.

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.

Recommendations widget

See Recommendations for setup and configuration.

ClassDescription
br-recommendationsRoot container of the recommendations widget instance.
br-recommendations__resultsWrapper around the recommendations results area, including the heading and product grid.
br-recommendations__headingHeading text rendered above the recommended products.
br-recommendations__emptyMessage shown when no recommendations are available.

The recommendations widget reuses br-products__grid for its product grid and br-product-card for individual products. Target .br-recommendations .br-products__grid to style the recommendations grid specifically.

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__pagesWrapper for the page number and ellipsis controls.
br-pagination__buttonShared class on the previous and next step buttons.
br-pagination__button--disabledModifier applied to a step button on the first or last page.
br-pagination__prevPrevious-page button modifier.
br-pagination__nextNext-page button modifier.
br-pagination__iconWrapper around the arrow icon inside a step button.
br-pagination__pageIndividual page number button.
br-pagination__page--activeModifier applied to the currently active page number.
br-pagination__ellipsisGap indicator rendered between non-adjacent page numbers.

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.


Did this page help you?

© Bloomreach, Inc. All rights reserved.