In post #1, I wrote that I'd listed seventeen things I wanted to build. What I did next wasn't write code — it was draw the screens.
1. I drew the screens first
1.1 Requirements written in prose are blurrier than you'd think
I'd written down "an editor you can polish by hand before publishing," but that sentence says nothing about what it actually looks like. How many buttons, whether the preview sits beside the editor or below it, when exactly it saves — all of that gets decided while you're building it. And whatever gets decided in the moment usually turns out to be different from what I actually wanted.
So I drew the screens first. Instead of opening a separate design tool, I had Claude Design generate the screens as HTML and kept revising them as I looked at them. Asking for a change in plain language gave me back an updated screen immediately, so I could rearrange a layout that had only existed in my head as many times as I needed.
The fact that it was an actual page you could open mattered. I could click around in the browser, and later reuse that same CSS directly in the implementation.

1.2 I went back and forth between mockups and requirements
flowchart LR
A[Review and revise requirements] --> B[Create design mockup]
B --> C[Simulate and validate]
C --> D[Update design docs]
D --> A
During the requirements stage, conditions that had only been defined in words start showing their gaps and contradictions once they get carried over into a design mockup. During the simulate-and-validate stage, I check whether that mockup holds up against real data and actual usage flows, feed whatever breaks back into the design docs, and then carry it back to re-drafting the requirements to fix the wording. This loop never wraps up in one pass — it takes several trips around before the requirements actually say what's true.
2. Where the mockup changed the implementation
2.1 I rebuilt the editor from scratch
Payload already ships with a post editor. But it looked nothing like the editor I'd drawn in the mockup.
So I threw out the default editor and built a new one — one where only the paragraph the cursor is in shows raw markup, and everything else renders as the final output.
That decision rippled out to somewhere I hadn't expected. Once I decided not to use the default editor, the storage format changed too. I'd originally planned to save posts in the structured format that editor uses, but once I was building my own, I settled on plain markdown text instead.
One design decision ended up changing what actually goes into the database. That's not the kind of thing that shows up on a requirements list.

That's the editor mockup I drew. The toolbar's shape, the left-right split between the content area and the publish panel, even how you pick a status — all of it got decided here first.
2.2 Things that were in the mockup but not in the data
The dashboard mockup had "visitors this week" and a category name next to each suggested topic. While I was drawing it, I just assumed those values would obviously be there.
Once I started building, it turned out neither one existed. The schema had nowhere to store a visitor count, and suggested topics weren't linked to any category.
I could have just filled in a plausible-looking number. Instead, I swapped them for values that actually existed — search-referral clicks instead of visitors, the date a topic was suggested instead of a category. It diverges from the mockup, but that beats putting a made-up number on the screen.
(The category field for suggested topics got added to the schema later, so it now matches the mockup as originally drawn.)
3. The mockup became the requirements
After a few rounds of this, I settled on one policy.
The mockup is the complete set of requirements. If the implementation differs from the mockup, the implementation is wrong.
Then I extracted the rules baked into the mockup HTML and wrote them up as documents — five of them: base values like colors and fonts, usage guidelines per component, per-screen specs, common pitfalls to avoid during implementation, and a review checklist.
There was a reason for moving it into documents. The mockup HTML only tells you "this is what the screen looks like." Rules like "cover images are locked to a 16:9 ratio," "only use two breakpoints," or "never break a line in the middle of a Korean word" aren't things you can pick up just by looking at a picture. I actually missed two of those once and had to go back and fix them.
Now, the docs take precedence over the mockup. If a rule in the docs isn't visible in the mockup screen, the docs win.
This rule has already paid off once in practice. The mockup footer had a line implying the blog published on an automatic daily schedule — but the docs explicitly said never use wording that doesn't match how publishing actually works. The mockup had broken its own rule. That line didn't make it in.
4. For screens with no mockup, I prototyped before deciding
The card that displays AI review results wasn't in the mockup at all — it's a feature I hadn't thought of at the design stage.
Building something like that straight away tends to mean rebuilding it soon after. So instead, I built a separate throwaway page, dropped in one real review result plus two examples, and checked it visually first. Only after I was satisfied did I move it into the editor.
Here too, I didn't just copy how GitHub displays this kind of thing — I picked colors that matched this blog's own conventions: a reddish strikethrough for the original sentence, a greenish tone for the corrected one. Just reusing semantic colors I'd already settled on elsewhere.
Along the way I also stumbled onto something unexpected. The editor's CSS was referencing a color variable that didn't even exist. Nobody had ever defined it, so it had been silently falling back to a default the whole time. I filled it in properly while I was at it.
5. Looking back
Drawing the screens first was, on its own, the right call. While drawing, questions like "wait, why does this button exist?" come up naturally, and answering them sharpens the requirements.
What I got wrong was assuming that "roughly similar" would be good enough once I actually built it. A screen built "roughly similar" doesn't look similar at all. Given that, building it to match the mockup exactly from the start turns out to be the faster path in the end.
Next time: what these screens were actually built with — why I picked Astro, Payload, and Cloudflare.



