FeaturedAmerican Health AssociatesHealthcare2026

LVL Health

I turned a client's AI-made prototype into a design system they can own, then used it to design the whole journey, happy path and failure states, with zero accessibility failures.

Role
Product Designer
Team
Spec writer, React engineer, integrations engineer and a PM; delivered at CoStrategix
Timeline
Six weeks, August to September 2026
Tools
FigmaFigma Plugin APIshadcn/uiWCAG 2.2

Overview

American Health Associates runs a certified clinical lab with room for more work, but no way to sell to the public. LVL was their way in: pick your tests, pay cash at the price Medicare pays, and someone comes to your home to draw blood. They had generated nine pages with Claude, and they liked them. It looked finished.

I was the product designer, working with a spec writer, a React engineer, an integrations engineer and a PM at CoStrategix. It was our second project where AI agents wrote the code from our written specs. My job was to turn it into something they could own: a design system built from their prototype, and a product that still works when something goes wrong.

Discovery

I used the prototype on a phone the way a customer would, mapped the path, and wrote down what broke.

Four problems stood out: two design systems in one product, only the happy path, search 17 phone screens down, and 35 controls on one checkout page.

I wrote it all up as an audit: every color, type style and component the nine pages used, and which ones a first version of the system needed. That second list became the MVP scope for the library.

The prototype's personas were all shoppers, but two people use this product: the shopper, who spends fifteen minutes once, and the patient, who waits five days and then has to make sense of the result. I replaced the segments with four personas built around that second moment.

Dana, 38 · the optimizer

Tracks her own lab numbers and is annoyed her doctor won't order the cholesterol test she wants. Most likely to buy, least likely to need help, and quick to notice the price transparency.

Ray, 61 · the manager

Type 2 diabetic, reorders the same six markers, and cares about one thing: is the number better than last time. He has diabetic retinopathy, so a dark-only interface makes his results harder to read.

Marisol, 44 · the daughter

Manages her mother's care in Miami-Dade and is most comfortable reading health information in Spanish. She fills in checkout at 11pm, one-handed, and gets interrupted.

Anyone, on a bad day

Whoever gets an alarming number. Highest stakes, least attention to spare. Every results decision was tested against them.

Three more people shape the product without ever seeing a screen: the phlebotomist at a stranger's door, the physician who signs off before results are released, and whoever phones a patient about a critical value.

Insights

The prototype stopped at the order, but the real risk is reading the result alone.

The contract measured success from order to result, and nothing in the prototype came after the confirmation page. Ordering a lab test online is a solved problem; Quest and Labcorp already do it. Reading your own result with no doctor in the room is where this product earns trust or causes harm. One line from my discovery brief guided everything after it:

Removing the gatekeeper also removed the person who was supposed to explain the number.

I also proposed the measure the project was missing: how many customers can read their own result and say what each number means and what to do next, without calling anyone.

Design decisions

I wrote five principles first, each one a test a screen could fail.

With 88 screens and plenty of reasonable requests along the way, I needed rules in place before the screens, so I could say yes or no for a reason. The north star: order a blood test without a doctor, and read the result without one too.

The number explains itself

Cover the rest of the screen. Can you still tell what this number means?

The wait is narrated

At any point in the five-day wait, can the customer tell what is happening right now?

No surprises, front or back

Does any screen deliver serious news the customer was not prepared for?

Legible under stress

Does it work for Ray at 200% zoom and for Marisol in Spanish, or only for Dana?

The AI co-signs, a physician authors

Can the customer tell which words a machine wrote and which a physician reviewed?

The four problems from the audit, and what each one became:

  • Finding: The home page used one set of grays, the other eight pages another, plus 19 one-off colors.

    Design: One color system: raw values and 81 semantic variables, and one set of text styles. See it

  • Finding: Only the happy path existed.

    Design: Edge cases as real screens: critical values, empty results, session expiry, report failure, out of area.

  • Finding: On mobile, search sat about 1,500px down, under a full-screen hero and 44 ungrouped cards.

    Design: A compact header and tests grouped under 11 categories. See it

  • Finding: One checkout page with 35 controls, 25 of them required.

    Design: A short checkout flow, eligibility first, with the order summary in view throughout. See it

Rebuild the path between the pages

Each of the nine pages worked on its own, but they didn't connect. Walking through as a customer, the gaps showed up fast: the catalog took 17 screens to reach, the checkout steps listed the cart as a step you could never be on, and the form asked everything at once, including the two questions that should come first. Are you 18, and are you in the service area?

Get to the tests faster

A compact header and tests grouped under 11 categories.

What you're buying stays on screen

The cart came out of the steps, and the order summary stays pinned through checkout.

Eligibility first

Where a no costs the customer nothing.

Physician review in the flow

Where people can see it, because it's what sets LVL apart from a shop.

Consents short enough to read

Prototype catalog with 44 flat cards and no grouping
Before. 44 flat cards, no grouping, and the cart out of view while you scroll.
Redesigned catalog with a compact header and tests grouped under categories
After. A compact header and tests grouped under 11 categories, reachable without seventeen screens of scrolling.

Make the case once, then build their choice well

Right after ordering, patients pick when the phlebotomist can come for the at-home draw. The first picker I drew was a calendar with time slots, some marked full. Then I asked whether a booking system sat behind it. None did. Patients state a preference and LVL calls or texts within 48 hours to confirm, so every "fully booked" tile was a promise we couldn't keep.

I rebuilt it as ranked day and time-of-day choices, so every request would reach the scheduling team in the same format and they could act on it fast. The client wanted one free-text field. I made the case for the picker once, with my reasons, and they chose free text. So I built that field well: a label that says what to write, an example in the field, a hint to mention how soon, and no requirement to fill it in.

The cost is messier data for the admin team, since people can type anything. It matched how LVL actually worked, and the guidance cut down on the inconsistent answers. My version stays on the canvas. If LVL ever adds real scheduling, it's the next step. Switch between the two below.

What the patient sees

Preferred draw windows

Optional. These are preferences, not bookings — tell us the days and times that usually work and we'll confirm one window by phone or text within 48 hours. Leave this blank and we'll propose times instead.

How soon would you like your first draw?
Your preferences1 of 3
First choice
Days
Time of day
Narrower (optional)
Ranked in order. We try your first choice first.

Fasting required. One or more tests in your cart need an 8-hour fast. Morning windows are easiest — nothing but water beforehand.

What the scheduling team sees

Draw requestMaria Alvarez · (786) 555-0132Call within 48 h
First draw
Within 2 weeks
Windows
  1. FirstMon · Wed · FriMornings, 7 – 9 AM
Note
After school drop-off works best — free most days before 9.
Prep
8-hour fast, so mornings are easiest

Same format every time, in the order the patient ranked them.

Switch between the picker I recommended and the field that shipped. The panel underneath shows how each request would read to the team that calls patients; it's an illustration, not a shipped screen.

Build only the components the product needs

I drew every component in Figma, with Claude Code working through MCP, and only the ones on the audit's MVP list: what the journey needed to browse, order, wait, read a result and manage patients. Each one holds its desktop and mobile versions together, so a 390px screen uses the same component as the desktop.

Components use properties, not copies: swaps for icons and content, toggles to show or hide parts, and variants for the states demos skip (hover, focus, disabled, loading, empty, error). That kept the library at 80-plus components.

I named everything after shadcn/ui, a React library AI tools already know well, so agents would recognize each component on sight. There was no code yet to connect Figma to, so I took the naming down to the properties: every Figma property matches its shadcn prop, values included (variant, size, disabled). An engineer or an agent reading the Figma file was reading the code's words. At the same time, we were exploring Code Connect with a Figma rep to see if it could close the rest of the gap.

Button · properties

variant
size

The button, rebuilt in code from the shipped screens. The panel uses the Figma property names and the code line uses the shadcn props, and they're the same words. Combinations that make no sense, like an icon-only link, can't be picked.

Turn the colors and type into a system

The prototype had two sets of grays that disagreed and 19 one-off colors. I kept the newer set and rebuilt the color in two tiers: raw values, and 81 semantic Figma variables that name each value's job. Each semantic token is traced to its shadcn variable and to the value it replaced, so engineering could check every swap. Components read the semantic tokens directly, with no component-level tier. The type got the same treatment: one set of text styles in place of the prototype's mix.

Naming tokens by their job (surface, text, border) paid off right away. Claude Code and Figma AI did much of the mapping, and clear names let them match each layer to the right token without guessing.

  1. Value
    #3FF4BA
    Token
    brand/mintPrimary accent. The thing you can act on.
    Code
    --primary
    Button fill
  2. Value
    #0F0F0F
    Token
    text/on-accentType and icons on mint, amber and red.
    Code
    --primary-foreground
    Button label
  3. Value
    → brand/mint
    Token
    border/focusFocus ring. An alias, so it can never drift from mint.
    Code
    --ring
    Focus ring
  4. Value
    #232323
    Token
    surface/controlChips and quiet controls.
    Code
    --secondary
    Neutral badge
Four paths from value to component, redrawn with the real token names and values. The focus ring is an alias of brand/mint, so the two can never drift apart. Point at a row to see what it paints.

Two more calls made it hold up. Contrast ratios can't tell two near-black colors apart, so I measured how different the dark backgrounds looked in lightness instead. Making the page darker, rather than the cards lighter, widened the gap from 2.93 to 4.50 (ΔL*), enough to see without adding a shadow. And I fixed contrast in the tokens before the build, so the eight contracted accessibility hours went to checking.

Every color in the product is a variable. Nothing is a raw hex. Dark mode, first token pass.

Surface

One lightness ladder. Near-black surfaces all score close to 1:1 on contrast, so the steps are judged by lightness (ΔL* from the page) instead.

  • surface/page#0A0A0AThe ground. Every page.L* 2.74 · ΔL* —
  • surface/groove#0A0A0BRecessed wells that hold a button.L* 2.76 · ΔL* 0.02
  • surface/raised#161616Cards, panels, inputs.L* 7.25 · ΔL* 4.51
  • surface/footer#1A1E1DLifted, with a slight green cast on purpose.L* 10.83 · ΔL* 8.08
  • surface/overlay#1D1D1DModals, popovers, menus.L* 10.77 · ΔL* 8.03
  • surface/control#232323Chips, segmented controls.L* 13.71 · ΔL* 10.97
  • surface/control-hover#2C2C2CControl hover only.L* 18.00 · ΔL* 15.26

Brand

Mint is the response color. It marks what the system did, or what you can act on. The tints are shown over surface/raised.

  • brand/mint#3FF4BAPrimary accent, focus ring.13.56:1 with text/on-accent
  • brand/mint-dark#00C896Pressed and secondary accent.8.86:1 with text/on-accent
  • brand/mint-edge#1B8061Edge on mint-filled buttons. Stroke only.4.06:1 on page
  • brand/ink#111111Logotype ink in the LVL seal. Never UI text.
  • brand/mint-soft#3FF4BA @ 12%Tinted fill behind mint content.
  • brand/mint-line#3FF4BA @ 22%Hairline on mint-tinted blocks.
  • brand/mint-glow#3FF4BA @ 7%Ambient glow washes only.

Text

Four grays and one dark. Every step passes AA on both the page and raised surfaces.

  • text/primary#FAFAF7Headings, body, control labels.18.93:1 page · 17.31:1 raised
  • text/secondary#B4B4B0Supporting copy, footer legal.9.52:1 page · 8.70:1 raised
  • text/tertiary#949492Micro-labels, captions, meta.6.51:1 page · 5.95:1 raised
  • text/placeholder→ text/tertiaryUnfilled input values. Aliased: one color, two names.6.51:1 page · 5.95:1 raised
  • text/on-accent#0F0F0FType and icons on mint, amber and red.

Border

Only the edges of live controls need 3:1. The rest are hairlines between planes that lightness already separates.

  • border/divider#171717Rows inside a card.1.01:1 on raised
  • border/subtle#222222Quiet edges.1.14:1 on raised
  • border/groove#262629Edge of a recessed well.1.20:1 on raised
  • border/structure#35353ACard and panel edges.1.48:1 on raised
  • border/interactive#676766Input and control edges. Needs 3:1.3.20:1 on raised
  • border/focus→ brand/mintFocus ring. Needs 3:1.12.81:1 on raised
The color tokens, rebuilt in code from the shipped color sheet. Every token has a name, a value, a job and a measured number: lightness for surfaces, contrast for text and accents. Nothing in the product uses a raw hex value.

Make it ownable, within the budget

AI-made products tend to look alike, and the client's was already drifting toward a generic shadcn app. So I presented two directions, both checked for accessibility: one pushed hard, with texture, shading, a new corner radius and reworked spacing, and one pushed lightly. I walked through the trade-offs, and with a fixed budget the PMs preferred to hold back, so we landed in between.

What made it in was in the details: corner radius, how cards sit on the background, where the green accent shows up, and how the dark shades sit next to each other. The one piece I pushed further was the glow, a soft light on the dark background, carried from the marketing pages into the hero so people remember it. A subtle gradient on the main button does the same at a smaller size.

Add a light mode for Ray

Ray is a persona, but his problem is real. He's diabetic, and retinopathy is one of the most common complications of the disease this product mostly measures. Mint text on black is hard for him to read, and the people most likely to buy these tests are the most likely to have eyes like his.

Dark mint-on-black was the brand's signature, and the client treated it as settled. I made the case for a light mode as an accessibility need, with Ray as the example: the customers who reorder have the most to lose if a number is hard to read, and the final report is a printed PDF, which is light anyway.

Because every color was already a named variable, light mode was a second Figma mode on the same variables. Marketing stays dark, because that audience is browsing. The portal works like an app, so it got both. The black navigation bar stays fixed as a brand element. Two new tokens, one corrected value, and all 182 color pairings pass in both modes.

Patient dashboard in dark mode
Dashboard, dark.
The same patient dashboard in light mode
Dashboard, light. Same components, same bindings, different mode.

Measure what's actually on screen

My token matrix said all 234 color pairings passed. I wanted to see it on the actual screens, so I wrote a Figma plugin that measures every text layer against what's painted behind it, transparency included.

It found 29 failures the matrix couldn't see. The worst came from the prototype itself. A Figma quirk ignores transparency when a color is linked to a variable, so every pale mint icon tile in the portal, meant to be 12% mint, showed at full strength. At 40px it still looked like a mint tile, so nobody caught it by eye.

I fixed all 29 in the components and ran it again: 2,055 text layers and 119 icons across 18 frames, both modes, zero failures.

Write it so an agent can build it

Agents would write the React from specs, so the design had to make sense to a reader who can't ask questions. A DESIGN.md carries the tokens, the modes and the rules for combining them. Every component got its own file, from a template I made on our first spec-driven project: what it is, its version, its intent, its properties, dos and don'ts, when to use it and what to use instead, and a link to the Figma component. The client, the developers and the agents working in Antigravity all built from those same files.

status-badge.mdView full spec
# Status badge| | || :-- | :-- || **Version** | 1.3 || **Status** | Ready for build || **Code** | `components/ui/badge` (shadcn Badge, two variants added) || **Figma** | LVL Components → Status badge (link) |> Portfolio sample. Reconstructed from the shipped screens; the original file stayed with the company.**What it is.** A short label that says the state of one thing: a lab value, an order, an account. It's read, never clicked.**Intent.** Someone reading their own lab result should know what each value means without relying on color. The badge always says its meaning in words, and color only backs the words up.---## PropertiesFigma property names match the shadcn props one to one, so the design and the code use the same words.| Property | Values | Default || :-- | :-- | :-- || **variant** | secondary · success · warning · destructive | secondary || **icon** | true · false | false || **children** | The label, 1–3 words | — |**success** and **warning** were added for LVL. The other names match shadcn's.| Variant | Means | Examples || :-- | :-- | :-- || **secondary** | Nothing to do | In range, Inactive || **success** | Done, or ready for you | Active, Confirmed, Final, Ready to read || **warning** | Worth a look, not an error | Above range, Pending verification || **destructive** | Stopped | Suspended |Tokens: semantic names only, never a raw hex. **success** uses `brand/mint` on `brand/mint-soft` with a `brand/mint-line` edge.---## When to use it- The state of one row, card or result.- Next to the thing it describes, on the same line.## When to use something else- **Someone can act on it** → Button. A badge is never clickable.- **It explains why** → Alert or an inline note. A badge is a label, not a sentence.- **A critical lab value** → Critical-value banner. That can't wait in a table cell.- **Progress across steps** → Order tracker.---## Do- Write the meaning in words: **Above range**, not "High!" or an arrow.- Use **secondary** for in-range values. Calm is the right signal there.- Keep the label in uppercase through the component, not in the text.## Don't- **Don't use color without a word.** No dots, no color-only cells.- **Don't use success (mint) on a lab value.** Mint means you can act or something is done. An in-range value needs nothing.- **Don't use destructive for out-of-range results.** Above range isn't an error, and red there causes needless alarm.- **Don't put two badges on one item.** If it needs two, the state model is wrong.---## Accessibility- The label is real text, so screen readers read the status with the row.- Every variant clears WCAG AA contrast in light and dark mode.- It isn't focusable, because nothing happens when you click it.
The status badge's component file. The intent and the don'ts are the parts only a designer can write, and they're what keep an agent from guessing. (Reconstructed for this portfolio; the original stayed with the company.)
  • variant="success" · added for LVLActiveConfirmedSomething the system did, or that is ready for you.
  • variant="warning" · added for LVLAbove rangePending verificationNeeds a look. Never an error.
  • variant="destructive"SuspendedThe account or order is stopped.
  • variant="secondary"In rangeInactiveNothing to do. Quiet on purpose.

Ruled out in the spec

Color with no word. Every badge says what it means, so color is never the only signal.
In rangeMint on a lab value. Mint means you can act; an in-range value needs nothing, so it stays quiet.
The badge's four variants and where each is used. Below them, the two misuses the file rules out.

Layers, variables and assets all follow one naming convention, matched to shadcn, because a name is the only label an agent gets. A frame called "Group 47" costs someone an afternoon later.

Solution

The whole journey, happy path and failure states, built from one system.

Someone buys a test on Tuesday, a phlebotomist comes to their kitchen on Thursday, and the next week they open an email alone and learn something about their own body. The design has to work at each of those moments, especially the last one, and when something goes wrong. That came to 88 screens across five areas: the storefront, checkout and sign-in, the patient portal, password recovery and admin, each at desktop and phone width.

Result viewer with a physician release banner, plain-language summary and markers sorted out-of-range first
The screen the project was about. Physician release banner, a plain-language summary, markers sorted out-of-range first, a trend chart, and an explanation of what a reference range means.

The result viewer

Opens with a sentence before the table: twelve of your fourteen markers are inside their reference range, two are above, in order of what to look at first. Every status carries a text label, so color is never the only signal, and each out-of-range value has a plain-language note.

The wait, narrated

The dashboard leads with the next draw and fasting instructions for that day, then tracks the order across six steps: ordered, physician review, scheduled, collected, lab review, released. Physician review gets its own step because it's the one that makes the wait longer or shorter.

Checkout in steps

35 controls on one page became a short flow, with the order summary in view throughout, the physician review explained inside it, and consents short enough to read.

Edge cases as real screens

Critical-value banner, empty results, session expiry, report failure, and an out-of-area state that locks the draw-window section and says why, before anyone reaches payment.

Administration

Manage patients and staff, with status badges that carry a word as well as a color, and dialogs that state the consequence before you confirm. Suspending a patient keeps their results, so they're there again on reactivation.

Who wrote the explanation

A banner names the releasing physician and license number, and says the explanations were drafted automatically and checked before release. When the client dropped the AI brand name from the site, I kept the disclosure.

All fourteen markers

MarkerYour valueReference rangeStatusNotes
Glucose, fasting112 mg/dL70 – 99 mg/dLAbove rangeUsually repeated before it counts.
Hemoglobin A1c6.4 %4.0 – 5.6 %Above rangePrediabetes range. Up 0.2 since May.
Creatinine0.9 mg/dL0.7 – 1.3 mg/dLIn range—

FinalReleased by the physician. The numbers come from the lab and are never rewritten.

Result rows, rebuilt in code from the result viewer. Turn on Remove color: every status still reads, because it's a word first.
Mobile landing page
Mobile landing.
Mobile checkout
Mobile checkout.
Mobile administration view
Mobile admin.
Portal edge-case states including critical value banner and session expiry
Portal states: critical value, empty results, session expiry, report failure.
Out of service area state locking the draw window section
Outside the service area, the draw-window section locks and explains why.
Administration screen for managing patients
Manage patients. Status badges carry a word as well as a color.
Dialog confirming suspension of a patient account
Suspending a patient. The dialog states the consequence before you confirm.

Outcome

Every path was designed, including the failures, and development ran alongside the design.

Agents and engineers built from the specs as they landed, so there was no single handoff. I don't have a launch date or live numbers to share. What the design work delivered:

  • The scope covers the whole journey, from the shop to reading a result.
  • Failed payment, empty results, session expiry, out-of-area and critical results are all designed, from the same components.
  • Three blocking decisions (where payment happens, the results format, light mode) were closed early.
  • The biggest unowned risk, a physician release step the contract required but nobody had scoped a screen for, was raised as the top open item.
  • Two sets of grays and 19 one-off colors became one set of named tokens, so light mode took two new tokens and one corrected value instead of a second set of screens.
  • The client, the developers and the agents in Antigravity build from one source: a DESIGN.md, a file per component, a Figma library named in the code's terms, and one reference that lists every change from the prototype and why.

Reflection

The most useful thing I did was reread the brief.

The prototype was good enough to believe in, and that made it risky. AI-generated work gives you a believable hero, catalog and checkout. It doesn't give you how they connect, the states nobody demos, or the half of the journey with nothing to copy from. The prototype, the stakeholders and the marketing copy all pointed at the shop, while the contract's success metric pointed past it. Pointing that out early, with evidence, shaped everything that followed.

I also learned to check what's rendered, even when my own system says it's fine: the token matrix was right, and the screens were still wrong in 29 places. And I learned how to lose an argument well. Make the case once, with reasons, then build the client's choice as carefully as your own.

Where design sits in an AI build

This was our second project run this way. Most of the system building went faster with a model in the loop. Most of the deciding didn't. I came out with a DESIGN.md and component templates I'd use again.

Next time I'd add three things to those templates: the combinations that aren't allowed, because an agent treats every combination as valid unless told otherwise; a required accessibility section; and props generated from the code once it exists, so the file can't drift from what ships. I'd also see the Code Connect work through, so matching Figma to code doesn't rely on naming alone.

The question I keep coming back to is where judgment has to sit when a process can produce believable work without it, and what a designer has to write down so that judgment survives the handoff.

What I'd do differently

I'd make the case for ownability earlier. I showed the client two directions: one pushed hard, with texture, shading, a new radius and a reworked spacing system, and one pushed lightly. With a fixed budget, the PMs pushed back on doing too much, so we met in the middle. I laid out the trade-offs and why ownability matters when so many AI-made products look the same, but the result stayed closer to the original than I wanted. Next time I'd put that choice in front of the client at kickoff, while there's still budget to spend on it.

Next project

Website redesign

A custom builder's template website, redesigned to feel like their work: quiet confidence, no ego.

Have a problem that isn’t clear yet?Let’s find the one worth solving.

© 2026 Designed and built by Latimer Gray, with Claude Code.

latimergray@gmail.com