AI and variables: Building more accessible design systems faster

Tobi Olowu
Written by Tobi Olowu
Dec 4, 2025

Back in 2021, I worked on a project called Moore, a financial solution for the modern world. It included features like bank transfers, airtime and data top‑ups, and bill payments. The design challenge stretched across mobile, web, and an admin dashboard. It was a system aimed at making financial transactions seamless and modern.

The problem I faced wasn’t creating the product from scratch but making an already completed design more accessible. The question was: How could I do this in the fastest time possible while ensuring quality?

When people talk about AI in design, they often picture flashy visuals or generative art. But my own lightbulb moment happened at a less glamorous place: in an effort to solve this accessibility challenge under pressure.

At UX Scotland earlier this year, I shared how AI helped me transform a messy, time-consuming process into something lean, structured, and scalable. Instead of spending weeks tweaking palettes and testing contrast, I had an accessible design system up and running in just a few days. In this article, I’ll explain how I did it and why it matters.

Tobi Olowu speaking at UX Scotland 2025
Copyright @ Sean Purser, June 2025

Why accessibility matters

Accessibility isn’t a “nice-to-have feature.” If you’re designing a financial app like Moore, or honestly any digital product, it has to work for everyone. The user base is just too diverse to ignore. Sure, there’s WCAG and ADA compliance on the legal side. But on a human level, it’s about inclusion. On a practical level, it’s about trust.

I’ll never forget when a visually impaired friend told me, “I stopped using my bank’s app because it gave me headaches.” Or watching my mom, who’s over 60, crank up her phone’s zoom just to read messages because finding her glasses is a hassle. That’s what happens when accessibility gets treated like an afterthought: People are quietly excluded from things they rely on every day.

And here’s the kicker: Accessibility isn’t just about compliance or empathy. It directly impacts usability and retention. Dark mode, good contrast, readable typography – these aren’t nice-to-haves. They’re the difference between an app people drop after two weeks and one they trust every single day.

In my own journey, I’ve seen accessibility tacked on at the very end, and that’s where it becomes a nightmare. Designers rush to push out a shiny, smooth interface with great visuals, but no thought is given to inclusivity. Then the scramble begins: manually tweaking colors, fixing contrast, reworking dozens of components. It’s like trying to rewire a house after you’ve already painted the walls. You can do it, but it’s messy, slow, and wastes everyone’s time.

Building in accessibility from the start isn’t just the right thing to do; it's the efficient thing.

My challenge

The challenge was staring me right in the face: How do I make an existing financial app’s design system more accessible fast without getting buried in endless manual tweaks? 

I had to deliver dark mode, accessible palettes, and variable design tokens across both mobile and web. The catch? Doing it the “traditional way” would take weeks, and the deadline wasn’t moving.

The big idea: AI for accessible design systems

That’s when I asked myself: Could AI actually help here?

Back then, AI was still the new kid on the block. Everyone knew ChatGPT for cranking out poems, cleaning up LinkedIn posts, writing Facebook captions, or spinning quick articles. I was still skeptical about the whole “AI can debug code” thing, and it definitely wasn’t at the level it is today, where it can spin up layouts in seconds and even drop design reviews.

But I kept thinking, why not push it a little further? Instead of treating AI like some magic button, I approached it like a junior teammate – super fast, not always right, but surprisingly useful. That’s when I decided to test it for my experiment: tokens, palettes, and accessibility workflows.

The idea was simple: Let AI handle the heavy lifting of generating, validating, and applying accessible design variables at scale. Then, I’d step in to refine, judge, and steer the output with a proper design sense.

The strategy

I broke the process into five steps and plugged AI into each one:

  1. Define and create structure: First, I mapped out tokens for components, text, and colors – basically the foundation.
  2. Create accessible color palettes: Next, I had AI generate full scales from base colors, ensuring they actually met WCAG standards.
  3. Map to components and content: Then I applied those tokens across UI elements and text styles.
  4. Test accessibility: I validated contrast, and when something didn’t work, I had AI throw back alternative suggestions.

Before jumping into how I actually pulled this off, let’s pause for a second and think about what a design system really is.

In my opinion, a design system is just a set of reusable building blocks paired with rules that help teams stay consistent and ship faster. Think of it like LEGO: Once you’ve got the right pieces and instructions, you can build almost anything without reinventing the wheel every time.

And then there are variables; these are basically nicknames for reusable design values and properties. Instead of redefining a color, font size, or spacing again and again, you give it a shorthand label. That way, you change it once, and it flows across the entire system.

Breaking down design systems: an AI-generated image illustrates variables and components like building blocks.

With that foundation in place, what could’ve taken weeks of repetitive manual work turned into a focused process where AI handled the grunt work, and I could concentrate on making sure the final product actually worked for people.

The execution in action

Step 1: Defining the structure

The very first step saved me hours. I went straight to ChatGPT and asked it to help me structure variables for components, text styles, and colors. Here’s the exact prompt I used:

Prompt:
“I’m working on a design system for a mobile app. I want to create variables for the color scheme and theme. Create a structure for the variables in Figma covering components, text, and colors.”

AI output:
In seconds, it generated a full setup: components (inputs, buttons, cards, navbars, modals, tabs), text types (display, header, body, links, labels, button text), and colors (primary, secondary, neutral, success, info, warning, error). Honestly, it felt like getting a neatly written checklist from a senior designer who had already done this a hundred times.

A snapshot of ChatGPT clearly outlining the variables for color, text, and component structure.

Why was this such a win? Because it gave me a scalable, logical structure that mapped directly into Figma’s variable system. No guesswork, no endless documentation, no hours wasted setting things up manually. Just a clean foundation ready to build on.

Step 2: Creating accessible color palettes

The next step was all about creating accessible color palettes and plugging them into the structure I had already set up. Here’s where it got wild: I literally just fed ChatGPT the HEX code of the brand’s primary blue, and it generated full shade scales that were contrast-compliant. That’s the kind of thing that normally takes designers hours of tweaking.

Prompt:

“Colors should include Primary from 10-1000, same for Secondary, Neutral, Success, Info, Warning, and Error. Generate the base color, then 100-1000.”

AI output: 

What came back was gold – consistent hex codes, all WCAG-conscious, and ready to drop straight into Figma. No more second-guessing shades, no digging through outdated brand docs, no manual trial-and-error. In minutes, I had a complete palette that balanced brand identity with accessibility standards.

A quick note on how these ranges work:

  • 100-400: The lighter tones, perfect for backgrounds, hover states, or those subtle design elements you don’t want screaming at the user.
  • 500: This is your hero, the base color. Think primary buttons, links, or any core component that drives action.
  • 600-1000: These are your deeper, darker shades, used for text, active states, shadows, or when you really need to pull focus.

Having that full range generated for every color meant I could cover every use case without ever stepping outside accessibility compliance.

ChatGPT generates the primary color range with all necessary HEX values.
AI-generated HEX code now live as a Figma variable.

Step 3: Mapping to components and content

This was the step where there was no real shortcut. I still had to roll up my sleeves a bit. Mapping the generated variables into existing components is just one of those things you can’t fully escape. Usually, this part is tedious. I used to spend half a day just linking colors to components one by one.

But this time felt different. Since AI had already given me a semantic naming system, I wasn’t starting from scratch. Instead of hunting down every button, input, or card, I could globally apply variables with much less pain. With one click, I could swap themes across mobile and web. Dark mode? Light mode? Done in minutes, not hours.

The process still looked like this: Group variables by category (components, text, colors), apply them to Figma styles, then tie them back into component properties. The difference was scale. What used to drain half a day turned into something I could actually iterate on quickly, hands still a little dirty, but way less of a grind.

Figma variables panel showing the Button component linked to its defined variables.
The Figma variables panel showing the Card component fully linked across both Light and Dark modes.

Step 4: Testing accessibility

This step went back to when Figma hadn’t yet shipped its built-in contrast checker. At the time, testing colors and their combinations meant either relying on external plugins or doing manual checks – both slow and clunky. So, I set up a simple prompt template to run accessibility tests through AI. The idea was to feed it background and foreground color combos, then let it return the contrast ratings along with recommendations.

Prompt:

“I want to test color combinations for the best accessibility and recommendations that are WCAG compliant. For a button with background #4361EE and text color #FDFDFF, what would the rating be, and what’s the recommended adjustment?”

AI output: 

AI came back with a comprehensive report – tables showing contrast ratings for each combo I threw at it, plus alternative values when something didn’t pass. It wasn’t flawless, but it gave me a solid starting point, and more importantly, it caught potential issues way faster than if I had done all the manual checks myself.

Color contrast testing by ChatGPT: showcasing the results directly on a button component.

Quantified results

Here’s what actually came out of the process. By the end, I wasn’t just sitting on a few test files, I had a fully structured system:

  • Over 120 structured tokens covering components, text, and colors
  • Three complete palettes (primary, secondary, neutral) plus semantic sets for success, info, warning, and error
  • 45+ accessible hex codes ready to drop straight into designs
  • 32 typography variants mapped across all the usual suspects headings, body, labels, button text – you name it
  • 80+ components updated with semantic tokens that actually scale
  • And the big one: a single, unified, accessible design system running across both mobile and web

The crazy part? The whole thing went from a project that should’ve taken weeks to something I wrapped in days. But it wasn't just about speed. What I ended up with was scalable, reusable, and inclusive by default. The kind of system you can build on for years instead of constantly patching.

Lessons learned

If there’s one thing this whole process taught me, it’s that accessibility can’t be an afterthought. Trying to bolt it on at the end is like rewiring a house after you’ve already painted the walls – possible, but way too messy. Making it the baseline from day one saves you a ton of pain later.

Another big one: structure first, flexibility later. Without a solid framework, even the smartest AI output falls apart. But once you’ve got that structure, scaling becomes almost effortless.

And then there’s AI itself. It’s not here to replace judgment or creative decisions, but it’s an incredible accelerator. It takes the grunt work off your plate so you can focus on the real design challenges.

Finally, don’t be afraid to experiment. Throw different prompts at it, test the edges, and see what comes back. Half the fun is in pushing boundaries, and you’ll be surprised at how much of it actually sticks.

Tobi Olowu
Tobi Olowu
Tobi Olowu is a Senior Product Designer with over a decade of experience leading design across finance, entertainment, logistics, and government. Currently at Wood Mackenzie in the energy industry, he works on the Platform Team to deliver scalable and accessible designs. Tobi’s career started as a web designer, but his passion for blending technology and creativity has always guided his path. With deep expertise in financial product design making up nearly 75% of his experience, he’s passionate about building inclusive, accessible products and exploring how AI can accelerate design workflows.
Try zeroheight
The design systems platform that keeps teams and agents in sync
Start for free
Share this post