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.
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 workWhere 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.
- 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 - 02
Smart subscription suggestions
Suggests a delivery rhythm and quantity from past orders, and always shows why.
Builds on: subscriptions · order historyConcept · 2027 proposal - 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
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.



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.
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.
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.
- 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.



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



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.
The raw value: hue and step.
The role: what the colour is for.
Uses the role, never the raw value.
- Primitives · hue/stepblue/600 · gray/700 · teal/40057
- Semantic colour · role/purpose-statetext/brand-strong · bg/brand-hover · border/focus51
- Spacing, radius & size · type/sizespace/md · radius/full · size/touch-min19
- • 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.
- 01Audit
46% of colours hard-coded, 155 unique colours, 0 variables.
- 02Primitives
57 raw values on a hue/step scale.
- 03Roles
51 semantic colours named by purpose and state.
- 04Components
Every v2 component moved onto roles.
- 05Check
Contrast measured per token, AAA text where possible.
- 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.



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.

- 01
Two progress bars show how far the whole order and the subscription are from the 25 minimum, because only subscription items repeat.
- 02
One-tap packs from past orders close the gap with things the customer already buys, not random upsells.
- 03
Ask, don’t convert. The customer chooses Add to subscription or Buy once instead, with Undo.
- 04
Checkout asks again if the choice is still open, so nothing changes without being seen.


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.


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.
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.