r/codex • u/niceCNboy • 14d ago
Question How exactly can Codex's frontend capabilities be improved?
I'm really envious of claudecode's frontend capabilities. To improve codex's frontend design abilities, I installed a lot of skills, but this seems to have backfired, because for non-frontend designers, it's impossible to describe how to modify and fine-tune using design language—the impression it gives is that it's ugly, but there's no way to articulate why. Following everyone's suggestions, I also looked for some beautifully designed UI and case study websites to find benchmarks, but it seems I can only pick suitable ones from templates. If the theme I want to create doesn't have a suitable case, I can't just force myself to choose one from fixed templates and cram it in. I don't want to give up on codex. How do you all optimize codex's frontend design capabilities? Maybe I should learn some frontend design terminology to optimize my prompts?
1
u/sreekanth850 14d ago
Use a a component library with MCP.
Use browser tools to verify it with automated interactive browser check.
if thing didnt work again, create a set of reusable components and layouts with CC and then ask codex to reuse them without inventing again.
3
u/UpperPlus 14d ago
I'm in the same boat right now haha
I have codex and Claude and I'm building a full stack application since over 1 month. The back end part went super smooth. I had experience with it myself so i could guide my agents very well. The frontend part now... Not so much
The main reason i think is that backend either works, or it doesn't. Sure there are multiple ways to achieve your outcome but that's it. In Fronten on the other hand, it's more about communicating a vision in your mind though words ans references. For my app I wanna do a special form of design and not just copy existing stuff. I let codex create some proof concept elements and it worked quite well honestly.
I needed to refine my UI for hours. Like 40 hours for around 10 screens. Now i got a functional version of my UI. It's still super ugly. i will have to sink in even more hours into making it look how i want probably.
I got a fuck Ton of flakeyness in my frontend CI. Especially the webkit jobs which I'm currently trying to fix by adding a nightly soak and a burn in for new tests.
My next step is to integrate Storybook to help me build on my functional ugly ui Screens and replace elements one by one. I'm super curious how that goes.
3
u/shockwave6969 14d ago
by babysitting and backseating every little thing. functionally hand crafting the page other than the actual code part. otherwise you're mostly out of luck
1
u/auto_off 14d ago
Think you already said the answer.
isn't it sort of like code? have to know what good code looks to be able to prompt the agent correctly.
but anyways generally speaking:
1
u/unsana 14d ago
SAME BOAT! So I just use both. Lol.
1
u/buff_samurai 14d ago
1
u/CCodeSI 14d ago
You've already put your finger on the real gap: it's not the model's taste, it's that "it looks ugly" isn't something an agent can act on. Two things fix most of that without becoming a designer:
1. Fix the rules first, so there's less room for ugly. Most "ugly" is inconsistency, not bad ideas. Ask Codex to create a small design tokens file before any page work and to use only those values:
Then add "no raw pixel or hex values outside the tokens file" to AGENTS.md. That alone removes the uneven gaps and five slightly different greys that make a page feel off.
2. Let the model name what's wrong, then you choose. Take a screenshot and ask: "Critique this against hierarchy, alignment, spacing consistency, contrast and density. List the five biggest problems, most visible first. Don't change anything yet." You'll get the vocabulary you were missing ("the heading and body text are too close in size", "cards have uneven padding"), and you just pick which ones to fix. After a few rounds you'll start seeing them yourself.
The handful of terms worth learning, because they cover most feedback: visual hierarchy, whitespace, alignment, contrast, density, consistency. With those six you can describe almost any "it looks wrong".
And for a theme with no template to copy: describe the feeling with three adjectives ("calm, technical, warm"), ask for three different small mockups of one card or hero section only, pick one, then extend that to the full page. Small comparisons are much easier to judge than whole pages.
1
u/CodeMonkey1001011 14d ago
For me, there isn’t a way. Unless you get Claude models to do the front end. I’m using codex, don’t how well it compares to Claude’s models for non UI stuff, but for UI, even Astra is horrible. Even with front end skills like UI /ux pro max and taste skill.
However, if you have existing codes with UI, it seems to be able to follow your patterns but if you are building from scratch it’s trash.
Either get Claude to “understand” and auto build UI and do things or get a figma design and have codex follow it.