Design contract
Theme: Handoff. Direction: "Spec sheet". Read this before any visual change. If a request conflicts with this file, follow the request and update this file in the same change.
1. Intent
The store looks like the data sheet of a good instrument. It earns trust by showing ordered facts, not slogans. Built for specialist brands with a small catalog (1 to 50 products) that sell technical products and accessories to shoppers who compare and ask questions.
Priorities, in this order, for every decision: small screens first, then content that AI assistants can read and quote, then search engines, then large screens. A large screen is a wider phone, never the other way round. Content is the same on every screen. Only the layout changes.
What the design refuses: decorative gradients, glows, glass effects, drop shadows, rounded cards, entrance animations, badges that claim urgency or scarcity, star ratings that are not real.
2. Tokens
Colors come from theme settings and are exposed as custom properties in snippets/css-variables.liquid. Static tokens are in assets/base.css. Never write a raw color, font name, or pixel size in a block when a token exists.
Color
| Token | Default | Role |
|---|---|---|
--color-background |
#F3F1EA |
Page ("paper") |
--color-text |
#14161A |
Text, rules, borders ("ink") |
--color-muted-text |
#565B63 |
Labels, captions, breadcrumbs |
--color-media-background |
#E7E4DA |
Behind product images |
--color-surface |
#FFFFFF |
Cards, fields, option buttons |
--color-surface-text |
#14161A |
Text on surface |
--color-accent |
#B83A09 |
Primary button, sale price, section numbers |
--color-accent-text |
#FFFFFF |
Text on accent |
--color-inverse-background |
#14161A |
Top bar, quick answer band, footer |
--color-inverse-text |
#F3F1EA |
Text on inverse |
--color-inverse-accent |
#F27A45 |
Small markers on inverse |
--color-positive |
#1E6A3B |
"Fits", in stock |
--color-negative |
#A12A22 |
"Does not fit", errors, sold out |
--color-hairline |
text at 16% | Thin separators |
Contrast of the defaults (WCAG 2.2): text on background 16.0:1, accent text on accent 5.8:1, accent on background 5.1:1, muted text on background 6.1:1, positive 5.8:1, negative 6.5:1. Any new pair must reach 4.5:1 for text and 3:1 for large text, icons, and borders.
One accent only. Positive and negative colors are reserved for compatibility and status. They are never decoration.
Two guarantees come from the code, not from the person who picks the colors. Every text token is checked against its background and replaced by black or white under 4.5:1 (snippets/readable-color.liquid). With the setting "Use brand colors", the accent pair comes from the primary brand color of the Shopify admin and the inverse pair from the secondary one; the paper background and the ink text stay.
Type
| Token | Default font | Use |
|---|---|---|
--font-heading |
IBM Plex Sans 600 | Headings, product titles |
--font-body |
IBM Plex Sans 400 | Body text |
--font-data |
IBM Plex Mono 400 | Prices, measurements, labels, counters |
Scale: --text-xs 12px, --text-sm 14px, --text-md 16px minimum, then --text-lg, --text-xl, --text-2xl, --text-3xl, fluid with clamp(). Body text and form fields never go under 16px. Headings use a tight line height (1.12) and a slight negative tracking. Labels use the data font, uppercase, 12px, tracking 0.06em (class .label).
Numbers that a shopper compares (price, size, weight, model codes) use the data font.
Space, shape, motion
- Spacing: 4px scale,
--space-1to--space-16. Page gutter--gutter: 16px, 32px from 700px, 48px from 1000px. - Shape: square corners. One radius,
--radius-control2px, on buttons only. Rules are 1px:--border-rule(full ink) between sections,--border-hairlinebetween rows. - No shadows.
- Motion:
--duration-fast120ms,--duration-base220ms,transformandopacityonly, off underprefers-reduced-motion. Hover effects only inside@media (hover: hover). Never animate the largest image of the first screen.
3. Layout
- Breakpoints,
min-widthonly: 700px (tablet), 1000px (desktop). Test at 360, 390, 768, and 1440. - Content width:
--page-width(setting, 1320px by default) with.page-width. - Sections are separated by a full rule and numbered 01, 02, 03 with a CSS counter in the data font and the accent color.
- Desktop section layout: label column on the left (280px), content on the right. On small screens the label sits above the content.
- Touch targets: 48 by 48px (
--tap-target), never under 24 by 24px.
4. Signature components
- Quick answer (block
quick-answer). One question, one short answer, staged. Full-width band on the inverse background. The question is anh2in the data font, uppercase, small, preceded by a square "Q" marker in the inverse accent. The answer is one or two sentences in a large size (22px on small screens, 30px on desktop), in the body weight: a third weight would cost one more font file on the first screen. It is the first thing after the buy area. It states what the product is, who it is for, and what is included. - Comparison table (collection). On desktop the collection is a table: product, key specs, colors, price. On small screens it is a stack of cards, each with three key specs, plus a "Compare" control that opens the same table in a bottom drawer (
<dialog>, first column pinned). Without JavaScript the control is a link to the table view. - At a glance (block
at-a-glance). Ruled rows, label in the data font on the left, value on the right. - Compatibility table (block
compatibility-table). Three states: fits (positive, check), does not fit (negative, cross), ask us (muted, question mark). Each state has an icon and a word, never color alone. - Figure counter. The gallery counter reads "FIG. 1 / 4" in the data font.
5. Product page rules
- First screen at 390px wide: title, price, and the Add to cart button are visible without scrolling. The gallery takes the height that is left:
clamp(200px, 100svh - header - buy area, 55svh). The buy area height is estimated in Liquid from the title length and the number of options. No JavaScript is involved. - The breadcrumb sits above the title. The full title is always shown, never truncated. Titles longer than 60 characters use a smaller size.
- Options are buttons in a single row per option, never a dropdown. Color options show swatches.
- The sticky buy bar appears only after the main button has left the screen at the top. It respects
env(safe-area-inset-bottom)and never covers a focused element. - Gallery: thumbnails always visible, previous and next buttons, rendered once for all screen sizes. Images keep their ratio (
object-fit: containby default) and, when image blending is on, usemix-blend-mode: multiplyover--color-media-background, so white studio backgrounds disappear without cutting out the image. Controls over the image have their own background so they stay readable on dark photos. - Content sections are stacked (open content or
<details>). No horizontal tabs. - Space is reserved for review app blocks. No rating is shown unless a reviews app has written one.
6. Voice
Short sentences. Facts with units. Sentence case everywhere. No exclamation marks, no superlatives, no invented claims. Buttons start with a verb.
7. Planned variation
A second preset may later carry the warmth of the rejected "Atelier" direction: cream background, deep green accent, serif headings, soft panels, and question-style headings. It would reuse every block and change only tokens and a few component styles. It is not built yet.