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:- A choice made in Loveful’s storefront design window (written by the app embed as the same variable, after the theme’s stylesheets).
- The variable set in the theme’s own CSS, or on a wrapper element.
- The matched theme’s preset (the
--loveful-theme-*variables, from the app embed). - 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.a or b”), the stylesheet uses a different fallback in different places, for example on the idle and saved states of a button.