跪拜 Guibai
← All articles
VibeCoding · AI Programming

Xiaomi's MiMo Code Landing Page Gets a 1:1 Clone via OpenAI Codex

By 卡卡罗特AI ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

Feeding a URL to an AI coding agent and getting a working, styled replica in minutes collapses the cost of borrowing UI ideas. The same prompt can extract a machine-readable design system or a reusable effect module, turning any website into a template library.

Summary

Xiaomi launched MiMo Code, a free AI coding agent with a million-token context window, but the landing page's visual design stole the show. A canvas mask sits over a full-screen illustration; moving the mouse punches expanding, fading holes through the mask using `destination-out` compositing, creating an ink-splash reveal effect. A subtitle typewriter animation and a warm-white, ink-and-brushstroke aesthetic complete the look.

Rather than reverse-engineering the CSS, the entire homepage was cloned by passing the URL directly to OpenAI Codex with a one-sentence prompt. Codex fetched the fonts, images, and layout, then produced a working React/Vite replica running on localhost. The core canvas logic was annotated afterward for readability.

The workflow extends beyond cloning: Codex can extract a `DESIGN.md` style guide from any site, following Google Labs' open format, so the same ink-wash minimalism can be applied to other projects. A separate technical document captures the reveal effect for reuse.

Takeaways
Passing a live URL to Codex cloned the MiMo Code homepage, including fonts, images, and layout, in about ten minutes.
The mouse-reveal effect is not CSS hover or SVG mask but a full-screen canvas that uses `destination-out` compositing to punch holes through a solid overlay.
Each "ink dot" expands from an 8px radius to roughly 128px over 520ms, with a sine-wave-distorted edge that mimics an ink splash.
Codex auto-detected the technique and proposed a three-layer structure: background image, canvas mask, and content layer.
Extracting a `DESIGN.md` file in Google Labs' format lets an AI agent reapply the site's ink-wash minimalism to other projects.
Core effect code can be isolated into a technical document and dropped into any project for reuse.
Conclusions

The clone succeeded because the target page is a static HTML/CSS/JS site; dynamic, authenticated, or heavily JavaScript-driven pages would likely break this approach.

Codex's ability to name and explain an unfamiliar effect ("mouse erase reveal image") shows it can act as a reverse-engineering tutor, not just a code generator.

The real unlock is the extraction pipeline: URL → working clone → design system doc → reusable effect module. Each artifact feeds the next.

Half a Plus subscription quota for a full homepage clone is cheap compared to manual reconstruction, but the cost scales with page complexity.

Concepts & terms
Canvas destination-out compositing
A global composite operation in the Canvas 2D API that subtracts newly drawn pixels from the existing canvas content, effectively erasing portions of the image. Used here to punch transparent holes through a solid mask layer, revealing a background image underneath.
DESIGN.md (Google Labs format)
A machine-readable design specification file with YAML frontmatter tokens, style rules, component patterns, and do/don't guidelines. AI coding agents can consume it to apply a consistent visual style across different projects.
From the discussion

The conversation splits between appreciation for the cloned effect and practical concerns about its reuse. One developer open-sourced their own implementation and promised a follow-up article on integration pitfalls, while another admitted shelving the idea for lack of a suitable project. A lone question asks where to purchase Codex access.

The cloned MiMo Code effect is visually appealing but lacks an obvious use case, leading some developers to postpone adopting it.
An open-source implementation exists and is being documented with real-world integration experience.
Access to OpenAI Codex itself remains a point of curiosity for at least one observer.
Featured comments
liveling

I also thought it looked quite nice at the time, but I couldn't think of any project where I could use it, so I shelved it. Are the developer files public? [simple smile]

卡卡罗特AI

Working on it, preparing to open-source it. I'll publish another article when it's ready 🤔

卡卡罗特AI  → 卡卡罗特AI

It's already open-sourced: https://github.com/kklt1024me/MiMoCodeWeb. I've integrated it into my own project and will publish another article tonight detailing the pitfalls I encountered. You can follow the WeChat official account of the same name [grin]

iccKey

Where did you buy Codex?

See top comments, translated →
Source: juejin.cn ↗ Google Translate ↗ Backup ↗