Leave Management Tool

A leave feature where employees see what they can take, request it without mistakes and follow every decision.

  • AI-first
  • Design system in code
  • Live, adaptive prototype
  • Light & dark theme
  • Accessibility built in
Go to live prototype
Leave page in the light theme with the team calendar in the dark theme on top

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

Users
Employees planning time off
Problem
Leave tools make people guess: no balance preview, no view of who’s off, no easy way to change upcoming leave.
Defining Success
Plan time off without asking HR or a manager: check the balance, pick dates, see the result before sending.
My role
Senior Product Designer. Research, UX, UI, design system and the coded prototype, end to end.
Approach
AI-first. AI drafted research, tokens, components and code; I reviewed every step and made the decisions.

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.

Public reviews of leave tools: what people like and what frustrates them

AI-first workflow

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.

  1. 01Research

    “Read this brief. Find user feedback on this feature in similar products: their problems and what they want from it.”

    — My prompt to Claude

    Claude grouped feedback from 10+ HR tools. I checked the sources and turned them into the needs behind the design.

  2. 02Kick-off in Claude Code

    “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.”

    — My prompt to Claude Code

    Claude built in small stages, plan first. I reviewed each stage on desktop, tablet and phone and fixed what didn’t match.

  3. 03Review at a checkpoint

    “Keep the table on phones and let it scroll sideways, don’t turn it into cards.”

    — My review note

    The first build turned the table into cards on phones. I kept a sideways-scrolling table with a pinned first column.

  4. 04Design system

    “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.”

    — My prompt to the Figma AI agent

    The agent drafted the token system. I reviewed it and fixed what didn’t fit, by hand and with follow-up prompts.

Research

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.

  1. 01Public reviews

    “Shows you who else is off in the company to prevent booking off the same day.”

    — Leave tool user, public review
    Finding
    People value seeing who’s away before booking.
    Impact on the design
    Coworkers off in the request, teammates as “Off” in the calendar, details kept private.
  2. 02Support forums

    Requests over the balance can’t be blocked; the approver has to check it.

    — HR tool support forum, paraphrased
    Finding
    Mistakes are caught late, by the approver.
    Impact on the design
    Working days and the balance after approval counted live; over-balance and overlaps blocked, each with a one-click fix.
  3. 03Competitor tools

    Pending requests can’t be edited; a declined one has to be sent again.

    — Help pages of a popular HR tool, paraphrased
    Finding
    Changing plans means starting over.
    Impact on the design
    Edit or delete from the row; “Pick new dates” after a decline carries the type and note over.

Final solution

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

Leave page: balance cards and the requests table, with a declined request and its reason
Other types one click away
Upcoming, Past and All in one table
Decline reason under the row, with Pick new dates
New request: dates picked, working days and balance after approval, one coworker off
Working days and balance after approval, counted live
Coworkers off on the same days
New request: overlapping dates flagged with the existing request and the nearest free dates
Overlap caught before sending, with the nearest free dates
Team calendar: own requests with status, teammates shown only as Off
Pick which coworkers to show
Your requests with their status
Teammates show only as “Off”, no leave type
Pick new dates after a decline: reason on top, type and note carried over
Decline reason stays on top
Type and note carried over
Requests table with the row menu open: Edit and Delete
Edit or delete right from the row

Light and dark themes

Dark mode as a design system audit

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

    Names describe the role

    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

    Same hierarchy, readable contrast

    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

    System by default

    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.

Tokens renamed by role: border/light to border/low, error/light to background/error-low, content/invert to content/on-high. Text contrast in light theme 17.4, 9.7 and 4.8 to 1; in dark theme 14.1, 9.9 and 5.0 to 1, all above WCAG AA.

Trade-offs

  • All leave types vs a calm page

    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.

  • Calendar always visible vs a short drawer

    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.

  • Table vs cards on phones

    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.

  • Clean table vs visible filters

    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.

  • Team visibility vs privacy

    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.

Key takeaways

  • Show the result before the request. Most leave mistakes come from guessing. Showing working days and the balance after approval before sending removes the guesswork and most of the approver’s corrections.
  • Team context matters more than team details. People need to know who’s away, not why. Showing teammates as “Off” is enough to plan around and keeps personal leave private.
  • A request is a process, not a form. Plans change, so editing, deleting and picking new dates after a decline matter as much as the first request.