A leave feature where employees see what they can take, request it without mistakes and follow every decision.
Project Context
A concept for the employee Leave module of an HR platform: balances, requests, a team calendar and the new, edit and delete flows. Built end to end as a live, adaptive prototype
Problem
CHECKING THE BALANCE
No balance preview
People can’t see what will remain after a request, so they do the maths or ask HR.
PICKING DATES
No view of who’s already off
Without team visibility, several people book the same days.
CHANGING PLANS
No easy way to change leave
In many tools a pending request can’t be edited, so people cancel and send it again.
I prompted the first screens in Figma to review the approach, the logic and the key decisions. Everything after that happened in code: I polished the UI with AI and built the adaptive layouts there. Claude Code worked from project files I wrote first: rules, design system, screens and states, wording and demo data.
“Read this brief. Find user feedback on this feature in similar products: their problems and what they want from it.”
Claude grouped feedback from 10+ HR tools. I checked the sources and turned them into the needs behind the design.
“Before writing any code, read the project files and suggest your main screen options, then wait for my decision. Build step by step and stop after each step so I can review.”
Claude built in small stages, plan first. I reviewed each stage on desktop, tablet and phone and fixed what didn’t match.
“Keep the table on phones and let it scroll sideways, don’t turn it into cards.”
The first build turned the table into cards on phones. I kept a sideways-scrolling table with a pinned first column.
“Turn these assets into token-based variables for a design system I’ll use in Claude Code. Use this file’s approach, not its colours, and one font family. Ask me if anything is unclear.”
The agent drafted the token system. I reviewed it and fixed what didn’t fit, by hand and with follow-up prompts.
I started with what people already say about leave tools: public reviews, support pages and forums of similar products. AI collected the feedback; I checked the sources and grouped it.
“Shows you who else is off in the company to prevent booking off the same day.”
Requests over the balance can’t be blocked; the approver has to check it.
Pending requests can’t be edited; a declined one has to be sent again.
The core screens of the live prototype. Every state can be tried at Leaves.
Balances, requests and team in one place
See what you can take
I inverted each palette on one real screen, then fixed only what broke. Between themes only text colours flip: saturated fills stay, quiet status fills are transparent, so one value works on any surface. A System / Light / Dark switch sits in the sidebar.
Token names
Working on themes, I made the token system ready for more modes. Tokens are named by role and emphasis (low, medium, high, on-high), never by colour, so “light” and “dark” never appear in names.
Checked in both themes
White text in dark mode is softened to 14:1 to reduce glare. Primary, secondary and tertiary text keep the same steps as in light, and all stay above 4.5:1. Overlays darken the page in both themes.
Theme switch
The prototype follows the OS setting by default, so people get the theme they already use. Light and Dark are one click away in the sidebar, and the choice is remembered on the next visit.
Companies have 3 to 12+ leave types; showing all of them gets busy.
Decision: The 3–4 most used types on top, the rest behind “Other leave types”.
Why: Works for 3 types or 12+. Next: check that people find the rarer ones.
An open calendar saves clicks but makes the drawer tall.
Decision: Calendar open by default, with a sticky summary above the buttons.
Why: Fewer clicks, on short screens the drawer scrolls and the summary stays in view.
Cards read well on a phone, but rows can’t be compared.
Decision: A sideways-scrolling table with a pinned first column.
Why: Data stays comparable on every screen size.
Filter and sort controls everywhere add noise.
Decision: Icons appear on hover on desktop and stay visible on touch screens.
Next: Test whether people find them, an always-visible filter bar is the fallback.
People want to see who’s away, but leave types can be personal.
Decision: Teammates show only as “Off”, without the leave type.
Why: Enough to plan around, nothing private shared.