AI features & tokens · 2027 proposal

Masafi 2027: reorders that think ahead, on tokens.

My proposal for masafi.com in 2027: three AI features — a reorder assistant, smart subscription suggestions and lifecycle emails — designed on the token system I rebuilt from the shipped store. A self-initiated concept, not live; no results are claimed.

Role
Sole designer · system owner
Team
Self-initiated · solo
Product
masafi.com · water & hygiene
Focus
AI features · tokens · motion

Best viewed on desktop

This case study is laid out for a large screen. Open it on a laptop or desktop to see every flow and screen.

View more work

Where v1 left off

A store that shipped. A system that couldn’t scale.

What my audit of the v1 file found

  • • 46% of colour uses were hard-coded (1,989 of 4,322), across 155 unique colours and zero variables.
  • • About 36 text style names in 5 naming families, all at 100% line height.
  • • Secondary text (#767983) failed WCAG AA at 4.35:1, and was used 141 times.
  • • Add to cart was white on light blue: 2.45:1.

For the team

New screens meant picking colours and type by eye. Nothing told a developer which blue was the brand blue: #095093 had five different style names.

For customers

The simplest rule for a subscription under the 25 minimum was to quietly switch it to a one-time order. And Masafi had no way to remind people to reorder, or to email them at all.

The 2027 proposal

Three AI features. One token system under them.

Masafi already ships personalised recommendations, a one-tap Buy again and search autocomplete. My proposal for 2027 is the next step: features that act on a customer’s own order history, always explainable, always their choice, and built from the same tokens and components as the store.

  1. 01

    AI reorder assistant

    Spots when a household is running low from its order rhythm, then offers a one-tap reorder on the web or WhatsApp.

    Builds on: Buy again · the WhatsApp API (owned by another team)Concept · 2027 proposal
  2. 02

    Smart subscription suggestions

    Suggests a delivery rhythm and quantity from past orders, and always shows why.

    Builds on: subscriptions · order historyConcept · 2027 proposal
  3. 03

    Lifecycle emails

    Seven emails for buying, keeping and seasonal moments, including an AI reorder reminder.

    Builds on: a new email kit (Masafi has no email tool today)Concept · 2027 proposal
Built on tokens

127 variables in 3 collections, AAA text contrast, one component library. Every AI feature below is made from the same parts as the store, so it looks native on day one.

2027 proposal · AI reorder assistant

A reminder before the water runs out.

Masafi already shows personalised recommendations and a one-tap Buy again. This concept goes a step further: it estimates when a customer will run low from their order history and nudges them two days before, on the web or on WhatsApp. People can always see why, and turn it off.

Masafi home page with a reorder nudge for the usual basket
On the home page, a nudge to reorder the usual basket in one tap.
Explanation panel showing the order timeline and how sure the estimate is
“Why am I seeing this?” shows the order timeline and how sure the estimate is.
WhatsApp reorder reminder conversation
On WhatsApp, through Masafi’s existing WhatsApp integration.

2027 proposal · smart subscription suggestions

A rhythm suggested, never assumed.

Customers choose how often water arrives. I designed a suggestion based on their own past orders, with a “Why suggested” line so they can see the reason and change it. Designed, not built.

Deliver every1 week2 weeksSuggested4 weeks

Why suggested: your last 4 orders were 12–15 days apart, so every 2 weeks should arrive just before you run out. Concept — based on order history only.

Account › Subscriptions: the suggested rhythm comes with its reason, taken from the customer’s own orders.
Deliver every1 week2 weeksSuggested4 weeks

Why suggested: your last 4 orders were 12–15 days apart, so every 2 weeks should arrive just before you run out. Concept — based on order history only.

Mobile: the same card, same tokens.
  • Shows the reason

    “Why suggested” points to the customer’s own order history.

  • Suggests, never switches

    Changing the plan always takes the customer’s tap.

  • Same parts as the store

    Built from the v2 tokens and components, so it needs no new UI.

2027 proposal · lifecycle emails

The emails Masafi doesn’t send yet.

Masafi has no email tool today. I mapped the customer lifecycle (buying, keeping, seasonal) and designed seven emails on a 600px email kit built from the same tokens, each with a subject line, preheader and an A/B test idea.

Lifecycle email flow map with triggers and timing
Flow map: what triggers each email, when it sends and what it asks for.
Original back-to-school email with text over photos
Before: text over photos, four calls to action and steppers that can’t work in an inbox.
Redesigned back-to-school email with live text and one call to action
After: live text, one main call to action, Dirham prices and alt text.

The system behind it

Tokens first. Every screen follows.

I rebuilt the foundations as three variable collections (primitives, semantic colours, spacing and radius) and moved every component onto them. Each colour now has one name, and about 36 text style names became 13 styles.

  • 127Variables in 3 collections
  • 13Text styles (from ~36 names)
  • 130Prototype screens
  • 0Broken links (of 1,744)

Masafi Design System v2

Variables · Type · Components · Docs

Foundations v2: the primitive colour scaleAdd to cart buttons in every variant and state
Delivery option cards and minimum-order progress bars on tokens

How the tokens are named

Names that say what a colour is for.

Three layers, each with its own naming pattern. Components never use raw colours: they use roles, and roles point to primitives. Change one role and every screen that uses it follows.

Three layers
Primitiveblue/600

The raw value: hue and step.

Semanticbg/brand

The role: what the colour is for.

ComponentButton / Primary

Uses the role, never the raw value.

Naming pattern
  • Primitives · hue/stepblue/600 · gray/700 · teal/400
    57
  • Semantic colour · role/purpose-statetext/brand-strong · bg/brand-hover · border/focus
    51
  • Spacing, radius & size · type/sizespace/md · radius/full · size/touch-min
    19
Why it helps
  • • One change, every screen: bg/brand updates every primary button at once.
  • • New features look native: the AI nudge and emails reuse the same roles.
  • • Contrast checked once per token, not once per screen.
v1 fill #6BABE3 (2.45:1, fails) → bg/brand (AAA)
My process
  1. 01Audit

    46% of colours hard-coded, 155 unique colours, 0 variables.

  2. 02Primitives

    57 raw values on a hue/step scale.

  3. 03Roles

    51 semantic colours named by purpose and state.

  4. 04Components

    Every v2 component moved onto roles.

  5. 05Check

    Contrast measured per token, AAA text where possible.

  6. 06Govern

    Propose → review → build → document → release → deprecate.

Accessibility & governance

Checked, not just claimed.

I measured contrast for every text token instead of judging by eye. Every pair meets AAA (7:1) except one at 6.94:1, which is AA and documented with its fix. A governance page sets how the system grows: propose, review, build, document, release, deprecate.

Accessibility page with a contrast table for every text pairing
Accessibility page: contrast calculated from the live tokens for every text pairing.
Governance page with token layers and naming rules
Governance: token layers, naming, and when something becomes a component.
Pill buttons with focus rings and contrast values
The lightest text grey is now 8.2:1 (was 4.35:1); buttons are 48px pills with a focus ring that follows the shape.

Micro-interactions

Small moments, made of the same tokens.

Each interaction uses the system’s timing and easing: quick enough to feel instant, clear enough to show what changed.

  • Button · pressPress · 150 ms · ease-out
  • Quantity stepper · addSwap · 250 ms · ease-out
  • Toggle · switch onSwitch · 250 ms · ease-out
  • Offer card · applyApply · 250 ms · ease-out
  • Minimum order · metMet · 250 ms · ease-out
  • Reorder nudge · arriveArrive · 700 ms · ease-out

Key UX decision · minimum order

Don’t change an order behind someone’s back.

Cart showing two minimum-order progress bars and one-tap packs from past orders
  1. 01

    Two progress bars show how far the whole order and the subscription are from the 25 minimum, because only subscription items repeat.

  2. 02

    One-tap packs from past orders close the gap with things the customer already buys, not random upsells.

  3. 03

    Ask, don’t convert. The customer chooses Add to subscription or Buy once instead, with Undo.

  4. 04

    Checkout asks again if the choice is still open, so nothing changes without being seen.

Mini cart after switching to a one-time order, with Undo
Switched by choice, with Undo right there in the mini cart.
Mobile cart with both minimum bars above the items
On mobile, both minimum bars sit above the items they refer to.

Customer journeys

Two journeys, mapped before designing.

I mapped a first-time buyer and a subscription customer from the shipped flows, Masafi’s business rules and my audit. There is no customer research behind it yet, so the thinking and feeling rows are hypotheses, and every pain point is tagged as a rule, an audit finding, a known fact or an assumption.

Journey map of a first-time buyer, from finding masafi.com to deciding whether to come back
First-time buyer: from finding masafi.com to deciding whether to come back.
Journey map of a subscription customer, from choosing Subscribe and save to staying subscribed
Subscription customer: from choosing Subscribe & save to staying subscribed.

Moment that matters · first order. The cart is the riskiest moment: a small first order can sit under the 25 minimum. So the cart says how much more to add and offers one-tap packs.

Moments that matter · subscribers. Two moments: when subscription items drop under the minimum, and the days before running low. So v2 asks instead of converting, and reminds people before they run out.

How I’d measure it

Targets to test, not results.

127Variables in 3 collections (v1: 0)
AAAText contrast on every text token but one documented AA pair (v1 secondary text: 4.35:1)

My proposal for 2027, so there is no launch data. I’d test each AI feature with an A/B test: reorder rate after a nudge, days between orders, opt-outs and complaints, subscription take-up from suggestions, and email click-through. None of these are measured yet. The system numbers come from my own audit of the v1 file.