MerchantDrafts · Docs

Generated Content Visual Pattern

How generated content is visually surfaced in the UI.

Purpose

Document the visual pattern used in the Generated content tab of the Products Workspace, so the effect can be reused consistently in other MerchantDrafts surfaces.

Goal

Help operators identify a product at a glance without needing to read the full title first, while keeping generated content readable.

Pattern

The card uses three visual layers, implemented as real child elements instead of pseudo-elements so placement is easier to inspect and tune:

  1. Image layer
  1. Fade layer
  1. Content layer

Design intent

Recommended defaults

When the effect works well

When the effect works poorly

Future reuse

Potential reuse areas:

Brand touch

The same surface could later include the store brand identity for personalization.

Preferred WordPress sources:

  1. get_custom_logo()
  2. get_theme_mod( 'custom_logo' )
  3. fallback: get_site_icon_url()

Use this carefully:

Implementation note

Current reuse points:

Debug principle

If the decorative effect becomes hard to tune visually: