Design system

My Tailor Library

A component library that developers can read. The My Tailor ERP started from a UI kit that worked for designers, but its names meant little to developers. I cleaned up the library so that every name in Figma matches a name in code, and so that every screen links back to one source.

Client
The My Tailor
Role
Product designer
Scope
Audit, naming, docs
Timeline
2026 · Cleaned up
Components from the library in use: an orders-on-time ring chart at 75%, a date picker, form fields with an error state, tabs, a stepper, a progress bar, navigation items, a toast, icons, buttons, status badges, toggles and checkboxes, avatars and pagination.

01 Foundations

Three foundations under every component.

Colour, type and icons come first. Every component uses them, so their names set the pattern for everything else.

Top of the colour page: brand, base and black swatches with their token names.
Colour55 colour and gradient styles
Type36 text styles in Inter and Roboto Mono
Grid of utility icons such as home, settings, calendar, search and trash.
Icons294 utility icons in one Icon set

02 Colour system

Every colour name has three parts.

The same pattern covers the whole palette, so developers can guess a name before they look it up.

  1. Scales cover brand, base and neutral colours, plus one scale for each hue.
  2. Steps run from 0, the darkest, to 5 or 6, the lightest.
  3. Usage notes, such as "Use for border", moved out of the name and into the description.
  4. Gradients follow the same rule: gradient/dark-green.
Full colour page: swatches for every colour scale and gradient, each labelled with its token name and hex value.
The page scrolls through every swatch. Hover to pause.

03 Typography

One scale for interface text, one for numbers.

Inter sets all interface text. Roboto Mono sets prices and other numbers, so digits line up in tables. Each size comes in regular, semibold and bold.

text/display/boldInter Bold · 48 / 48
Order 1234
text/headline/xl-semiboldInter Semi Bold · 30 / 36
Manage Sales Order
text/headline/lg-semiboldInter Semi Bold · 24 / 32
Customer Information
text/headline/sm-semiboldInter Semi Bold · 18 / 28
Quick Update Progress
text/body/lgInter Regular · 16 / 24
Add notes about the progress update
text/body/baseInter Regular · 14 / 20
Hotel name, room number, and address
text/body/sm-semiboldInter Semi Bold · 12 / 16
Date Created
text/mono/headline-baseRoboto Mono Regular · 20 / 28
595.00 −123.00 472.00
text/mono/body-smRoboto Mono Regular · 12 / 16
30-3-2026 · 3:00 PM

04 Components

About 75 components, each with a clear API.

Button component variants.

Button 345 variants

Primary action control. The variant matrix covers colour, fill type, size and state.

colorsizetypestatelabelshowIconLeftshowIconRightshowSpinnershowSocialIcon
Input component variants.

Input 24 variants

Single-line text field with an optional label, help text, add-ons and error message.

sizestateshowLabelshowPlaceholdershowHelpTextshowAddonLeftshowErrorMessage
Modal component variants.

Modal 7 variants

Dialog shown over the page. hasSlot=true places custom content in the slot.

orientationsizehasSlotshowHeadingshowBodyTextshowPrimaryButtonshowCloseIconslot
Tabs component variants.

Tabs 9 variants

Row of TabItems. Turn showTabN on or off to change the number of tabs.

sizetypeshowTab2showTab3showTab4showTab5showTab6
Step component variants.

Step 36 variants

One step in a stepper. side=end hides the connector after the last step.

sizeorientationsidestateshowTitleshowDescriptionshowText
SelectMenu component variants.

SelectMenu 21 variants

Dropdown menu of SelectOptions, with optional search and clear filters.

sizetypeshowSearchshowClearFilters
Badge component variants.

Badge 36 variants

Small status or category label. color sets the meaning and size sets the density.

colorsizeshowLabelshowIconLeftshowIndicatorLeftshowAvatarshowCloseIcon
Avatar component variants.

Avatar 18 variants

User photo, initials or icon in six sizes.

typesizeshowIndicator

05 Interaction states

Every state is a named variant.

Interactive components share one state property, so a developer can map each variant to a CSS state or a prop.

Input component in four sizes and six states: default, hover, active, focused, error with a message, and disabled.

06 Naming for developers

From designer shorthand to code names.

Each row is a real change from the cleanup.

KindBeforeAfterRule
ComponentbuttonButtonPascalCase, like a React component
ComponentDropdown with SearchDropdownSearchNo spaces or filler words
Componentselection option (second copy)SelectOptionBasicEvery name is unique
PropertyProperty 1 = Default | Expandedstate = default | expandedName says what it controls
Propertyicon leftshowIconLeftOn/off properties start with show
PropertyLeft ColoumnleftColumncamelCase, spelled correctly
Valueoff - disabledoff-disabledLowercase with hyphens
ValueSlot Present = Default | YeshasSlot = false | trueTrue or false for on/off variants
LayerFrame 12rowDescribes what the layer does
Stylecolors/Grey-4 (border)color/grey/4Type / scale / step; usage in the description

07 The system in numbers

One set of rules from tokens to layers.

A developer who learns one component can read them all.

~75
components, each named like its code component and documented in Dev Mode
~250
properties in camelCase, ready to map to component props
~950
variant values in lowercase with hyphens, ready to use as prop values
~9,000
layers inside components, each named for the job it does
108
colour, text and effect styles that follow one token pattern
100%
of properties named for what they control

08 Built to grow

A library that scales without new rules.

I

One source for every screen

The library publishes as a single source. All 1,743 component instances in the product file can link to it, so one change updates every screen.

II

Ready for variables

The token pattern maps directly to variables. Light and dark modes, spacing and radius tokens can follow without new names.

III

Rules for every new component

New components follow the same rules: a PascalCase name, camelCase properties and a description in Dev Mode, so the library can grow without losing its consistency.