Repository navigation
Horizon update to main - #1
stephanie-shopify wants to merge 4 commits into
Conversation
Upstream-SHA: c27f1fdbfffc22ee843a6f32a40b379fce096ff7
|
Upstream-SHA: bd111cc213dbdcb5fa76f6b5b8cd207b04ac9210
|
Upstream-SHA: 031b1c73990845d0eb3d88ef82954df03a09c69f
|
Upstream-SHA: 9856422ff5c3b3762afbbd1df1feaa7e96c6621a
|
Section Shopify#1 of 16 — actual visual styling that matches the Figma hero. Layout: • 2-column grid (text 1.05fr / media 1fr) from 990px, stacks below • Image-left variant flips columns via .fortified-hero--image-left • min-height: clamp(420px, 50vw, 620px) so hero has real presence Typography: • Eyebrow: schema fg at 55% opacity (no more tan) • H1: Brother 1816 900, clamp(40, 6vw, 72), line-height 0.95 • Body: clamp(15, 1.1vw, 17), max 46ch, 85% opacity CTAs: • Pill-shaped 10px radius, 14×28 padding, 48px min-height • Primary uses schema --color-primary-button-* • Secondary uses schema --color-secondary-button-* Media column: • Image rendered at max-width 560px with -3° tilt + drop-shadow • Hover straightens the tilt • Placeholder when no image: radial-gradient + rotated pill that suggests packaging-bottle silhouette, tinted by --fortified-accent Decorative elements: • Two soft accent circles bleed past edges (top-right + bottom-left) at 4% opacity, sized 320px / 240px, hint at the Figma's branded background art without competing for attention Responsive: • Below 750px: image scales to 360px with no tilt, CTAs stack full-width All colors source from the assigned Shopify color scheme. Accent shading uses --fortified-accent (the per-section Highlight color picker; defaults to teal).
Adds two new gallery patterns alongside the existing thumbnail grid, controllable per-section via the new gallery_pagination_style setting: - 'thumbnails' (default, unchanged): 4-column preview grid below the main. Right fit for font / graphics / bundle templates where each media item sells a different angle. - 'dots': minimal horizontal row of mono-style pills below the main. Active pill widens + fills with accent. Right fit for plugin templates where a single autoplaying demo video does the selling and a thumb grid would just compete for attention. Always shown regardless of style: - 'X / N' counter pill in the bottom-right corner of the main media. Tells visitors there's more to swipe through (the Shopify#1 failure mode of pure-counter editorial galleries — people stop after media 1 because they didn't realize there was more). Mono caps on dark translucent background, classic editorial detail (Aimé Leon Dore / Telfar / Apple convention). Implementation notes: - Both modes share the same .ds-pdp__gallery-thumb buttons with the same data attrs, so activate / step / swipe JS is unchanged. Only visuals differ via .ds-pdp__gallery-thumbs--{style} modifier. - In 'dots' mode the per-thumb preview image + play-icon overlay are skipped at the Liquid level (pure CSS pills, nothing to render). - Counter element references stable data-* attributes so the JS can update '1' to current index on every activate(). - Thumbnails mode caps at 8 items (existing); dots mode caps at 12 (more dots fit comfortably). Counter total reflects the rendered count, not raw product.media.size. - Mobile dot hit area expands via ::before to comfortable tap size while the visible dot stays compact. To switch the Pixel Perfect PDP to dots: theme editor → Product main section → Gallery behavior → Pagination style → 'Dot pagination (editorial)'. Other product templates stay on thumbnails by default. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
See all upstream commits: https://github.com/Shopify/horizon-private/compare/031b1c73990845d0eb3d88ef82954df03a09c69f...9856422ff5c3b3762afbbd1df1feaa7e96c6621a