Skip to work
BLR 11:18 IST, 26 degrees, overcast

    Adheet Patil

    Product designer

    I love creating efficient, functional, yet delightful interfaces that make technology easier for everyone. I design and build, Open tokenmaxxing.sh (opens in a new tab) (GitHub: 729 contributions in the last 6 months, and 35B+ AI tokens). Right now, I’m helping build Open spotnana.com (opens in a new tab) (Since 2023, I’ve shipped 120+ features across 13+ product areas. I’ve also rebuilt the product and its design system more than once, most recently in code).

    Blocks design system
    2 of 4

    Blocks, Spotnana’s design system · 2023 to today

    A product with no design system, so we built one

    This is three and a half years on one page: how two designers gave a product built without design one system, shipped it with engineering, made it accessible and moved it into code.

    team
    Two designers, with frontend engineering
    scope
    Audit, components, page templates, tokens and accessibility

    01 · Problem

    There was no system to fix

    Three years of pages, built one at a time. The same button looked different from page to page, and nothing worked below desktop.

    Then we counted the colours.

    1,350+ hex codes. We cut them to 30.

    02 · Research

    First, an audit of every page

    We spent two to three weeks putting every page and flow side by side. Wherever a pattern repeated, it became one component.

    The flight search module: round trip, one way and multi-city, then each with its errors
    The trip card at desktop, tablet and phone sizes
    The seat-selection sidebar, before and after a seat is picked
    From the section library: the flight search, a trip card and seat selection.

    03 · Decision

    I chose one component per pattern

    Five versions of a dropdown? Now there’s one, and every team uses it.

    One component also has to cover every case, so Blocks grew big: tables, menus, calendars, chips, tabs, alerts and buttons, each with its own sizes and states.

    the cost: components got big, with a lot of variants, and some screens lost details that suited them.

    04 · Decision

    I chose sections and page templates too

    Components alone weren’t enough. Components make sections, and sections make Master Pages, so a list, a details page or a settings page looks and behaves the same everywhere.

    Every Master Page is drawn at desktop, tablet and phone sizes.

    the cost: weeks of building before a single page was done.

    05 · Process

    Tokens became variables

    Our tokens lived in a documentation file. Nice to read. Useless in Figma.

    So when Figma launched variables, I moved everything over.

    Then a client asked for dark mode, and it was mostly a second set of values.

    Themes went the same way. I pitched them as a config, so a new partner’s brand is a set of values, not a project.

    Colour variables in light and dark
    Spacing variables for three screen sizes
    The variables today: colour in light and dark, spacing for desktop, tablet and phone.

    06 · Decision

    I chose to hand over in phases

    The system was ready to start. Now it had to ship.

    We didn’t wait until it was all done. Engineering got the basics first, and we stayed two or three weeks ahead, handing over every single week.

    the cost: a steady load of specs, calls and reviews on top of the design work.

    07 · Delivery

    From Pixel to Blocks

    While we handed over, engineering moved off its old library, Pixel. Fixed widths, no tokens, no dark mode.

    We designed the replacements and agreed with engineering what moved first. They moved the code.

    08 · Process

    Accessible by default

    Our components were about half accessible. Good enough to start, not good enough to ship.

    So we audited the whole product, page by page and flow by flow, and turned it into one list. Then we fixed the components in Blocks, and wrote guidelines for how a page should be built: headings, landmarks and focus order.

    Now a new design is accessible by default, not by request.

    The accessibility checklist in the library
    The accessibility page in Storybook
    The checklist in our Figma library, and the same rules in Storybook today.

    09 · Process

    The rulebook

    Then we started building with AI, and that changed the problem.

    An AI doesn’t read a Figma library. Left alone, it invents its own buttons, hex codes and spacing. So I wrote the rules Blocks runs on for AI: 44 of them, from tokens to states to accessibility. Whatever an agent builds goes through them and a review before it joins Blocks.

    Fail, and it goes back to be fixed.

    10 · Result

    Code decides, Figma follows

    Now that our components live in code, code is the record. When it changes, Claude updates the Figma library to match, with the same names and props.

    Ideas can still start in Figma and come back into code through the Figma MCP. Every change ends with an audit of both sides, and when the two disagree, code wins.

    Next is one set of tokens, named the same way in Figma, our design repo, our frontend and our other repos.

    the cost: some steps stay manual: Figma won’t let a script move, publish or rename library files.

    Storybook, from our design repo. Recorded.
    Outcome

    Three and a half years on, Blocks runs the whole product. Every page is built from the same components, at three screen sizes, in light and dark, and in each partner’s brand. It’s accessible to WCAG 2.2 AA, and it now lives in code, where we design and build with AI on top of it. 120+ components and nearly 2,000 variants in Figma, and 69 components and 750+ variants in code.

    Best viewed with curiosity.Best viewed with curiosity. Even better on a desktop.