Give your AI agent a design system to work with.
Turn “make it feel better” into a small, visual brief: reference frames, design tokens, interaction states and a review loop you can repeat.

“Make it more premium” describes a reaction. It gives a coding agent very little to preserve. Does premium mean a quieter palette, more space, a stronger headline, fewer borders, or better transitions? Without that context, every revision can pull the interface in a different direction.
A useful design brief makes a few decisions visible. Keep the reference frames, the small set of tokens that govern them, and the behavior of the important controls together. Then ask for a change with a clear acceptance condition. This article is a working method for reviewing AI-assisted frontend changes, not a claim that a particular model guarantees a better design.
Start with a system you can point at
Real Latticeport 1.0.0 brand page. The navigation makes identity, color, typography, layout, controls, icons and motion inspectable in one place.The useful part of a brand page is the relationship between its pieces. A headline sample shows what the type scale is for. A control example connects color with an interaction state. An icon set shows how stroke, corner and size choices remain consistent. Together, these examples reduce the number of decisions that need to be reinvented during every edit.
You can inspect the Latticeport brand system alongside its preview. It is a fictional developer-platform kit, used here as a concrete visual example. The workflow below also works with your own existing product and does not require this kit.
Make the request reviewable
A direction without constraints
“Make this dashboard more polished and add some motion.”
- The agent has to guess the hierarchy.
- Spacing and typography can drift between sections.
- There is no shared definition of an acceptable result.
A bounded change
“Keep the reference hierarchy. Apply the token scale and improve the selected state.”
- Name the components that may change.
- Show the idle, selected and loading states.
- Review the same viewport before and after.
Make five decisions explicit
A compact design-context pack| Decision | Useful evidence | A concrete constraint |
|---|
| Hierarchy | One full-page reference plus a close-up of the key section. | Keep one primary action and the current reading order. |
| Typography | Heading, paragraph and label samples. | Use the named type scale; do not invent a new size per component. |
| Spacing and layout | Desktop and narrow-screen captures. | Keep the container width and spacing rhythm consistent. |
| Interaction | Default, hover, focus, active, pending and error examples. | The task remains usable with a keyboard and without hover. |
| Motion | A short real interaction capture or a precise written sequence. | Explain what movement communicates and provide a reduced-motion state. |
Keep the pack small enough to read. A folder of dozens of unrelated screenshots leaves the agent to resolve competing instructions. A few named frames with written decisions are easier to compare with the actual code. Include the narrow-screen version early; it often exposes ambiguity in hierarchy that a wide desktop layout hides.
Turn the decisions into editable tokens
CSS custom properties give repeated values a name that can be reused with var(). The naming is part of the brief: an action color explains a role, while a token named after one page encourages local exceptions. The following values are illustrative; use the actual values from your own system.
:root {
--surface: #f4f0e8;
--ink: #252421;
--action: #ff8a70;
--space-section: clamp(3rem, 7vw, 6rem);
--radius-control: 0.75rem;
}
.feature-section {
padding-block: var(--space-section);
color: var(--ink);
background: var(--surface);
}
@media (prefers-reduced-motion: reduce) {
.feature-reveal {
transform: none;
animation: none;
transition: none;
}
}
The prefers-reduced-motion media feature lets you adapt an experience to a visitor’s motion preference. Treat that alternative as a designed state. Content should remain visible and usable when the entrance animation is removed.
Give the agent a bounded edit
Task: improve the selected project card.
Keep: page order, card dimensions, type scale and existing content.
Use: the shared color, radius and spacing tokens.
Show: idle, keyboard focus, selected and loading states.
Motion: a brief state transition; no movement is required to understand selection.
Verify: the same card at desktop and narrow mobile widths.
Deliver: changed files, before/after captures and any unresolved behavior.
This brief makes the change smaller than the whole product. The agent can explain which component it touched, and you can review whether selection became clearer without losing the rest of the system. If the result is still wrong, describe the visible difference: the selected outline is too faint, the text moves, or the loading state changes the card height.
A repeatable visual review loop
Capture the baseline
Save the actual route, viewport and state before editing. Use a fresh browser state when comparing layouts so an old selection or dialog does not distort the comparison.
Change one decision
Ask for one bounded improvement using the shared system. Keep unrelated sections out of the edit and inspect the implementation, not only the screenshot.
Exercise the states
Use the control with a pointer and keyboard. Test pending and error states and the reduced-motion alternative. Check a narrow viewport before declaring the work finished.
Save the rule
If the change establishes a useful pattern, add it to the actual component or design-system page so the next edit starts with the same context.
The goal is a shorter feedback loop with a stable visual direction. The design system supplies the vocabulary, the examples show what the words mean, and the acceptance checks turn a subjective request into something you can inspect. Human judgment still chooses the direction; the written context helps carry it into the next change.
Back to the LOOKFILE blog