Developer docs
Data and design patterns
In short
The product and bundle model a theme reads, category design patterns, dose-form styling and brand tokens.
Pages read data through tokens ({{product.name}}) and lists (<template data-df-each="products">...{{item.name}}...</template>). The full list is in the theme spec; this page explains how to design with it.
Category design patterns
Ship patterns/trt/product.html and every product in a testosterone category is served that page; everything else gets templates/product.html. The same works for collection pages: patterns/skin/collection.html. The categories are weight-loss, trt, hair-loss, skin, sexual-health, menopause, longevity and supplements. A merchant's own categories are mapped onto them by name ("Men's health" and "TRT" are trt, "GLP-1" is weight-loss).
Dose forms
Every product and list item carries:
| Token | Values |
|---|---|
dosageForm | tablet, capsule, odt, troche, injection_vial, pen, prefilled_syringe, cream, gel, foam, ointment, solution, spray, drops, patch, kit, powder, gummy, other |
formFamily | oral, injectable, topical, nasal, kit, bundle, other |
route / frequency | how and how often, with routeLabel and frequencyLabel in the customer's language |
rxStatus | rx, otc |
designCategory | the category pattern it belongs to |
They are lowercase identifiers, so they go straight into class names:
<article class="card card--{{item.formFamily}}">
<span class="tag">{{item.dosageFormLabel}}</span>
...
</article>
.card--injectable { border-top: 4px solid var(--st-color-primary, #1f6f5c); }
.card--topical { border-top: 4px solid var(--st-color-primary-soft, #e3f0ec); }
Bundles
templates/bundle.html is the page a bundle gets. It reads the same product.* tokens and the bundleItems list: the products in the bundle, each with its picture and dose form.
Brand colors
The store's brand is on :root as --st-color-primary, --st-color-accent, --st-color-background, --st-color-ink, fonts, corner radii and motion. Use them for every brand color with your default as the fallback. A theme whose stylesheet never reads the primary or accent color is refused, because it would look the same on every store.
Safety and compliance
Place {{compliance.productSafety}} on every product page, and the statements each page must carry ({{compliance.prescriberNotice}}, {{compliance.disclaimer}}). Style the space around them. Never hide them, shrink them, move them out of the flow, or touch them from script.