Skip to main content
FilterIQRequest access
Menu
Type to search across all documentation
NavigateEnterOpenEscClose
4 min read

Filter Customization

Customize filter appearance with CSS variables, class overrides, and layout configuration.

Filter Customization

FilterIQ provides multiple ways to customize the appearance of your filter UI without modifying your theme code.

CSS Variables

The filter UI uses CSS custom properties (variables) for theming. You can override these in your theme's CSS to match your brand colors.

Add the following to your theme's CSS (via Online Store > Themes > Customize > Theme settings or a custom CSS file):

:root {
  /* Primary accent color (used for selected states, active filters) */
  --ssf-accent: #008060;
  --ssf-accent-hover: #006e52;

  /* Text colors */
  --ssf-text: #1a1a1a;
  --ssf-text-secondary: #6b7280;
  --ssf-text-muted: #9ca3af;

  /* Background colors */
  --ssf-bg: #ffffff;
  --ssf-bg-hover: #f9fafb;
  --ssf-bg-selected: #f0fdf4;

  /* Border colors */
  --ssf-border: #e5e7eb;
  --ssf-border-active: #008060;

  /* Filter section spacing */
  --ssf-section-gap: 1.5rem;
  --ssf-option-gap: 0.5rem;

  /* Border radius */
  --ssf-radius: 0.5rem;
  --ssf-radius-sm: 0.25rem;

  /* Swatch sizing */
  --ssf-swatch-size: 32px;

  /* Font settings */
  --ssf-font-family: inherit;
  --ssf-font-size: 14px;
  --ssf-heading-size: 13px;
}

CSS Class Reference

All filter elements use the ssf- prefix for their CSS classes. You can target these classes in your theme CSS for fine-grained control.

Container Classes

ClassElement
.ssf-filter-sidebarMain sidebar container
.ssf-filter-toolbarHorizontal toolbar container
.ssf-filter-drawerMobile drawer container
.ssf-filter-sectionIndividual filter group wrapper
.ssf-filter-headingFilter group heading (e.g., "Color", "Size")

Filter Option Classes

ClassElement
.ssf-checkboxCheckbox filter option
.ssf-checkbox--selectedSelected checkbox
.ssf-radioRadio button option
.ssf-swatchColor/image swatch
.ssf-swatch--selectedSelected swatch
.ssf-size-btnSize selector button
.ssf-range-sliderPrice/numeric range slider
.ssf-toggleBoolean toggle switch
.ssf-star-ratingStar rating filter

State Classes

ClassMeaning
.ssf-loadingApplied to body during initial load (CLS guard)
.ssf-filter--disabledFilter option with zero matching products
.ssf-filter--collapsedCollapsed filter section
.ssf-filter--expandedExpanded filter section

Product Grid Classes

ClassElement
.ssf-product-cardProduct card in search results
.ssf-product-imageProduct thumbnail
.ssf-product-titleProduct title text
.ssf-product-priceProduct price
.ssf-product-compare-priceCompare-at (strikethrough) price

Layout Presets

Layout presets control the structural arrangement of your filters. You can manage these in Filters > Presets > Layout Presets.

Preset Options

OptionValuesDescription
Containersidebar, toolbar, drawerWhere filters appear
Collapse Defaultsper-filterWhether each filter starts collapsed or expanded
Zone Settingsper-zoneConfiguration specific to each display zone

Creating a Custom Layout Preset

  1. Go to Filters > Presets > Layout Presets
  2. Click Create Preset
  3. Set a name (e.g., "Holiday Layout")
  4. Choose the container type
  5. Configure collapse defaults for each filter
  6. Click Save

You can then assign this preset to specific filter sets (e.g., use "sidebar" for desktop collections and "drawer" for seasonal sale pages).

Config Presets

Config presets control behavioral settings for your filters.

OptionDefaultDescription
Show CountsOnDisplay product count next to each filter option
Auto ApplyOffApply filters immediately on selection vs. requiring an "Apply" button
SEO IndexingOffAllow search engines to index filtered URLs
Target CollectionOnShow filters on collection pages
Target SearchOnShow filters on search results pages

Filter-Specific Settings

Each individual filter can be customized:

  • Label -- The display name shown to shoppers
  • Position -- Drag-and-drop ordering in the filter panel
  • Default Collapsed -- Whether the filter starts collapsed
  • Show Search -- Add a search box within the filter (useful for filters with many options)
  • Multi-Select -- Allow selecting multiple values simultaneously
  • Sort Order -- Sort options by count, alphabetically, or custom order

Merge Groups (Value Grouping)

For filters with inconsistent values (e.g., "Red", "red", "Crimson" all meaning the same thing), you can create merge groups:

  1. Go to the filter configuration
  2. Find the Merge Groups section
  3. Set a primary value (e.g., "Red")
  4. Add synonyms (e.g., "red", "Crimson", "Scarlet")
  5. Save -- shoppers will see "Red" as a single filter option that matches all grouped values

Examples

Matching Shopify Polaris colors

:root {
  --ssf-accent: #008060;
  --ssf-bg: #ffffff;
  --ssf-border: #c9cccf;
  --ssf-text: #202223;
}

Matching a dark theme

:root {
  --ssf-accent: #00e5ff;
  --ssf-bg: #1a1a1a;
  --ssf-bg-hover: #222222;
  --ssf-text: #f0f0f0;
  --ssf-text-secondary: #94a3b8;
  --ssf-border: #333333;
}
Was this page helpful?