Klaviyo Reviews CSS class reference
You can use our supported Klaviyo Reviews CSS classes to customize your Klaviyo reviews widgets to be consistent with your brand. Note, for basic customization, you can use drag and drop editors. For advanced customization, you can check out the advanced Klaviyo Reviews CSS guide.
Product reviews widget
The CSS classes listed below are for styling your product reviews widget (Wrapper: #klaviyo-product-reviews-wrapper).
We suggest that you use a widget's wrapper as an additional selector, in addition to any of its available selectors, to ensure that your custom CSS overrides any default styling. For styling the product reviews widget, your CSS code should look like the following example:
#klaviyo-product-reviews-wrapper { .kl_reviews__button { background-color: pink; } }
Custom questions
The following classes are for customizing the display of custom questions you can request from customers about your product:
-
kl_reviews__summary__custom_question__question--rangeCustom question requesting for a range response.
-
kl_reviews__summary__custom_question__answer--rangeRange indicators for a custom question requesting for a range response.
-
kl_reviews__summary__custom_question__question--textCustom question with response(s) in text.
-
kl_reviews__summary__custom_question__answer--textResponse in text to a custom question.
Navigation
Use the following classes to enhance your target customers’ navigation experience with your reviews list:
-
kl_reviews__searchSearch bar for review lookups.
- Use
#klaviyo-product-reviews-wrapper .kl_reviews__search ::placeholderto select the text within the search field.
- Use
-
kl_reviews__filters__custom_question_labelFilter option label for reviews.
-
kl_reviews__filters__pillFilter option pill for reviews.
-
kl_reviews__filters__groupFilter options for reviews.
-
kl_reviews__list__tabReviews and Questions tabs above the reviews list.
-
kl_reviews__buttonButton for showing more reviews.
Reviews list
Customize the look and feel of your reviews as they appear in your reviews list with the following classes:
-
kl_reviews__review__timestampTimestamp of a review’s submission.
-
kl_reviews__review__titleThe title of a review.
-
kl_reviews__review__response_titleThe text above your (the brand’s) response to a review indicating when the brand replied.
-
kl_reviews__review__imageImage provided from a review in the reviews list.
-
kl_reviews__review__authorThe review author’s username.
-
kl_reviews__review__contentThe review's content (e.g., "This is an excellent product!").
-
kl_reviews__custom_question__question--textThe text of a custom question with text answer options (e.g., for the custom question “Would you recommend this product to a friend?” with the answer options “Yes” and “No”, this selector refers to the text “Would you recommend this product to a friend?”)
-
kl_reviews__custom_question__answer--textAnswer to a custom question in text.
-
kl_reviews__custom_question__question--rangeThe text of a custom question with a range of answer options (e.g., for the custom question “How likely are you to recommend this product to a friend?” with a range selector from “Very unlikely” to “Very likely”, this selector refers to the text “How likely are you to recommend this product to a friend?”)
-
kl_reviews__custom_question__answer--rangeAnswer to a custom question with a range response.
Reviews summary
The following classes are for customizing the style of your reviews summary, which displays your product’s ratings:
-
kl_reviews__summary__image_photoImage gallery of a product.
-
kl_reviews__summary__average_valueThe number indicating a product’s average rating out of 5.
-
kl_reviews__summary__average_denominatorDenominator for the average rating of a product (i.e., “/5” in the review summary”).
-
kl_reviews__summary__stars__countTotal number of customer ratings for a product.
-
kl_reviews__histogram__rowRow of a reviews histogram.
-
kl_reviews__histogram__valueThe value of a reviews histogram.
-
kl_reviews__histogram__ratingThe rating of a reviews histogram.
-
kl_reviews__histogram__bar--backgroundBackground of a reviews histogram bar.
-
kl_reviews__histogram__bar--foregroundForeground of a reviews histogram bar.
Stars
Customize the appearance of stars shown in your products review widget with the following classes:
-
kl_reviews__full_starThe icon for full (i.e., filled) stars.
-
kl_reviews__partial_starThe icon for partially filled stars (e.g., if a product’s rating is 4.5 stars, the fifth star will be one-half filled; this is a partial star).
-
kl_reviews__empty_starThe icon for empty (i.e., unfilled) stars.
-
kl_reviews__starStar review type.
- If you’ve selected the “star” star type, each star will have this selector.
- If you’ve selected the “heart” star type, each star will have this selector.
-
kl_reviews__circleCircle review type.
- If you’ve selected the “circle” star type, each star will have this selector.
Customization variables
Use the customization variables below for styling your product reviews widget. These are custom properties can set within the product reviews widget wrapper (#klaviyo-product-reviews-wrapper)to style buttons, filters, stars, and more.
Buttons
--kl-reviews-reviews-button-color: #1C65AD;--kl-reviews-reviews-button-corner-radius: 8px;--kl-reviews-reviews-button-hover-color: #606A72;--kl-reviews-reviews-button-font-font-family: inherit;--kl-reviews-reviews-button-font-font-weight: 400;--kl-reviews-reviews-button-font-color: #202223;
Colors
--kl-reviews-reviews-primary-background-color: unset;--kl-reviews-reviews-secondary-background-color: #e9e9eb;--kl-reviews-reviews-accent-color: #1C65AD;
Filters
--kl-reviews-reviews-filter-style-width: 1px;--kl-reviews-reviews-filter-color: #1C65AD;--kl-reviews-reviews-filter-corner-radius: 8px;--kl-reviews-reviews-filter-background-color: white;
Fonts
--kl-reviews-reviews-primary-font-font-family: inherit;--kl-reviews-reviews-primary-font-font-weight: 400;--kl-reviews-reviews-primary-font-color: #202223;--kl-reviews-reviews-secondary-font-font-family: inherit;--kl-reviews-reviews-secondary-font-font-weight: 400;--kl-reviews-reviews-secondary-font-color: #606A72;
Images
--kl-reviews-reviews-summary-images-corner-radius: 0px;--kl-reviews-reviews-review-images-corner-radius: 0px;--kl-reviews-reviews-review-images-size: 120px;
Shapes
--kl-reviews-reviews-corner-radius: 8px;
Stars
--kl-reviews-reviews-star-color: #F8BE00;--kl-reviews-reviews-empty-star-color: #E5E5E5;--kl-reviews-reviews-star-spacing: 0px;
All reviews widget
The CSS classes listed below are for styling your all reviews widget (Wrapper: #klaviyo-all-reviews-wrapper).
Navigation
Use the following classes to enhance your target customers’ navigation experience:
-
kl_reviews__searchSearch bar for review lookups.
- Use
#klaviyo-all-reviews-wrapper .kl_reviews__search ::placeholderto select the text within the search field.
- Use
-
kl_reviews__filters__pillFilter option pill for reviews.
-
kl_reviews__filters__groupFilter options for reviews.
-
kl_reviews__buttonButton for showing more reviews.
Reviews list
Customize the look and feel of your reviews as they appear in your reviews list with the following classes:
-
kl_reviews__review__product_cardThe containing element for the product card.
-
kl_reviews__review__product_card__containerThe clickable container for the product card.
-
kl_reviews__review__product_card__detailsThe containing element for the product card text.
-
kl_reviews__review__product_card__details__nameThe name of the product.
-
kl_reviews__review__product_card__details__review_infoStar rating and review count.
-
kl_reviews__review__product_card__caratThe carat icon at the right side of the product card.
-
kl_reviews__review__timestampTimestamp of a review’s submission.
-
kl_reviews__review__titleThe title of a review.
-
kl_reviews__review__response_titleThe text above your (the brand’s) response to a review indicating when the brand replied.
-
kl_reviews__review__imageImage provided from a review in the reviews list.
-
kl_reviews__review__authorThe review author’s username.
-
kl_reviews__review__contentThe review's content (e.g., "This is an excellent product!").
Reviews summary
The following classes are for customizing the style of your reviews summary, which displays your product’s ratings:
-
kl_reviews__summary__image_photoImage gallery of a product.
-
kl_reviews__summary__average_valueThe number indicating a product’s average rating out of 5.
-
kl_reviews__summary__average_denominatorDenominator for the average rating of a product (i.e., “/5” in the review summary”).
-
kl_reviews__summary__stars__countTotal number of customer ratings for a product.
Stars
Customize the appearance of stars shown in your all reviews widget with the following classes:
-
kl_reviews__full_starThe icon for full (i.e., filled) stars.
-
kl_reviews__partial_starThe icon for partially filled stars (e.g., if a product’s rating is 4.5 stars, the fifth star will be one-half filled; this is a partial star).
-
kl_reviews__empty_starThe icon for empty (i.e., unfilled) stars.
-
kl_reviews__starStar review type.
- If you’ve selected the “star” star type, each star will have this selector.
- If you’ve selected the “heart” star type, each star will have this selector.
-
kl_reviews__circleCircle review type.
- If you’ve selected the “circle” star type, each star will have this selector.
Customization variables
Use the customization variables below for styling your all reviews widget. These are custom properties can set within the all reviews widget wrapper (#klaviyo-all-reviews-wrapper)to style buttons, filters, stars, and more.
Buttons
--kl-reviews-reviews-button-color: #1C65AD;--kl-reviews-reviews-button-corner-radius: 8px;--kl-reviews-reviews-button-hover-color: #606A72;--kl-reviews-reviews-button-font-font-family: inherit;--kl-reviews-reviews-button-font-font-weight: 400;--kl-reviews-reviews-button-font-color: #202223;
Colors
--kl-reviews-reviews-primary-background-color: unset;--kl-reviews-reviews-secondary-background-color: #e9e9eb;--kl-reviews-reviews-accent-color: #1C65AD;
Filters
--kl-reviews-reviews-filter-style-width: 1px;--kl-reviews-reviews-filter-color: #1C65AD;--kl-reviews-reviews-filter-corner-radius: 8px;--kl-reviews-reviews-filter-background-color: white;
Fonts
--kl-reviews-reviews-primary-font-font-family: inherit;--kl-reviews-reviews-primary-font-font-weight: 400;--kl-reviews-reviews-primary-font-color: #202223;--kl-reviews-reviews-secondary-font-font-family: inherit;--kl-reviews-reviews-secondary-font-font-weight: 400;--kl-reviews-reviews-secondary-font-color: #606A72;
Images
--kl-reviews-reviews-summary-images-corner-radius: 0px;--kl-reviews-reviews-review-images-corner-radius: 0px;--kl-reviews-reviews-review-images-size: 120px;
Shapes
--kl-reviews-reviews-corner-radius: 8px;
Stars
--kl-reviews-reviews-star-color: #F8BE00;--kl-reviews-reviews-empty-star-color: #E5E5E5;--kl-reviews-reviews-star-spacing: 0px;
Featured review carousel widget
Use the CSS classes below to style your featured review carousel widget (Wrapper: #klaviyo-reviews-carousel-wrapper). The following example shows how to use the featured review carousel widget wrapper selector for styling:
#klaviyo-reviews-carousel-wrapper {
--kl-reviews-featured-featured-image-size: 180px;
}
-
kl_reviews__carousel__slideFeatured product review tile.
-
kl_reviews__carousel__imageImage on a featured product review.
-
kl_reviews__carousel__timestampTimestamp of a featured product review.
-
kl_reviews__carousel__content_titleTitle of a featured product review.
-
kl_reviews__carousel__content_bodyBody text of a featured product review.
-
kl_reviews__carousel__authorAuthor of a featured product review.
Customization variables
Use the customization variables below for styling your featured reviews carousel widget. These are custom properties you can set within the featured reviews carousel widget wrapper (#klaviyo-reviews-carousel-wrapper)to style fonts, images, stars, and more.
Colors
--kl-reviews-featured-primary-background-color: unset;--kl-reviews-featured-secondary-background-color: #e9e9eb;
Fonts
--kl-reviews-featured-primary-font-font-family: inherit;--kl-reviews-featured-primary-font-font-weight: 400;--kl-reviews-featured-primary-font-color: #202223;--kl-reviews-featured-secondary-font-font-family: inherit;--kl-reviews-featured-secondary-font-font-weight: 400;--kl-reviews-featured-secondary-font-color: #606A72;
Images
--kl-reviews-featured-featured-image-size: 180px;
Shapes
--kl-reviews-featured-corner-radius: 8px;
Stars
--kl-reviews-featured-star-color: #F8BE00;--kl-reviews-featured-empty-star-color: #E5E5E5;--kl-reviews-featured-star-spacing: 0px;
Text
--kl-reviews-featured-featured-text-limit: 3;
Star rating widget
Use the following CSS class for styling your star rating widget (Wrapper: .kl_reviews__star_rating_widget.kl_reviews__star_rating_widget.kl_reviews__star_rating_widget):
-
kl_reviews__star_rating_widget__labelText on a star rating for a product (i.e., “# ratings”).
The following example shows how to use the star rating widget wrapper selector for styling:
.kl_reviews__star_rating_widget.kl_reviews__star_rating_widget.kl_reviews__star_rating_widget {
--kl-reviews-stars-primary-font-color: red;
}
Customization variables
Use the customization variables below for styling your star rating widget. These are custom properties you can set within the star rating widget wrapper for styling including colors, fonts, and spacing.
Colors
--kl-reviews-stars-star-color: #F8BE00;--kl-reviews-stars-empty-star-color: #E5E5E5;
Fonts
--kl-reviews-stars-primary-font-font-family: inherit;--kl-reviews-stars-primary-font-font-weight: 400;--kl-reviews-stars-primary-font-color: #202223;
Widget spacing
--kl-reviews-stars-widget-margin-top: 0px;--kl-reviews-stars-widget-margin-right: 0px;--kl-reviews-stars-widget-margin-bottom: 0px;--kl-reviews-stars-widget-margin-left: 0px;
Star spacing
--kl-reviews-stars-star-spacing: 0px;
Additional resources
Updated about 1 year ago