Three brands joined. Their interfaces didn't.
XLSMART was formed by merging XL Axiata and Smartfren. Overnight, one Digital Technology organization owned the web and app surfaces of XL, AXIS and Smartfren, plus a new XLSMART corporate brand, each with its own buttons, colors, spacing habits and naming.
As the company moved to consolidate products (a single XLSMART Store replacing three purchase flows, a redesigned xlsmart.co.id, a set of internal tools), every new screen was being drawn against a different reference. Designers rebuilt the same button per project. Developers received specs with hardcoded hex values that drifted from file to file.
The design team set out to build one system that new XLSMART products could start from on day one: semantic tokens for the foundations, components assembled from a small set of base parts, and documentation written for both designers and engineers.
The same control existed in several files with different sizes and states, so "the primary button" depended on which project you opened.
Colors and spacing were pasted as raw hex and pixel values, with no shared name an engineer could map to code.
Older components covered enabled, pressed and disabled only. Hover and keyboard focus were left to each developer to improvise.
Five commitments for every component
We wrote these on the cover of the library file so nobody could miss them. A component isn't published until it meets all five.
Auto Layout
Every frame resizes with its content, so a longer Bahasa label never breaks a button.
Variants
Size, hierarchy and state are properties, not separate components to hunt for.
Atomic
Private base parts such as _buttonBase and _avatarBase feed every public component.
Components
Published to the team library with usage guidelines next to each one.
Micro-interaction
Hover, pressed, focus and loading are designed and prototyped, not left for later.
Tokens with names engineers can read
The core decision was to stop naming colors by what they look like and start naming them by what they do. Every value in a component now points to a semantic Figma variable that maps one-to-one to a code token.
The same four-part pattern covers color/text/…, color/icon/…, color/border/…, spacing/padding/…, spacing/gap/… and border/radius/…. During migration we also found legacy names such as border/brand/subtle (#8EA5F0) living beside the new color/border/brand/subtle (#99B4FF), which is exactly the kind of drift the namespace is meant to end.
Spacing
A 4-point scale, split into padding and gap so inner and outer spacing can evolve separately.
2xs4pxxs8pxsm12pxmd16pxradius/full9999Title scale
Set in XLSMART Sans SemiBold. Line heights stay on the 4-point grid.
20 / 2818 / 2416 / 2414 / 20Rebuilding the button from one base
The button was the first component we rebuilt, because it touches every flow from checkout to internal tools. The legacy version worked, but it was a grid of hand-made variants. The new one is assembled from a single private base.
- Small 32, Medium 40, Large 48
- Primary, Secondary, Tertiary
- Hover and Focus were added late, file by file
- No loading state, so spinners were improvised per project
- xs 32, sm 40, md 48, lg 56, xl 64
- Primary, Secondary, Tertiary and a new Gradation hierarchy for campaign moments
- Default, Hover, Pressed, Focused, Disabled on every combination
- Slots for leading icon, trailing icon and spinner inside
_buttonBase
Try the component
A code rebuild of Button [New] using the values from the Figma variables. Change any property and the token table updates to show what the component resolves to.
Guidelines that answer real questions
Each guideline page walks through Anatomy, Variants, Usage, Emphasis, Size, Icons, Icon Only, Loading, Button Container and States. Wherever possible the examples come from XLSMART's own flows instead of generic placeholders.
The emphasis rule: one high-emphasis action per view. Secondary actions step down to outlined, and dismissive actions step down to text. Buttons inside a container keep a 16px gap, and size steps (32, 40, 48) follow the surrounding density rather than the importance of the action.
Kamu Ingin Tipe SIM Card Apa?
Pair one primary with one secondary, primary on the right, so the next step in the purchase flow is unmistakable.
Kamu Ingin Tipe SIM Card Apa?
Two primary buttons compete for attention, and the user has to read both labels to know which one moves them forward.
The avatar, specified like an API
For the avatar we wrote the documentation in the same shape engineers use: a props table. The Figma properties, the Storybook controls and the code props share the same names, so a handoff conversation starts from an agreed vocabulary.
| Prop | Values | Default | Notes |
|---|---|---|---|
size | xllgmdsmxs | xl | 48, 40, 32, 24 and 16px. Pick by surface density, not importance. |
shape | roundedsquare | rounded | Rounded for people, square for teams, apps and organizations. |
content | iconimagetext | text | Text falls back to initials when no photo is available. |
showStatus | truefalse | true | Toggles the _avatarStatus badge. |
status | onlinebusyaway | online | Uses semantic success, danger and warning colors. |
From parts to product moments
Once the base components were stable, we assembled them into patterns teams kept rebuilding: block messages for in-page feedback, empty states, and the package card that sells XLSMART products.
Block Message: info, warning and success share one layout and swap only semantic tokens.
You haven't created any reports yet
- Try refreshing the page
- Try searching the site
- Go to the homepage
Empty state: illustration, title, recovery suggestions, one action.
Rp180.000
Main Paket card: badge, Title scale, strikethrough price and the Gradation button for promotions.
A library that documents itself
Every component page in Figma follows the same order, and the same content is mirrored in Storybook with live controls and API docs. The library also keeps its own changelog, so teams can see what changed and when.
Audit
Collect every version of a component across XL, AXIS and Smartfren files and list the states each one covers.
Tokenize
Replace raw values with semantic variables and flag legacy names for migration.
Build the base
Create the private _base part with slots, then publish the variant set on top of it.
Document & log
Write the guideline page, sync Storybook, and record the change in the changelog.
v0.1 is a foundation, not a finish line
The system is still in progress. What exists today is enough for new XLSMART products to start from shared tokens and components instead of a blank file.
button variants generated from one base component, with full state coverage including focus and loading.
component families in the library so far (Button, Avatar, Block Message, Badge, Accordion), plus the Iconography set.
naming between Figma variables, Storybook controls and code props, so handoff starts from a shared vocabulary.
What I'd carry into the next version
Retiring legacy tokens and the old Button set matters as much as shipping new components. Two "primary buttons" in the library recreate the problem we started with.
Using the real eSIM picker as the Do/Don't example got faster agreement from product teams than any abstract diagram.
Designing focus and loading up front removed a whole class of questions from developer handoff.
Form inputs, navigation, and a theming layer so XL, AXIS and Smartfren sub-brands can sit on the same semantic tokens.