Corners, shadow and colors

A block theme sets Purplish's corner radius, shadow, photo wash and ruled lines once in theme.json, so the looks match the theme.

For Purplish 1.3.3. Works on block themes.

Docs menu

Where to find it

There's nothing to turn on in the editor. Add settings.custom.purplish to your theme's theme.json, with any of radius, shadow, wash and rule.

For example, "custom": { "purplish": { "radius": "2px", "shadow": "none", "wash": "#f3ead7", "rule": "#d9d4cc" } } under settings gives near-square corners, no shadow, a warm wash behind the photos and soft lines between ruled cards.

The settings

SettingWhat it does
radiusWordPress prints it as --wp--custom--purplish--radius. It goes on every rounded corner of the Purplish looks that read it, so 0 gives square corners.
shadowWordPress prints it as --wp--custom--purplish--shadow. It replaces the soft shadow under the picked shipping or payment card, the side panel's summary, the raised checkout card and the filter bar's lists. none takes it away.
wash New in 1.3.3WordPress prints it as --wp--custom--purplish--wash. It's the color behind gallery and card photos with Photo wash on, in place of the tint of the effect color, so it stays the same for every variation.
rule New in 1.3.3WordPress prints it as --wp--custom--purplish--rule. It's the color of the lines between ruled cards.

What reads them:

ChoiceWhat it does
Checkout, Mini-Cart drawer and cart pageThe checkout looks, Soft rows and the other cart looks.
Product cardsThe Ring hover look, and Square ring in its Ring settings.
Filter barThe lists that open from Layout set to Bar.
EscalatorThe tile corners, when the block has no Corner radius of its own.
Photo wash New in 1.3.3The wash, on product cards and the Product Gallery.
Ruled cards New in 1.3.3The rule, for the lines between ruled cards.

Good to know

  • A theme that sets none of them keeps Purplish's own corners, shadow and colors: 8% of the effect color on white for the wash, and 14% of the text color for the lines.
  • Checkboxes keep their small corners when the radius is bigger.
  • The picked shipping or payment card keeps its ring with any shadow.
  • The editor shows the theme's wash and rule too, since WordPress prints the theme's custom values there.

Still stuck? Ask in the support forum.