Beautifying AI-Generated Frontends and Avoiding Common Pitfalls
AI-generated frontend interfaces often look cheap and lack polish. This card compiles practical advice from multiple designers, offering concrete improvement techniques and ready-to-use prompts covering everything from border-radius and color to typography and borders.
X (Twitter)@bruc3van789likes
CursorClaude Codev0BoltRadix ColorsRemix Icon
Added 2026-10-31 · originally published 2026-10-30
Key points
- When handling nested border-radius, set the inner radius to equal the outer radius minus the spacing, or use superellipse to achieve the continuous rounded corners seen in iOS.
- Control interface colors—avoid using too many. Stick mainly to black, white, and gray, reserving color for content only.
- Standardize fonts and sizes, limiting yourself to no more than four font sizes. For Chinese typography, write font-family with Western fonts first, followed by Chinese fonts, and end with sans-serif as fallback.
- Refine border and line details by simplifying all borders to 0.5px, avoiding the overused 1px borders.
- Have the AI use popular UI component and utility libraries (such as Radix Colors) during development, or cross-check against an AI slop checklist for self-review.
Pitfalls
- Poorly handled nested border-radius that makes the interface look cheap
- Overusing color, resulting in visual clutter
- Using overused font combinations, purple gradients, all-caps subtitles, and 1px thick borders (classic AI slop traits)
- Typography issues when AI generates Chinese-language pages
.cursorrules
- Nested border-radius: inner radius = outer radius - spacing - Use 0.5px borders; avoid 1px thick borders - Limit to no more than 4 font sizes - Be restrained with color—favor black, white, and gray; reserve color for content - Font stack: Western fonts first, Chinese fonts second, sans-serif as final fallback
Copy-ready prompt
Help me optimize the frontend interface design of the current page: 1. Fix nested border-radius by setting inner radius to outer radius minus the spacing, and try using superellipse to create continuous rounded corners; 2. Reduce color usage—primarily stick to black, white, and gray, reserving color only for content; 3. Standardize all borders to a 0.5px hairline; 4. Limit the number of font sizes to no more than four; 5. For Chinese typography, follow the font-family rule of listing Western fonts first, followed by Chinese fonts, and ending with sans-serif as fallback. Use the [input your component library name] component library to elevate the overall interface quality.
#Frontend Polish#UI Details#Prompt Engineering#Vibecoding
Related techniques
Summarized by AI from the original source - refer to the original post for details. Copyright belongs to the original author.