Jagrit VatsShopify theme developer

Case study · Skincare refills · fictional brand

Oftly: a refill store that tells you when each bottle runs out

Skincare subscribers complain about the schedule more than the formula: refills arrive early, stockpile, or renew by surprise. Oftly is a fictional brand built to answer that in the theme, with metafields, native selling plans and a few sections a merchant can edit without a developer.

The problem

Review sites for skincare subscriptions repeat the same complaints: "they send shipments way too early", "my subscription accidentally renewed". Competitors offer fixed 4, 6 or 8 week cadences and leave the maths to the customer.

The brief for this store set one job: show, on every bottle, how many days it lasts at a stated dose, and let a shopper build a three-product routine whose refills follow those dates. Everything had to be theme code driven by product data, so a merchant can add a product by filling in metafields rather than editing Liquid.

The design brief, competitor screenshots and the critic's pick of the "Dose Card" direction are in the project repository.

Custom sections, and what the merchant can edit

Each settings list on the right is generated from that section's {% schema %}, so it is exactly what a merchant sees in Shopify's theme editor.

Skin quiz

Shoppers who do not know which active to start with get three questions, one at a time, and a routine at the end. The result hands straight to the routine builder.

Questions and answers are nested theme blocks. Each answer maps to concerns or products through product settings, so the quiz needs no app and makes no network calls: the product data is rendered into the page.

The Skin quiz section in the Oftly store
Rendered from sections/skin-quiz.liquid in the preview harness. Try skin quiz live
Skin quiz21 settings, 1 block types
  1. Small line above the headingtext
  2. Headingtext
  3. Textrichtext
  4. Heading levelselect
  5. Imageimage_picker
  6. Image description (alt text)text
  7. Start panel texttextarea
  8. Recommendations
  9. Products the quiz can recommendproduct_list
  10. Routine steps, in ordertext
  11. Products in the resultrange
  12. Page with the routine builderpage
  13. Result
  14. Result headingtext
  15. Note under the resulttext
  16. Button labels
  17. Starttext
  18. Nexttext
  19. Backtext
  20. Send to the routine buildertext
  21. Start overtext
  22. Progress texttext
  23. Message when no answer is chosentext
  24. Word after the day counttext
  25. Block: Question2 settings

The merchant adds, reorders and rewords questions as blocks, and points each answer at products.

Routine builder

The store’s main conversion path: pick a cleanser, a treatment and a moisturiser, see the saving, and start deliveries. It replaces a paid bundle app for the most common skincare request in the job posts sampled.

All three lines go to the cart in one /cart/add.js call with a shared _routine_id property and, when subscribing, a native selling plan. The fill-line timeline is computed from metafields for size, daily use and days per bottle. The 20% bundle price comes from a Shopify automatic discount, documented in the theme’s SETUP.md.

The Routine builder section in the Oftly store
Rendered from sections/routine-builder.liquid in the preview harness. Try routine builder live
Routine builder38 settings, 1 block types
  1. Small line above the headingtext
  2. Headingtext
  3. Textrichtext
  4. Heading levelselect
  5. Anchor for linkstext
  6. Offer
  7. Products per routinerange
  8. Routine ticked on arrivalproduct_list
  9. Routine discount shownrange
  10. Refills ship this many days before a bottle runs outrange
  11. Fill line coversselect
  12. Note under the buttontextarea
  13. Fill line
  14. Headingtext
  15. Texttext
  16. Labels
  17. Step numbertext
  18. Picked countertext
  19. Counter when completetext
  20. Purchase choice headingtext
  21. One-time optiontext
  22. One-time option detailtext
  23. Refill optiontext
  24. Refill option detailtext
  25. Set pricetext
  26. Refill savingtext
  27. Routine discounttext
  28. Totaltext
  29. Add buttontext
  30. Add button in the mobile bartext
  31. Add button after addingtext
  32. Word after a day counttext
  33. Refill ships columntext
  34. Reorder column (one-time)text
  35. Intervaltext
  36. Legend: refilltext
  37. Legend: run-outtext
  38. Table: product columntext
  39. Table: lasts columntext
  40. Table: runs-out columntext
  41. Table: next columntext
  42. Block: Step5 settings

Eligible products per step are blocks with a product list, so seasonal swaps take a minute.

Ingredient table from metafields

Shoppers in this niche read the INCI list before the price. The table shows key actives with percentages, what each does, pH and the full INCI list.

It reads product metafields and metaobjects and renders nothing when a field is blank, so a product without data never shows an empty table.

The Ingredient table from metafields section in the Oftly store
Rendered from sections/ingredient-table.liquid in the preview harness. Try ingredient table from metafields live
Ingredient table15 settings
  1. Productproduct
  2. Small line above the headingtext
  3. Headingtext
  4. Textrichtext
  5. Show the full INCI listcheckbox
  6. Show pHcheckbox
  7. Footnotetext
  8. Labels
  9. Actives table titletext
  10. Ingredient columntext
  11. Amount columntext
  12. Role columntext
  13. When no % is giventext
  14. Sizetext
  15. Cautiontext
  16. INCI headingtext

Labels and which columns show are settings; the data itself lives on each product in the admin.

Before/after slider

A common request in skincare briefs. Here it compares textures, and it is labelled as an illustration because the brand is fictional and makes no efficacy claims.

A native range input drives the clip, so it works with arrow keys, touch and screen readers without a library.

The Before/after slider section in the Oftly store
Rendered from sections/before-after.liquid in the preview harness. Try before/after slider live
Before / after13 settings
  1. Small line above the headingtext
  2. Headingtext
  3. Textrichtext
  4. Images
  5. Left imageimage_picker
  6. Left image description (alt text)text
  7. Left labeltext
  8. Right imageimage_picker
  9. Right image description (alt text)text
  10. Right labeltext
  11. Divider starts atrange
  12. Labelling
  13. Sample labeltext
  14. Captiontext
  15. Slider name for screen readerstext

Both images, captions, the starting position and the label are settings.

Shop by concern

Shoppers name the problem (redness, texture, dullness) before they name a product.

Each tile is a block with a collection setting; the count and image come from the collection.

The Shop by concern section in the Oftly store
Rendered from sections/concern-tiles.liquid in the preview harness. Try shop by concern live
Shop by concern6 settings, 1 block types
  1. Small line above the headingtext
  2. Headingtext
  3. Textrichtext
  4. Tiles per row on desktopselect
  5. Show product countcheckbox
  6. Word after the counttext
  7. Block: Concern4 settings

Tiles are blocks: add, remove, reorder, and point each at a collection.

Free-shipping progress bar

Shows how far the cart is from free shipping, using the same gauge drawing as the fill line so it reads as part of the brand rather than an add-on.

Updates from the cart JSON after every change and announces the new amount politely to screen readers.

The Free-shipping progress bar section in the Oftly store
Rendered from sections/shipping-progress.liquid in the preview harness. Try free-shipping progress bar live
Free-shipping progress4 settings
  1. Headingtext
  2. Free shipping from (store currency)number
  3. Message below the thresholdtext
  4. Message at the thresholdtext

The threshold and messages are settings.

Before and after: against Shopify's default theme

The baseline is Horizon, Shopify’s current flagship theme, as shown on its public demo store. Horizon is a strong general theme. Out of the box, a skincare merchant gets a hero, a product grid and a subscription selector, with no way to show bottle lifespan, no routine bundling and no structured ingredient data. Those are what the custom sections add.

Horizon demo store home page: a centred headline over a full-width photo, then a product grid.
Before: Shopify’s Horizon demo store, first screen at 1440 px (captured 2026-11-22).
Oftly home page: a large day count beside a bottle gauge, with the routine builder call to action.
After: the Oftly theme, first screen at 1440 px, rendered by the preview harness.

Scores

0Theme Check errors (0 warnings, 65 files)
100Lighthouse mobile performance, average
97Lighthouse accessibility, average
0Theme Check errors after dropping the portable sections into Horizon
–KB of custom JavaScript in the whole theme, unminified
Lighthouse mobile results per page
PagePerf.A11yBest pr.SEOLCPCLS
/oftly10097961001.2 s0
/oftly/products/niacinamide-10-serum9997961001.9 s0
/oftly/collections/all10096961001.9 s0
/oftly/pages/build-a-routine10097961001.1 s0
/oftly/pages/skin-quiz10097961000.9 s0
/oftly/cart10097961000.9 s0

Lighthouse 13 mobile, run against the static preview at localhost:4401 on 2026-11-22. A real Shopify store adds its own scripts (analytics, Shop Pay, apps), so expect lower numbers on a live store. The theme's share of the page weight is what these scores reflect.

What the preview leaves out

  • The 20% routine discount appears in the builder and the cart note, but the preview does not apply it: on a live store a Shopify automatic discount does.

  • Selling plans are mocked in the product data. On a real store the Shopify Subscriptions app (free) creates them, and the same Liquid reads them.

  • Checkout, customer accounts, search and the Section Rendering API are not part of the preview.

  • Oftly, its formulas and the SPF value are fictional and untested. Sample reviews are marked as samples.