Skip to content

Blog

Ten versions of a home page: redesigning chabulab.com with an AI agent

By . Published , updated . 12 min read. Đọc bằng tiếng Việt

TL;DR

The owner reviewed each version in a line or two (too busy, still too simple, metal too soft) and an AI agent turned each review into a cause, a fix and a check. Ten versions in three days. The page is a brushed metal plate made from noise, four enamel tiles of nine layers each, and light that follows the pointer. When the owner said a change made things worse, a second model explained why. Every rule that mattered became an automated check. The look now lives in shared packages that React and Svelte pages render the same way, because the first attempt at one shared look stopped halfway. An iPhone showed what the laptop could not: a rough flight, pieces that arrived too early, and a hint that told people to use a mouse.

ChabuLab is a small studio run by one person with AI coding agents. In November 2026 the home page, chabulab.com, was redesigned in three days and ten versions, and it went live on 8 November. The owner reviewed every version on a phone and answered in a line or two of Vietnamese; the agent built, measured and changed the page.

Most posts about a redesign show a before and an after. This one lets you touch the pieces. Each figure below is the real technique running in your browser: switch layers off, pull a tile apart, move the light. On a phone, tap and drag.

Why start again?

The first draft was a "studio desk": photo-like objects on beige paper, each one standing for a product. The owner rejected it outright and asked for a new design from the start. It was busy, and nothing on it said what the studio makes.

The new idea came from the studio's new logo, a C cut into four pieces: apps, games, tools and learning. Four pieces would tell the story. The page opens on the whole C; scrolling takes it apart, each chapter shows one piece in the material of its hub, and the pieces come back together before the footer.

Scrub through the ten versions. Under each one is what the owner asked for at that point and what changed.

Drag the slider or use the arrows. The seventh stop is GPT's mockup, not a build. Open this figure on its own

What happens when the agent misreads the feedback?

The owner's reviews were short on purpose: a director's verdict, not a specification. The agent's job was to turn each one into a cause. Sometimes it got the cause wrong.

After the black version the owner found the pointer-lit borders to be the right effect, but not yet subtle enough. The agent took that to mean not rich enough, and added a slowly turning four-colour halo behind the C and a coloured lamp over each chapter. The owner judged that both additions had made the page worse, and asked for a second opinion from GPT.

So the agent sent screenshots and the CSS to a second model, GPT, and asked why it was worse, not how to fix it. The diagnosis was useful precisely because it was specific: the four colours blurred into each other and into a grey-violet smoke, the chapter lamps tinted the text as well as the drawings, and nothing anywhere looked actually lit. The fix followed from that: no coloured light at all. Depth comes from light and dark on neutral surfaces; colour lives only on the four pieces. That became a written rule in the design notes, so no later change brings the fog back.

The pattern repeated. When the page still felt too simple to the owner, the agent went back to GPT for a new idea, with 18 images of the studio's products. It came back as "the Studio Instrument": real product screens inside the C, a brushed metal plate, screws, display stands. The agent advised dropping the metal plate. The owner kept exactly that, and asked for it to be built properly. The screens inside the logo were colourful but carried too much detail, so each tile got one small glimpse of its hub instead.

The lesson for an agent is plain: an owner's taste is the input, not an obstacle. The agent's opinion on the metal was wrong, and the metal became the page's signature.

How do you make brushed metal from noise?

Building it properly turned out to be the hard part. The owner found the first plate low in quality: soft, with no metallic sheen. Both problems had a measurable cause.

The plate is a tile drawn by a short script: random noise smeared along a slight slope, so it becomes long hairlines, plus a few brighter scratches and broad bands. The smearing wraps around the tile's edges, so copies of the tile join with no seam. Try the layers:

Switch the layers and the blend mode. The comparison below is a real screenshot of the first plate and the current one. Open this figure on its own

Blurry was resolution. The first tile was 512 pixels shown at 512 CSS pixels, so on a Retina screen each pixel of texture covers two pixels of the display. The tile is now drawn at 1024 pixels and shown at 512.

No metallic sheen was the way light was added. A band of light laid on top of the metal greys the hairlines out, like fog in front of it. Real brushed metal does the opposite: light runs across the grain and the hairlines themselves brighten. The CSS blend mode color-dodge does that. It brightens what is already there in proportion to the light above it, so the hairlines light up inside the bands and stay dark between them.

A textured background makes contrast harder to promise, because the same text sits on darker and lighter streaks. So the check does not use the plate's average colour. It takes a screenshot, finds the brightest 5% of the pixels behind each block of text and computes the contrast ratio against those. The scroll hint failed that check on a phone at 3.30:1, below the 4.5:1 that the accessibility guidelines ask for, and moved to a lighter grey that measures 5.59:1.

What is a tile made of?

Each piece of the C is an enamel tile in a polished rim: nine layers of SVG, each doing one small job. Pull one apart:

Drag Pull apart. Hover a layer's name to find it, click to turn it off; hover the tile when it is together. Open this figure on its own

Two details came from bugs, not from taste:

  • The tile lifts under the pointer, 8 pixels up and 2% larger, with a longer, softer shadow. If the shape that catches the pointer moved with the tile, the tile would slide out from under the pointer, drop, and flicker. So the shadow is a separate shape that never moves, and it is the hover area.
  • 2%, not 3%. At 3% a lifted tile could slide under its neighbour, because SVG has no z-index: whatever is drawn later is on top.

How does the light follow the pointer?

The owner asked for borders that light up near the pointer, then for the empty pieces of the C to catch the same light, then for both kinds of button to behave the same way while still looking different. Move the pointer around:

Turn on Show the light's reach to see where a border starts to catch the light. Open this figure on its own
  • Borders: each lit element gets a thin ring painted with a radial gradient centred on the pointer, masked so only the 1-pixel border shows. Its strength falls from full when the pointer is on the element to zero at 140 pixels away. Small buttons use a 90-pixel light, or the whole border lights at once.
  • The empty seats are SVG, which has its own coordinates. The page converts the pointer's screen position into the drawing's units (getScreenCTM().inverse()) and moves the centre of a gradient there.
  • Buttons: both lift 1 pixel, a highlight follows the pointer across the face and the near edge catches light; pressed, they sink 1 pixel. The face tells them apart: the main action is lit silver, the other is glass.
  • Who gets it: only a mouse or trackpad. Touch screens get the same glass without the light, and the reduced-motion setting keeps everything still.

How do you know a change worked?

The owner should not be the test. Before any version was shown, the agent built the page, took screenshots at phone, tablet and laptop widths in both languages, and ran a script of checks against the real page in a browser. It had 18 checks on the first day and 59 by the time the page went live.

The rule for a new check: it only counts after it has been seen failing. A few examples:

Complaint or rule What the check measures Seen failing first
The C sits level with the text beside it Gap between the top of the C and the heading beside it, after scrolling to each chapter 58 to 161 px on the old build; 8 px now, the width of the rim
The main button fits the first screen of a phone Bottom of the button at 390 × 844, both languages At 892 px, below the screen
Drawings stay inside the C's hollow Distance from the centre to the farthest point of each drawing 116 and 104 against a limit of 94
Text readable on the plate Contrast against the brightest 5% of plate pixels 3.30:1 on the scroll hint

The checks also caught their own mistakes. The alignment check first measured the wrong thing, because smooth scrolling and the pieces' arrival animation were still moving when it read the positions. It now jumps without animation and waits three frames.

Where did it go wrong?

On the first day, when the owner picked the new logo to replace the old ribbon on the home page, the agent put both straight onto the live site while the redesign was still under review. The owner chose to keep them. The rule that came out of it is now part of how the studio works: a design under review stays on a branch and a private preview, and it goes live only on the owner's explicit approval. This redesign stayed on its branch until that approval came.

What did the phone show that the laptop did not?

All those checks ran before the owner looked, and most of them ran on a desktop browser. The last round of review happened on an iPhone, and it found three things the checks had missed.

The flight was rough. Chrome showed no problem, even with the processor slowed six times. WebKit, the engine behind Safari, showed it on a Mac at phone size: 14 to 27 frames over 33 milliseconds in one 4-second scroll. Before changing anything, the agent switched off one suspect at a time and measured again. The flight and the blurs inside the SVG were the cost. The metal plate, its blend and the frosted glass, the first things anyone would blame, were not.

The cause was the structure. The pieces were groups inside one SVG, so every frame of the scroll repainted the whole C with all its blurs. Each piece is now a small SVG on its own layer, which the browser paints once and then only moves. The same scroll now has 0 to 15 long frames depending on what else the machine is doing, and none when it is quiet.

The pieces arrived too early. A scroll animation that starts when an element enters the view counts from the bottom of the scrolling area, and on a phone that edge can sit behind the address bar. By the time a piece's place came into sight, the flight was already under way. On phones the flight now starts at a distance measured from the edge people can see. The difference between the two viewport units is the height of the browser's own bars:

animation-range: cover calc(100lvh - 100svh + 12svh) cover calc(100lvh - 100svh + 62svh);

The hint was wrong for the hand holding the phone. It said to scroll and showed a mouse, on a device with no mouse. A touch screen now says swipe, with a finger travelling up, and a mouse still gets the rolling wheel.

How does one page become every page?

Once the home page settled, the owner asked whether it could be reused, because every page reached from chabulab.com should feel the same. An earlier attempt at one shared look had stopped halfway, and this one had to go all the way.

The audit explained why the first attempt stopped. The shared packages existed, but nothing made an app use them. Four games and two tools never did, and they hard-code between 73 and 350 colours each. The new home page was no better: its own hard-coded colours went from 79 to 325, because the whole new look lived inside it.

The owner set three rules. One language with a material per hub: the same glass, keys, light and navigation everywhere, each hub in the colour of its logo piece and its own background, felt for games, blueprint for tools, chalkboard for learning. The brushed metal belongs to chabulab.com only. And every web page moves onto it, except that LexiLoop, the vocabulary app, keeps its own identity and shares only the header, footer and buttons.

Pick a hub, then try the metal plate on it. The check is planned, so its output is simulated here. Open this figure on its own

The architecture puts the look in plain CSS and a few lines of TypeScript, so React pages, Svelte tools and the games all render the same thing, and the components are thin wrappers:

Click a box to trace what it feeds. Drawn with Pele. Open this figure on its own

The first three steps are done. The look moved into shared packages and the home page dropped its own copy, about 420 lines of CSS and its pointer script. Hard-coded colours in the app went from 324 to 169, and what remains is the logo's drawings and each product's tile colour. A sample page in the shared repository is driven in a real browser in every hub, and the same page rendered through the React and the Svelte components has to come out with the same computed look: 946 checks on each, and no differences.

One decision came from a small review comment. A white button had the highlight that follows the pointer and another white button did not, because the light depended on someone remembering a class. So the shared button and header now always carry the night classes. They do nothing until a page loads the night layer, which leaves no setting to forget.

The part the first attempt lacked is the bottom-right box, and it is the next piece of work: a check in every repository's build. It will fail when an app does not load the shared tokens, hard-codes a colour outside its theme file, builds its own header, or pins an old version of a package. And it will fail when a hub loads the metal plate. A rule like "metal only on the home page" is easy to forget in a year; a red build is not.

What is not done yet?

  • Most hubs are still to move. chabulab.com and its own pages are on the shared look. The games hub, the tools, Learn, this blog, the four games and LexiLoop's header and footer follow, one at a time, each verified before the next.
  • The build check does not exist yet. The check in the figure above is a simulation of what it will say.
  • No frame numbers from a real iPhone. The owner judged the motion by eye on one; the measurements came from WebKit on a Mac at phone size.
  • The interactive figures are new for this blog. Each one is a small page in a sandboxed frame; the post itself stays static, and the feed and the Markdown version link to each figure instead.

Also as Markdown. Follow new posts with the RSS feed.