Skip to main content
Every look in Loveful’s storefront stylesheet (loveful.css, served by the theme app extension) reads a --loveful-* custom property, with Loveful’s own default as the var() fallback. Nothing is set on :root or on Loveful’s elements, so a theme or a developer can set any of these and win:
theme.css

Precedence

Order of precedence, strongest first:
  1. A choice made in Loveful’s storefront design window (written by the app embed as the same variable, after the theme’s stylesheets).
  2. The variable set in the theme’s own CSS, or on a wrapper element.
  3. The matched theme’s preset (the --loveful-theme-* variables, from the app embed).
  4. Loveful’s default (below).
The --loveful-theme-* variables are written by the app embed whenever a theme is matched, after the theme’s stylesheets, so set the specific variable instead (--loveful-btn-radius rather than --loveful-theme-radius), or set it on a wrapper element.
Defaults that read another variable fall back through it first. Where a variable has two defaults (“a or b”), the stylesheet uses a different fallback in different places, for example on the idle and saved states of a button.

All buttons

Every Loveful button falls back to these before its own default.

Theme matching

Set by the app embed from the matched theme’s preset. To change one, set the specific variable it feeds (see Precedence).

Save button

Product card heart (snippet)

Wishlist cards

Wishlist page

Add to cart

Remove button

Share buttons

Dialogs

Change options

Form fields

Empty wishlist

Saved count

Shared