Tabs that stack

Avatars is an avatar editor, and almost everything you do in it happens in one place: a bar at the bottom of the screen. This writing is about the bar.
Every choice you make, from the shape of a face to the shade of a hat, is a tab in that bar, or in a bar that opens on top of it. Every. Single. One.
So the bar carries the whole product. It has to tell you where you are, what you can change next and how to get back, all without ever covering the avatar you’re changing. Simply put, the bar is the product. This piece is about how it’s laid out, how bars stack on each other, and the motion that holds the whole stack together.
The bar at rest
The editor opens on a single dark bar: undo and redo sitting in a little recessed well, then Face, Hair, Outfit and Frame, then a menu for downloading and starting over. Nothing is selected yet. Undo and redo are dimmed because, well, there’s nothing to undo. The last tab used to be called Color. It’s Frame now, because it colours what the avatar sits in, and every other bar already has a Colour of its own. Two Colours on one screen? That’s how you confuse people.
Selection is one white shape, not a style painted on each tab. Open Hair and the shape appears behind it. Move to Face and it slides across with a small spring, instead of vanishing from one tab and popping up on the next. The bar it opens has its own × at the end, and it works the moment it appears. Tap it while the bar is still arriving and the bar goes straight back, no waiting for the animation to finish. Tapping the selected tab again closes it too, so the same control opens and closes.
The menu behaves like a bar too. It doesn’t float over the main bar like a dropdown from 2012. It takes the bar’s place, as another dark bar holding Download, Copy link and Start over, with its own × to bring the tabs back.
One bar in focus
Choosing a tab opens its bar above. Every bar is laid out left to right in three parts. At the left is whatever gives the row its context and must never scroll away: None, the switch between an outfit’s two garments, and on a colour bar, the ring and the wheel. In the middle is the row itself, the options for the tab you’re on. At the right are tiles for anything that needs a bar of its own, like Colour, and after a short divider, the bar’s own two buttons, expand and close. When a category has more than one tab (Hair has Style and Headwear), they sit in a small pill just above the bar, not inside it, so the bar only ever holds things you can pick. The pill is a grey track with the chosen tab white on it, the same white the chosen tab wears on the main bar, and switching tabs slides that white chip across instead of just making it appear on the other side.
Expand and close sit together and look alike because they do the same kind of job: they change the bar, not the avatar. Expand is four arrows pointing outward, close is the ×, both drawn at exactly the same size and line weight, and neither one ever moves or scrolls. Ever.
Left, middle and right
The three parts of a bar aren’t really a layout. They’re a rule about what a control does. What sits in the middle gets picked. What sits at the left changes what there is to pick from. What sits at the right changes everything on the row at once, or takes you away from it.
The middle is the options: the tops, the hairstyles, the colours. Each one is the same kind of choice as its neighbours, and picking one changes the avatar. It’s the only part of the bar that ever gets trimmed or scrolled, because it’s the only part that grows.
The left holds the controls that change the row itself. None takes the thing away altogether, so there’s nothing left for the row to apply to. The switch on a two-piece outfit decides which garment the row is talking about. On a colour bar, the ring switches between colour groups: the palette of hues, or the shades of the colour you’re wearing. Pressing any of these doesn’t pick an option, it replaces the options. That’s exactly why they sit outside the row and never scroll with it. A control that changes the row can’t be part of what it changes. Think about it.
The right holds the controls that act on the whole row, or lead away from it. Colour on the Outfit bar is the clearest example. It doesn’t pick a top, it recolours every top in the row, because the row shows each top in the colour you’re wearing. Fabric does the same thing with cloth. After the divider come the bar’s own two buttons, expand and close, which change the bar rather than anything on it. The right is the exit: to a deeper bar, to every option at once, or back down the stack.
Which is why a colour bar has two colour buttons at its left that look nothing alike. The ring is a group, a small set of colours. Press it and it swaps which group the row shows, right there in place, and the ring turns many-coloured to say “press me again to go back”. The rainbow wheel is not a group. It’s every colour, and it doesn’t touch the row at all. It grows the bar into the full grid, twelve hues from pale to deep plus a row of greys, and picking from it closes the grid and leaves the row exactly as it was, wearing the new choice. One narrows what you’re looking at. The other opens everything.
Every bar is 64px tall, whatever it holds. Tabs, options, colours and tiles all live in the same height, so as bars open and close, the stack reads as one object changing shape, not a pile of panels thrown on top of each other.
The bar on top is always the one in focus. Everything else in the stack is just there to tell you where you are.
Switching tabs in place
Moving between tabs in the same bar isn’t a new level, so nothing grows or sinks. The bar stays put and its width eases to fit the new row over 150ms, while the new options cross in from a quarter opacity. When putting on a hat brings in a Colour tile, the bar widens to make room for it instead of jumping.
The option you’ve chosen sits on a soft grey square, not inside a dark outline. The row stays calm and the choice still reads at a glance. In rows where colour matters (hairstyles, facial hair, hats, tops) only the chosen option gets drawn in its colour. Everything else stays grey, so the colour itself points at what you picked.
Tabs or tiles
A category’s tabs switch what its bar shows; they don’t take you anywhere. That works for Hair, where Style and Headwear are two lists of the same kind. It doesn’t work for Face. A face is ten parts (shape, skin, facial hair, eyes, ears, nose, nose piece, mouth, chin and glasses), each with its own options, and ten tabs in a pill stop reading as a switch. On a phone they literally ran off the screen.
So Face has no tabs. Its bar is a row of tiles, one per part. A tile opens that part’s own bar on top, and closing that bar brings you right back to the row. The pill is kept for what it does best: two or three views of one thing. Not ten.
The row doesn’t fit either, so it scrolls. Where it stopped used to be chosen by hand, just after Nose. Now it follows the same rule as every other bar: the bar keeps to one width, and whatever is past that width slides under a fade at the edge. Six parts show, the seventh is already dissolving, and the rest are a short scroll away, or one press of expand.
A few smaller rules came along with it. A tile for something you can switch off, like facial hair when there’s none, stays faded while it’s off. Every colour wheel is the same wheel, including the button that opens every colour, so a wheel always means colour. No exceptions. Colour tiles are called Colour, except the one for skin on the Face bar, which says Skin, because a face has more than one colour in it. In the three-quarter view, where every head comes with its own features, Face is just two tiles: Skin and Head. And tapping a part of the avatar itself skips the row entirely and opens that part’s bar. Pointing at a part first washes it with a little blue over its own colours, instead of fading it, so you can see what a tap will open without the avatar looking switched off.
Tiles also come and go with what they apply to. An outfit drawn with a collar trim or a pattern (stripes, checks) brings colour tiles for them to the Outfit bar, Trim and Pattern, and takes them away when you pick a plain top. Both start on As drawn, the rainbow wheel, so the outfit opens in the colours it was drawn in. Choose a colour and the wheel turns solid. The tile is called Pattern, not Stripes, because the same tile colours the checks on a shirt. Glasses bring a Lenses tile to the Face row the same way, starting clear, and the eye patch, which has no lenses (obviously), doesn’t.
Some choices aren’t a colour at all. A top can take a fabric. A simple fabric is one colour on white, so it keeps the Colour tile. A fabric with no single colour to pick gives up its Colour tile for a Colourway tile, whose options are the cloth itself, not hex swatches. You choose the shirt, not the numbers behind it.
Same thing goes for an outfit’s plain colours. Its Colour bar doesn’t show dots. It shows the top itself in each colour, so you see the blue shirt before you pick the blue shirt. Headwear works the same way, and a hat whose colours are part of the hat has no Colour tile at all. Both bars start like every colour bar, with the ring, the wheel and, for a top, the Fabric tile at the left, where they stay put while the shirts scroll past.
The ring is the one control on a colour bar that isn’t a colour. It’s a small ring of dots in shades of the colour you’re wearing. Press it and the row becomes those shades, light to dark, while the ring itself turns many-coloured to say it’ll take you back. The brightness you pick there is remembered. Go back to the colours and every one of them shows at that brightness, so choosing a deep green and then changing your mind about green doesn’t throw the depth away. You liked deep? You keep deep.
Growing in place
A tab that opens a new level works differently. The new bar doesn’t slide in from anywhere, it grows right where it’s going to sit. It starts as a chip the size of the tile you pressed, exactly where that tile was, so Colour grows out of the Colour tile. It reaches its full 64px of height while it’s still narrow, then widens out to its full row. Height first, then width, so it never looks squashed or stretched on the way.
Its contents wait until it’s done widening. Then each option slides up 10px as it fades in, 12ms after the one before it, so the row fills from left to right. If the category has tabs, their pill arrives last, once there’s actually a bar for it to sit on. Bringing up a new bar was later tightened to 0.8× its original length, every step together (the fold, the slide, the grow, the options and the tabs), so a full open now takes about half a second.
Until it starts to grow, the new bar isn’t on screen at all. An earlier version put its surface down the moment you tapped, at two thirds of its size, and left it sitting there as an empty slab over the other bars while the stack made room. Going from Outfit to its colour, that blank shape sat on top of the outfits for almost half a second before anything happened. Half a second doesn’t sound like much until you’re the one staring at it. Now nothing new appears until there’s a place for it, and when it does appear, it comes out of the tile you pressed.
Another earlier version slid each new bar up from behind the one it came from. It read well as a stack, but every opening had two bars moving at once. A bar that grows where it’s going to stay says the same thing, only simpler: this is the bar you’re on now.
The stack makes room
When a third bar opens, say Colour from inside Hair, the stack makes room one bar at a time. First, the main bar folds away into a thin tray. Then the Hair bar slides down into the space it left. Only then does Colour grow in above. Each move finishes before the next one begins, so there are never two bars moving at once, and your eye can follow every single step.
Draw order matters here more than you’d think. A bar moving into the stack drops behind the others straight away. A bar coming back out, like the main bar when you close Hair, stays behind the bar above it until it has landed, so it always comes out from under, never over.
Muting what’s underneath
The bar under the top one stays fully drawn, so you can see where you came from and step back with a single tap on any of its tabs. But it shouldn’t compete with the bar on top. One bar in focus, remember?
Lowering its opacity would have been the easy way out, but a faded bar reads as disabled, or as something that’s still loading. Instead it’s muted in several small ways at once: its art loses its colour and some contrast and gets a little lighter, its labels turn pale, and its shadow thins down to a hairline. The one tile that leads to the bar above, Colour in this case, keeps its colour and its grey backing, so you can follow the thread from one bar to the next.
The main bar becomes a tray: a grey strip 34px tall, inset from both ends, peeking 9px out from under the bar above. It isn’t something to read, it’s just a reminder that the floor is still there. Only one tray ever shows, so the stack never turns into a deck of cards.
Closing
Closing plays the opening backwards, a little faster. The bar sinks back as it fades, shrinking slightly with a 2px blur, over 170ms with an ease-out. Only then does the stack move back, one bar at a time: Hair rises to its place, and the main bar unfolds from the tray. Exits are quicker than entrances, and that’s on purpose. Once you’ve decided to leave, the interface shouldn’t make you sit and watch.
Long rows and small screens
Some rows are long. Like, really long. There are fifty-two heads in the three-quarter view and more than forty tops. A long row doesn’t stretch across the screen. Every bar keeps to about one width, the width of the Outfit bar showing nine things in all: None, four tops, Colour, Fabric, expand and close. It’s the width that counts, not the number, so a row of small things shows more of them before it hits that width; a colour bar fits eight or nine swatches. A row that already fits is left alone, no fade at all.
Only the middle ever gets trimmed. What’s at the left and what’s at the right always show, so the row scrolls between two fixed ends. The None tile is the clearest example: it sits at the far left of the Outfit bar, the same 8px from the bar’s edge on all three sides, with its corner cut to match the bar’s, and forty tops pass right beside it without moving it an inch.
Where the row is cut, it doesn’t just stop. It dissolves. The edge is a wide, even fade that also blurs what’s under it, so the last top goes soft before it goes white. A gradient alone looked like a white strip someone laid over the row. The fade at the right is there from the start and slides out to the right when you reach the end of the row. The one at the left only shows up once you’ve scrolled by hand, sliding in from the left, because until then nothing has gone past that edge.
The row moves on its own in one case only: when what’s chosen changes. Pick a top that’s half under the fade, or one from the panel of everything, and the row glides to it and lands with a whole tile at its left edge, never half of one. Otherwise it stays exactly where you left it. Picking a colour doesn’t drag the row back to the shirt you’re wearing, and closing the bar and opening it again brings you back to where you were looking, not to where the selection is. Your scroll is yours.
On a phone, the screen sets the width instead, and the row still scrolls on its own between the two fixed ends, so None and the close button are always where you left them. Every bar opens already scrolled to what’s selected. A bar that slides down into the stack scrolls to the tile that leads up, so the thread stays in view. A category’s pill of tabs scrolls the same way when it’s wider than the screen, instead of running off the edge.
The Outfit bar
Outfit is the busiest bar of them all, and most of the rules above were settled right here. From the left: None, on its own grey square with a short divider after it, so taking the clothes off never sits among the clothes. Then the tops, more than forty of them. Then the Colour tile, which shows the colour you’re wearing, and Fabric, faded while the top is plain. Then expand and the ×.
The tops are the one row that breaks the grey-until-chosen rule. Every top is drawn in the same blue, filling its tile, and framed to one size, so a camisole and a puffer jacket sit at the same weight. With forty shapes in a row, colour is how you tell them apart. The choice itself is still marked by the grey square behind it.
This is the row the blur was made for. Four tops sit clear and the fifth is already going soft under the fade at the right edge, which tells you the row goes on, no scrollbar, no count. Scroll, and a matching blur slides in at the left, because now something has gone past that edge too. Reach the end and the right one slides away. Pick a top that’s half under the blur and the row glides until the top is whole. Change its colour and the row stays exactly where it was.
Some outfits are two garments: a shirt under dungarees, or a tee under an open cardigan. Each garment has its own colour, so a small switch between the two pieces shows up at the bar’s left, and it decides which garment the Colour tile and its colour bar are for. The switch is context, so it never scrolls. On a phone, where the row runs right up to the screen’s edges, the switch and the colour ring are what stay put while the tops slide past.
Everything at once
Expand is for when scrolling is the wrong tool for the job. Press it and the bar itself grows into a panel: it widens from where it sits and rises until every option is showing, ten across, over its own place and the place of the bar beneath it. Nothing new arrives on screen. The bar you were on becomes the panel. On a row of options it shows every option; on a bar of tiles, like Face, every tile; on a colour bar, every colour.
While the panel is open, the bar beneath is put away completely, not left peeking out at the sides. Two layers of options behind each other were just hard to read. All that’s left of it is a thin tab under the panel’s lower edge, grey if it’s the dark main bar and white if it’s a white one, the same tray that sits under any other bar. It says the floor is still there.
Every colour works the same way. The wheel opens a grid of colours, twelve hues from pale to deep plus a row of greys, as the same panel growing out of the Colour bar. Its one button sits outside the panel, beside the colours and halfway up them, so it never takes a cell’s place. It started out as four arrows pointing inward, expand played backwards, which read as “show fewer” and left you guessing where fewer would leave you. Now it’s an ×, on every panel. It closes the panel, and closing a panel always lands you on the bar it grew from. Picking anything in a panel closes it too, and the bar comes back wearing your choice.
The same manners hold lower down. The bar under the top one is muted, but its options still work. Point at one and it shows in its real colour; pick it and it’s chosen, and the bar above closes in the same move.
Clicking away
A click anywhere outside the editor closes whatever is on top: the panel if one is open, otherwise the top bar. It does that once. Clicking away again closes nothing more, no matter how many times you do it, until you’ve used the editor again. An earlier version closed a level with every click, and two stray taps on the page could undo three steps of getting somewhere. Not fun. The avatar doesn’t count as outside, by the way: tapping a part of it still opens that part’s bar.
A colour is the whole shirt
A patterned shirt isn’t one colour, so its Colour bar doesn’t offer hex codes. Each tile is a colourway: the base, the collar, the pattern and the trim, all chosen together as one shirt. The tiles show the garment alone, framed tight round its own outline, so the shirts sit side by side like clothes on a rail. The fabric tile and the colour wheel still close the bar for anyone who wants to go further.
When motion is turned off
With reduced motion on, nothing rises, slides, scales or blurs. Bars fade in over 140ms and out over 110ms, so a change is still visible without any movement. Undo and redo, which only live on the main bar, also work from the keyboard wherever you are in the stack.
One rule, told by motion
Every decision here serves the same rule: one bar in focus, and the rest of the stack telling you where you are. The motion isn’t decoration sitting on top of that rule. It’s how the stack explains itself. A bar grows where it belongs and goes back there when it closes. The bar you came from steps aside instead of vanishing. The bars move one at a time. And nothing on screen ever jumps.
One bar in focus. Everything else is just telling you where you are. This right here, friends, is how tabs stack.