In useDesign system · Lyearn

A design system built
for people and agents.

I rebuilt Lyearn’s design system on Untitled UI and Nucleo: one token system in Figma, React and Storybook, with rules AI can follow. Designers now ship front end from it.

Claude CodeFront-end repo · local
Build the Remove person modal from this frame.figma.com/design/…/People?node=Remove-person
Opened the Figma frame Connected with a personal access token
Reading the rulebooks and Storybook before I build.
Read CLAUDE.md and the design-system-first skill The rules every screen follows
Searched the library and Storybook Modal · Select · Button group · Button
Built the modal from library parts Nothing drawn from scratch
Every colour, space and size comes from a token No custom styles, no raw hex
Review skill: no blockers code-review-agent
Matches the Storybook stories Variants, spacing and states
Checked it in the live app. Looks right.
Open the PR.
Opened the pull request A developer reviews it next
Merged to testing. QA passed, and it’s live.
Ask Claude to build or change a screen…
figma.com · People › Remove person
People/Remove personAccess token connected
Remove person
Link copied
Reading the rules before it builds0 of 4 read
  1. CLAUDE.mdHard rulesTokens onlyNo raw hex
  2. design-system-first skillSearch the library firstReuse, don’t fork
  3. component-reference.mdFormsPickersEmpty states
  4. StorybookModalSelectButton groupButton

Every rule is written down, so it starts building without guessing.

Remove personRiya Nair · UI/UX Designer 2
Reason for leaving
Resigned
What should happen to Riya?
SuspendExit with a dateDo nothing
Last working day
31 Oct 2026
CancelRemove
Tokens used bg-error-solid bg-secondary radius-xl spacing-5 Aatext-sm 0 custom styles
Four guards check the work0 of 4 passed
  • RulesCLAUDE.mdHard rules followed
  • Review skillcode-review-agentNo blockers found
  • StorybookLive componentsMatches every story
  • DesignerLive appChecked in the running app
OpenRemove person asks what happens next

Opened by the designer · built from the design system

  1. Pull request openedWith Claude Code, from the design systemDesigner
  2. Code reviewApprovedDeveloper
  3. Merged to testingDeployed to the testing appDeveloper
  4. TestedPassed on testingQA
  5. In productionLive for customersLive
Step 1 of 5

A designer asks Claude Code for a screen

A shortened recreation of how one change moves through the system. The person’s name is illustrative.

The brief · what this design system solved

Our old design system wasn’t ready for an AI workflow. I rebuilt it so AI agents can design and build from it, and we ship faster.

  1. 01The problem

    Built for people, not AI.

    Six Figma files built on styles, not real tokens. Designers found their way around; AI agents couldn’t.

  2. 02What I built

    Figma and code, in sync.

    Untitled UI and Nucleo, restyled for Lyearn, with 1,243 variables shared by Figma, React and Storybook.

  3. 03What changes

    Agent-friendly and scalable.

    Agents can read the rules now, so designers and engineers both open PRs, and it keeps growing.

RoleProduct designerSystem, rules and shipping
BaseUntitled UI + NucleoAdapted to Lyearn
StackFigma to ReactVariables, Tailwind, Storybook
Built withEngineeringRules and Storybook, side by side
01The problem

Our old design system wasn’t ready for AI.

Our first design system did its job: careful components, with every state covered. But five things held it back.

The old design system
6Figma files0variables0rule files1product: the LMS
  1. 01Built for the LMS

    Made for courses and certificates, not for HR, people data or AI.

  2. 02Styles, not tokens

    Built on Figma styles, not variable tokens, so one colour change meant many edits.

  3. 03Hard to explore

    Six files sorted by atom, molecule or organism, and no written guide to find anything.

  4. 04Couldn’t scale

    Lyearn was becoming an AI-native HR platform. A weak base would multiply every gap.

  5. 05Slow to ship

    No rule files for AI to read, so every screen went to engineers by hand to rebuild.

Fixing it meant rebuilding it. Turning styles into variables, merging six files and adding HR and AI parts would each have touched almost everything, so we rebuilt it for an AI-native workflow.

02The goal

One system for people and AI agents.

We wanted one design system that designers, engineers and AI agents all read the same way, and that grows with our AI-native HR platform. People fill gaps with judgement. Agents can’t, so every rule has to be written down.

Easy to find

One Figma file, clear names, and every component in Storybook, so nobody has to hunt.

Easy to follow

Every rule is written next to the code, so people and agents all build the same way.

Easy to edit

Change one variable and it updates everywhere, in Figma and in code, all at once.

Easy to scale

A token-based base where new HR and AI components slot in cleanly, without rework.

03The decision

Why we didn’t start from scratch.

So the question was how to rebuild: design every component ourselves in Figma, or start from a proven system and make it ours?

Build it ourselves in FigmaSlowerAdapt Untitled UIOur choice
Time to shipMonthsWeeks
EngineeringDevelopers rebuild every component in codeMatching React code from day one
QualityAccessibility and states built from zeroAccessible states built in, on React Aria
TokensVariables and modes set up by handVariables, light and dark modes ready
Our timeSpent recreating basic componentsSpent on new HR and AI components

Why Untitled UI, specifically. It was the only option that ticked all three.

Untitled UISaas UIMaterial 3Carbonshadcn/uiAnt Design
Figma + code togetherYesPartlyPartlyYesCode onlyYes
Fits React Aria + TailwindYesNoNoNoPartlyNo
Effort to rebrandLowMediumHighHighLowHigh
04What we built

Untitled UI, restyled into Lyearn’s own system.

One Figma file on real tokens, restyled to Lyearn’s brand and extended for an HR and AI product.

Old system vs new

Old systemNew system
Figma files61
Variables01,243
Light and dark modesNoYes
Old or outdated pieces1138
Built forA learning productAn AI-native HR platform

Restyled to Lyearn

Untitled UI defaultbg-brand-solid#7F56D9
Save changesCancelActive
Notify my managerRemember
Lyearnbg-brand-solid#262626
Save changesCancelActive
Notify my managerRemember
05Four guards

One design system, guarded by four.

Figma guards the design, GitHub guards the code, Storybook shows every part live, and the rulebooks keep AI agents to it.

Same component names, same variants, same tokens. A Figma screen is a list of parts an agent can already import, not a picture to redraw.

In Figma

Local variables1,243
Collections1. Color modes299_Primitives4502. Radius113. Spacing174. Widths125. Containers46. Typography32
NameLight modeDark mode
Colors / Background & brand
bg-brand-solidNeutral/800Brand/600
border-brandNeutral/700Brand/400
fg-brand-primary (600)Neutral/600Brand/500
text-brand-primary (900)Neutral/900Neutral/50

In code, on GitHub

Lyearn / effy-fePrivate
effy-fe / packages / yooeye / src
components/base28 base components: buttons, inputs, select, tabs, badges
components/applicationComposed pieces: tables, tabs, navigation
components/ly-moleculesasync-view, empty and error states
formConfigurable form with typed fields
stylestheme.css: Tailwind theme tokens
Storybook

See the library live

Figma shows what we designed; Storybook shows what we built. Every component in every state, with interaction and accessibility tests before a PR.

Open Storybook
storybook.lyearn.comStorybook, Button docs: the component sidebar with Docs selected, a live Button preview and its props table
06How we ship now

How a request becomes a live change.

A change can start in three ways. Whichever way, Claude builds it from the design system and a developer reviews the result.

Figma · Dev Mode
People / Org structureDev ModeAShare
Remove person
400 × 248
Claude Code · developer’s laptop

› Build this modal with yooeye Modal, Select…

Reading the frame through the Figma MCP

✓ Modal · Select · Button from yooeye

✓ Connected removeEmployee mutation

✓ Checks passed · ready for review

  1. Requestplain language
  2. Searchdesign system + repo
  3. Buildfrom parts
  4. Checkformat, lint, types
  5. Verify livemeasure in the app
  6. Looks right?no: feedback goes back to Build
  7. Open PRon my approval
  8. Code reviewby a developer
  9. Mergedby the reviewer
07Shipped work

Designers now open PRs: 17 in 8 days.

Every one was opened by a designer with Claude Code, from small polish to whole flows: onboarding, the career profile, bulk invite and org setup. A developer reviewed and merged each one to testing; after QA, it shipped.

Every change runs the same loop

DesignerClaude CodeDeveloperQA
yesno: designer gives feedback01Open the designFigma link + access tokenDesigner02Read the rulesGitHub rules + .md filesClaude Code03Buildthrough CLAUDE.mdClaude Code04Check livemeasure in the appDesigner05Open PRby the designerDesigner06Code reviewby a developerDeveloper07Mergedto testingDeveloper08QAtested on testingQA09Productionshipped to usersLooks right?

Every PR, 9–16 October 2026

Sizes are lines added and removed, as GitHub reports them.

OpenedWhat shippedSizeFiles
16 OctRemove and Replace ask what happens to someone leaving: suspend, exit with a date, or nothing+339 / −8811
16 OctBulk invite review: issues shown inline in the table instead of stacked error cards+748 / −1,14617
15 OctCareer paths: tidier draft banner, skeleton tracks for early drafts+88 / −737
14 OctProfile: name field in Edit Profile+47 / −127
14 OctSkills: new skill-level picker component+560 / −15222
14 OctOnboarding: Slack out of setup, profile-link hints and checks+246 / −4317
13 OctOnboarding: drop the top back button, lift the steps+7 / −306
13 OctOnboarding: smooth, staggered fetching lines+101 / −303
13 OctOnboarding: change skill levels on profile review+195 / −199
13 OctOnboarding: “edit later” hint on profile review+52 / −136
13 OctOnboarding: confirm team LinkedIn first, pace the profile reveal+100 / −316
13 OctOnboarding: rotating fetch copy, slow-scan skip, centred steps+256 / −11510
13 OctProfile: aspiration history drawer and ladder position markers+741 / −5021
12 OctOnboarding: redesigned profile setup, review and loading steps+1,186 / −29636
9 OctProfile: readiness over time spans every level held+86 / −6010
9 OctProfile: readiness table fills its row, titles capitalised+19 / −183
9 OctProfile: career tab with career path and readiness over time+2,291 / −17039

Most PRs are reviewed and merged by a developer on GitHub; occasionally, for a small fix, I merge my own after the checks pass. One of them removed more code than it added: moving errors into the table let the old stacked-card interface go.

08Built without Figma

Some products went straight to code.

Career paths never had a Figma file. Engineers built the backend first, then I designed it in the running app with Claude Code, on real data. Parts of Employee productivity and Org structure were built the same way.

Built with Claude Code · no Figma

Career paths

Ladders, readiness and the career tab, built straight in code.

6 merged PRs9–16 Oct 2026Case study Career paths case study
Figma + Claude Code

Employee productivity

Profile and insight screens, built on the existing APIs.

Figma + Claude Code

Org structure

People flows, where review and exits happen in place.

09Impact

What changed, in numbers.

Designers now build the front end and open the PRs, so screens ship in about half the time, on a design system the whole product runs on.

17PRs opened by a designer

in 8 days, each built with Claude Code and reviewed by a developer.

½the shipping time

Designers build the front end themselves, so a screen no longer waits to be rebuilt in code.

1system, fully adopted

Every new screen is built from it, and new HR and AI parts slot in without rework.

The numbers behind it, from GitHub

Review speed
0.5 hmedian, PR opened to merged
Merged within 3 hours
14
Waited overnight, 17–22 h
3

The one review comment that needed a code change was fixed and merged within the hour.

17PRs merged
+7,062 −2,346Lines added / removed
230Files changed
195Median lines added per PR
Read next · Shipped

AI Course Creator

A progressive, context-led AI system that turns trusted company knowledge into structured, reviewable learning.

Read case study