Styling

The Findstr plugin uses global CSS variables that can be overriden in your theme.

Variables

VariableDefault ValueDescription
--findstr-primary-color#FF5CAAChanges the main accent color.
--findstr-secondary-color#4F55E3Changes the secondary accent color.
--findstr-border-color#dededeChanges the color used for borders of inputs and sections.
--findstr-disabled-color#dededeChanges the color of disabled inputs.
--findstr-font-family'Arial', sans-serifChanges the font family of elements.
--findstr-font-size-regular16pxChanges the font size of regulat text elements (inputs, labels, etc.).
--findstr-font-size-large24pxChanges the font size of larger text elements (titles).
--findstr-font-size-small14pxChanges the font size of smaller text elements (tags, descriptions).
--findstr-transition-delay0.4sChanges the delay of transitions for hover effects.
--findstr-input-padding20pxChanges the inputs padding.

Usage

The variables can be overriden like this:

body {
  --findstr-primary-color: #000000;
  --findstr-secondary-color: #000000;
}

With Sass, Sass variables can be used to override CSS variables like this:

body {
  --findstr-primary-color: #{$your-sass-variable};
}

The variables can also be used to style custom elements like this:

.your-element {
  color: var(--findstr-primary-color);
}

Overriding styles

Every style applied to Findstr elements can be overriden in your theme to make customizations. Just make sure either the stylesheet of your theme is called after the plugin's stylesheet or that you use more specific CSS rules, like this:

body .findstr-field {
  margin: 20px;
}

Useful CSS classes to know

CSS ClassDescription
.findstrFieldContainerWrapper of every findstr facet field.
.findstr-fieldClass of every findstr facet field.
.findstrResultsContainerWrapper of search results listing.