
Button 345 variants
Primary action control. The variant matrix covers colour, fill type, size and state.
colorsizetypestatelabelshowIconLeftshowIconRightshowSpinnershowSocialIconDesign system
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.
01 Foundations
Colour, type and icons come first. Every component uses them, so their names set the pattern for everything else.


Icon set02 Colour system
The same pattern covers the whole palette, so developers can guess a name before they look it up.
0, the darkest, to 5 or 6, the lightest.gradient/dark-green.
03 Typography
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.
04 Components

Button 345 variantsPrimary action control. The variant matrix covers colour, fill type, size and state.
colorsizetypestatelabelshowIconLeftshowIconRightshowSpinnershowSocialIcon
Input 24 variantsSingle-line text field with an optional label, help text, add-ons and error message.
sizestateshowLabelshowPlaceholdershowHelpTextshowAddonLeftshowErrorMessage
Modal 7 variantsDialog shown over the page. hasSlot=true places custom content in the slot.
orientationsizehasSlotshowHeadingshowBodyTextshowPrimaryButtonshowCloseIconslot
Tabs 9 variantsRow of TabItems. Turn showTabN on or off to change the number of tabs.
sizetypeshowTab2showTab3showTab4showTab5showTab6
Step 36 variantsOne step in a stepper. side=end hides the connector after the last step.
sizeorientationsidestateshowTitleshowDescriptionshowText
SelectMenu 21 variantsDropdown menu of SelectOptions, with optional search and clear filters.
sizetypeshowSearchshowClearFilters
Badge 36 variantsSmall status or category label. color sets the meaning and size sets the density.
colorsizeshowLabelshowIconLeftshowIndicatorLeftshowAvatarshowCloseIconAvatar 18 variantsUser photo, initials or icon in six sizes.
typesizeshowIndicator05 Interaction states
Interactive components share one state property, so a developer can map
each variant to a CSS state or a prop.

06 Naming for developers
Each row is a real change from the cleanup.
| Kind | Before | After | Rule |
|---|---|---|---|
| Component | Button | PascalCase, like a React component | |
| Component | DropdownSearch | No spaces or filler words | |
| Component | SelectOptionBasic | Every name is unique | |
| Property | state = default | expanded | Name says what it controls | |
| Property | showIconLeft | On/off properties start with show | |
| Property | leftColumn | camelCase, spelled correctly | |
| Value | off-disabled | Lowercase with hyphens | |
| Value | hasSlot = false | true | True or false for on/off variants | |
| Layer | row | Describes what the layer does | |
| Style | color/grey/4 | Type / scale / step; usage in the description |
07 The system in numbers
A developer who learns one component can read them all.
08 Built to grow
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.
The token pattern maps directly to variables. Light and dark modes, spacing and radius tokens can follow without new names.
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.