---
name: reviewsion-widget-css
description: Restyle Reviewsion review widgets on a Shopify storefront with CSS, using their named rvsn- classes. Use when changing how a Reviewsion block looks in a Shopify theme (review cards, stars, carousels, review lists, colors, fonts, spacing), or when the page has elements whose classes start with rvsn-.
metadata:
  author: Reviewsion
  version: "1.2"
  homepage: https://www.reviewsion.com/skill
---

# Restyling Reviewsion widgets

Reviewsion is a Shopify reviews app. Its widgets are theme app blocks that
render straight into the store's page, with no shadow DOM and no iframe, so
the theme's own CSS reaches them. Their named classes start with `rvsn-`.

Work in this order. Use a setting first, then CSS on named classes, then
check the result in the browser.

## 1. Use a setting when one exists

Many looks are settings, not CSS. A setting survives theme changes and needs
no maintenance. The settings differ from widget to widget, so open the block
in the theme editor and read its settings before writing a rule. Common ones:

- **Colors** of stars, accent, text, card background and card border, in a
  light and a dark set. In the Reviewsion app, open **Settings**, then
  **Theme Block Colors** on the **General** tab.
- **Card border, card shadow, rounded corners, avatar, name format, carousel
  auto-slide** are in the **Reviewsion Core** app embed, in the theme
  editor's **App embeds** panel. They apply to every block.
- **Dark mode, section background, margins and padding** are on most blocks.
  Many also have max width, star size, how many reviews, show date, show
  photos or layout. Reviews Carousel and Media Carousel have **Card width**.
- **Review Notifications** is an app embed too, with its own position,
  timing and mobile settings.

The widget writes a block's margins, padding, max width and section
background as inline styles, and carousel slide widths as `!important`
rules. Change those through the settings, not CSS.

## 2. Find the element and its named class

Open the storefront page in a browser and inspect the widget. A section
block has this outer shape (Reviews Carousel shown):

```html
<div class="... rvsn rvsn-theme-block rvsn-theme-block__reviews-carousel">  <!-- Shopify's block wrapper -->
  <rvsn-reviews-carousel block_id="..." ...>        <!-- custom element; its attributes are the block settings -->
    <div rvsn-theme-mode="light">                   <!-- "dark" when the block's Dark setting is on -->
      <div class="rvsn-ReviewsCarouselWidgetContainer">   <!-- section background, top and bottom margin -->
        <div class="rvsn-ReviewsCarouselWidget ...">       <!-- max width, padding -->
          <div class="rvsn-ReviewsCarousel">
            ... <div class="rvsn-Carousel__Slide ..."> <div class="rvsn-Card rvsn-CarouselCard ..."> ...
```

Each element carries two kinds of class:

- **Named classes** are `rvsn-` followed by a capital letter, such as
  `rvsn-CarouselCard`, `rvsn-CarouselCard__Header` and `rvsn-Card--Border`.
  `Block__Part` is a part, and `--Modifier` is a state or variant. These are
  the classes to target. They are the hooks Reviewsion keeps stable for theme
  CSS.
- **Utility classes** describe a style, not a part. Most are lowercase after
  the prefix (`rvsn-p-4`, `rvsn-flex`, `rvsn-text-text-500`), some carry a
  variant (`dark:rvsn-text-text-600`, `md:rvsn-pl-8`), and a few have no
  prefix (`truncate`). The same utility sits on many unrelated elements, and
  utilities are what your rule overrides. Never select on them.

One element often carries several named classes. A review card in a carousel
is one element with both `rvsn-Card` and `rvsn-CarouselCard`.

Some classes end in the block's ID, such as `rvsn-ReviewsCarousel__Slide-` plus
the ID. Don't select on those. Use the shared `rvsn-Carousel__Slide` instead.

Don't select on nesting depth (`> div > div`), `:nth-child` positions or
`data-` attributes either. Select on named classes, the
`rvsn-theme-block__*` wrapper classes, the custom element tags, their
`block_id` attribute and `rvsn-theme-mode`.

## 3. Write the rule

**Scope every rule to one widget type** with its wrapper class. Card and part
classes are shared between widgets. `rvsn-CarouselCard` appears in Reviews
Carousel and in Compact Reviews in one layout, its parts appear in All Reviews
and in Media Carousel's split card, and `rvsn-Card` is under nearly every
review. An unscoped rule changes all of them.

```css
.rvsn-theme-block__reviews-carousel .rvsn-CarouselCard { ... }
```

The wrapper class is the same for every block of that type, so this changes
every Reviews Carousel on the page. To change one block only, scope by its
custom element's `block_id`, read from the page:

```css
rvsn-reviews-carousel[block_id="AbC123"] .rvsn-CarouselCard { ... }
```

The ID changes if the merchant deletes the block and adds it again. Scoping
by the theme section (`#shopify-section-...`) can reach every matching
block in that section, so use it only when that is what you want.

**Specificity.** The widget stylesheet can load after the theme's. The
wrapper class plus a named class (two classes) beats a plain one-class
utility whatever the load order. It ties with a state utility such as
`hover:` or `data-[disabled=true]:` (also two classes), and then load order
decides. When
DevTools shows your value crossed out, raise the selector by adding the
custom element tag between the wrapper and the part
(`.rvsn-theme-block__reviews-carousel rvsn-reviews-carousel .rvsn-CarouselCard`)
or another named ancestor. Use `!important` only against an `!important`
utility, on that declaration alone.

**Dark mode.** A block with Dark on renders `rvsn-theme-mode="dark"`. Write
dark-only rules under it:

```css
.rvsn-theme-block__reviews-carousel [rvsn-theme-mode="dark"] .rvsn-CarouselCard { ... }
```

**Colors as variables.** The Theme Block Colors become CSS custom properties
on each `[rvsn-theme-mode]` element, in families `--rvsn-primary-*` (Star),
`--rvsn-secondary-*` (Accent), `--rvsn-text-*`, `--rvsn-background-*` and
`--rvsn-border-*`, with shades 50 to 950 (`--rvsn-background-0` too). Each
value is an HSL triplet without `hsl()`, such as `220 14% 46%`, because the
widget reads it as `hsl(var(--rvsn-text-500) / <alpha>)`. A utility class
names its variable, so `rvsn-text-text-500` uses `--rvsn-text-500`. To recolor
one widget type, redefine the variables it uses, in the same triplet format:

```css
.rvsn-theme-block__reviews-carousel [rvsn-theme-mode="light"] {
  --rvsn-primary-500: 38 92% 50%;
}
```

Prefer changing the colors in Theme Block Colors when the change should
apply to every block.

**Dialogs and dropdowns outside the block.** Two things are added to the end
of `<body>`, outside every block wrapper, so a rule scoped to a wrapper class
or a `block_id` never reaches them.

- One dialog, `rvsn-Dialog` (with `rvsn-Dialog__Overlay`,
  `rvsn-Dialog__Content`, `rvsn-Dialog__Close`), serves three things. The
  Media Carousel lightbox holds `rvsn-SplitCard`. The Read More dialog,
  which shows a full review, holds `rvsn-ReadMoreCard__Content`. The viewer
  opened from a review card's photos or video holds neither. Tell them apart
  with `:has()` on those two classes. `rvsn-Image` doesn't help, because
  photos appear in all three.
- The All Reviews (Grid) rating dropdown is
  `rvsn-FilterRatingDropdownMenu__Dropdown`.

Each of them carries its own `rvsn-theme-mode`, so the Theme Block Colors
apply inside them, but color variables you redefined under a block do not.
Redefine them on the dialog as well, for example
`.rvsn-Dialog[rvsn-theme-mode="light"] { ... }`.

**The Powered by Reviewsion mark.** On the Free plan, All Reviews shows a
small "Powered by Reviewsion" link under the reviews (`rvsn-PoweredBy`). It
is part of the Free plan. Don't hide, cover, shrink or move it with CSS, and
don't restyle it to blend into the page. On Standard and Pro it isn't
rendered at all, so a merchant who wants it gone upgrades in the Reviewsion
app. Tell the merchant that instead of writing a rule for it.

**Loading states.** Classes ending in `Skeleton`, and `rvsn-Skeleton`, mark
the placeholder shown while reviews load. Leave them alone, or give them the
same size as the loaded element, so the page doesn't shift when reviews
arrive.

**Where the CSS goes.** Add it to the theme's own stylesheet, or to
**Theme settings**, **Custom CSS** in the theme editor. A section's Custom
CSS field works for blocks inside that section, but not for the dialogs,
the dropdown or Review Notifications.

## 4. Check the result

1. Confirm each selector matches on the live page, for example
   `document.querySelectorAll('.rvsn-theme-block__reviews-carousel .rvsn-CarouselCard').length`
   in the console. Zero means a wrong class or a block not on this page.
2. Check the block with Dark off and on, if the store uses both.
3. Check a phone width and a desktop width.
4. Reload with the network throttled and watch the loading state. Nothing
   should jump when the reviews replace the placeholder.
5. If you styled a dialog, open each kind (Media Carousel lightbox, a
   review card's photos, Read More) and check that a rule meant for one
   didn't change the others.
6. Check the block in the theme editor preview as well as the live store.

## Widget map

The block name is what the merchant sees in the theme editor. Each row gives
the wrapper class, the custom element, the widget's root classes and its main
named parts. Card layouts vary with the block's settings, so confirm a part
on the page before relying on it.

| Block | Wrapper class | Element | Root classes | Main parts |
|---|---|---|---|---|
| All Reviews | `rvsn-theme-block__all-reviews` | `rvsn-all-reviews` | `rvsn-AllReviewsWidgetContainer`, `rvsn-AllReviewsWidget`, `rvsn-AllReviews` | `rvsn-FilteredReviews__Sidebar`, `rvsn-ProductReviews__Main`, `rvsn-FilterRatingBars` (and `__Bar`, `__BarLabel`, `__BarPercentage`, `__Count`, `__Summary`), `rvsn-Reviews__AppendedContent`, `rvsn-FilteredReviewCard` (`__Header`, `__Content`, `__Footer`, `__VerifiedDateWrapper`), `rvsn-Reviews__Pagination`, `rvsn-Reviews__Previous`, `rvsn-Reviews__Next`, `rvsn-Reviews__LoadMore`, `rvsn-FilterReset`, `rvsn-Select`, `rvsn-Toggle`, `rvsn-PoweredBy` |
| All Reviews (Grid) | `rvsn-theme-block__all-reviews-grid` | `rvsn-all-reviews-grid` | `rvsn-AllReviewsGridWidgetContainer`, `rvsn-AllReviewsGridWidget`, `rvsn-ReviewsGrid` | `rvsn-Reviews__AppendedContent`, `rvsn-MasonryGrid`, `rvsn-Masonry__Column`, `rvsn-GridCard` (`__Header`, `__Content`, `__Footer`, `__VerifiedDateWrapper`, `__VerifiedBadgeWrapper`), `rvsn-FilterRatingDropdownMenu` (`__Trigger`, `__Chevron`, `__Item`, `__Reset`), `rvsn-Reviews__LoadMore`, `rvsn-Select`, `rvsn-Toggle` |
| Compact Reviews | `rvsn-theme-block__compact-reviews` | `rvsn-compact-reviews` | `rvsn-CompactReviewsWidgetContainer`, `rvsn-CompactReviewsWidget`, `rvsn-CompactReviews` | `rvsn-CompactCard` (`__Header`, `__VerifiedDateWrapper`), or `rvsn-CarouselCard` and its parts in the alternate layout |
| Featured Review | `rvsn-theme-block__featured-review` | `rvsn-featured-review` | `rvsn-FeaturedReviewWidgetContainer`, `rvsn-FeaturedReviewWidget`, `rvsn-FeaturedReview` | `rvsn-FeaturedReviewCard` (`__Header`, `__Content`, `__VerifiedDateWrapper`, `__VerifiedBadgeWrapper`), `rvsn-MediaThumbs` |
| Heading | `rvsn-theme-block__heading` | `rvsn-heading` | `rvsn-HeadingWidget` | `rvsn-HeadingCount` |
| Media Carousel | `rvsn-theme-block__media-carousel` | `rvsn-media-carousel` | `rvsn-MediaCarouselWidgetContainer`, `rvsn-MediaCarouselWidget` | `rvsn-Carousel__Slide`, `rvsn-Card` with `rvsn-MediaCard__Header`, `__Content`, `__Play`; the lightbox holds `rvsn-SplitCard` with `rvsn-CarouselCard__Header`, `__Content`, `__VerifiedDateWrapper` |
| Mini Reviews Carousel | `rvsn-theme-block__mini-carousel` | `rvsn-mini-carousel` | `rvsn-MiniCarouselWidgetContainer`, `rvsn-MiniCarouselWidget`, `rvsn-MiniCarousel` | `rvsn-MiniCarouselCard` (`__Content`, `__Content--Large`, `__Content--Small`, `__InnerContent`, `__InnerContentWrapper`) |
| Product Summary | `rvsn-theme-block__product-summary` | `rvsn-product-summary` | `rvsn-ProductSummaryWidgetContainer`, `rvsn-ProductSummaryWidget` | `rvsn-SummaryCard` (`__Content`, `__Subtext`) |
| Reviews Carousel | `rvsn-theme-block__reviews-carousel` | `rvsn-reviews-carousel` | `rvsn-ReviewsCarouselWidgetContainer`, `rvsn-ReviewsCarouselWidget`, `rvsn-ReviewsCarousel` | `rvsn-Carousel__Slide`, `rvsn-CarouselCard` (`__Header`, `__Content`, `__VerifiedDateWrapper`, `__VerifiedBadgeWrapper`), `rvsn-Date` |
| Showcase | `rvsn-theme-block__showcase` | `rvsn-showcase` | `rvsn-ShowcaseWidgetContainer`, `rvsn-ShowcaseWidget`, `rvsn-Showcase` | `rvsn-Showcase__Overlay`, `__Content`, `__Heading`, `__Subheading`, `__Count` |
| Star Rating Badge | `rvsn-theme-block__star-rating-badge` | `rvsn-star-rating-badge` | `rvsn-StarRatingBadgeWidgetContainer`, `rvsn-StarRatingBadgeWidget`, `rvsn-StarRatingBadge` | `rvsn-Stars` |
| Testimonials Carousel | `rvsn-theme-block__testimonials-carousel` | `rvsn-testimonials-carousel` | `rvsn-TestimonialsCarouselWidgetContainer`, `rvsn-TestimonialsCarouselWidget` | `rvsn-Carousel__Slide`, `rvsn-TestimonialCard` (`__Quote`, `__Footer`) |

**Review Notifications** is an app embed, not a section block. It renders at
the end of `<body>` as the custom element `rvsn-review-notification`, with
`rvsn-ReviewNotificationWidgetContainer`, `rvsn-ReviewNotificationWidget`,
`rvsn-NotificationCard__Container`, `__CardWrapper`, `__Close` and
`rvsn-ReviewNotificationCard` (`__Header`, `__Content`). Scope its rules with
the custom element tag.

### Parts shared by many widgets

| Part | Classes |
|---|---|
| Card shell | `rvsn-Card`, `rvsn-Card--Border`, `rvsn-Card--Shadow`, `rvsn-Card__Tail` (the speech-bubble tail), `rvsn-Card__Tail--Border`, `rvsn-Card__Tail--Shadow` |
| Carousel | `rvsn-Carousel`, `rvsn-Carousel__Carousel`, `rvsn-Carousel__Slide`, `rvsn-Carousel__Navigation`, `rvsn-Carousel__Previous`, `rvsn-Carousel__Next`, `rvsn-PaginationButton` |
| Stars | `rvsn-Stars`, `rvsn-StarIcon`, `rvsn-StarIcon__Active` (filled), `rvsn-StarIcon__Base` (empty) |
| Reviewer | `rvsn-Avatar`, `rvsn-Avatar__Letter`, `rvsn-Avatar--Background`, `rvsn-Name`, `rvsn-Date`, `rvsn-VerifiedBadge` |
| Review text | `rvsn-Quote`, `rvsn-Quote__Text`, `rvsn-Quote__FullQuote`, `rvsn-Quote__IconWrapper`; in the Read More dialog, `rvsn-ReadMoreCard__Content` |
| Source | `rvsn-Platform`, `rvsn-Logo`, `rvsn-Logo--Etsy`, `rvsn-Logo--Ebay`, `rvsn-Logo--Shopify`, `rvsn-Logo--Google` |
| Product | `rvsn-ProductLink` |
| Photos and video | `rvsn-Image`, `rvsn-Image__Wrapper`, `rvsn-Image__Overlay`, `rvsn-ImageGrid`, `rvsn-MoreMedia`, `rvsn-Video`, `rvsn-Video__Wrapper` |
| Dialog | `rvsn-Dialog`, `rvsn-Dialog__Overlay`, `rvsn-Dialog__Content`, `rvsn-Dialog__Close`, `rvsn-Dialog__Trigger` |
| Empty and loading | `rvsn-EmptyState`, `rvsn-EmptyState__Message`, `rvsn-Loader`, `rvsn-LoadMore`, `rvsn-Skeleton` |

## Examples

Rounder cards with a softer border, in every Reviews Carousel:

```css
.rvsn-theme-block__reviews-carousel .rvsn-Card {
  border-radius: 20px;
}
.rvsn-theme-block__reviews-carousel .rvsn-Card--Border {
  border-color: rgb(0 0 0 / 0.08);
}
```

The theme's heading font for reviewer names, in every block and in every
dialog:

```css
.rvsn-theme-block .rvsn-Name,
.rvsn-Dialog .rvsn-Name {
  font-family: var(--font-heading-family, inherit);
}
```

`--font-heading-family` is the Dawn theme's variable. Read the store's theme
for its own.

Larger carousel arrows in Reviews Carousel:

```css
.rvsn-theme-block__reviews-carousel .rvsn-Carousel__Previous,
.rvsn-theme-block__reviews-carousel .rvsn-Carousel__Next {
  width: 44px;
  height: 44px;
}
```

A darker backdrop behind photos and videos, but not behind Read More:

```css
.rvsn-Dialog__Overlay:not(:has(.rvsn-ReadMoreCard__Content)) {
  background-color: rgb(0 0 0 / 0.85);
}
```
