nextjs tailwind shadcn, i want you to help me make the numerical comparison figures directly above the two canvases more pro looking, right now the text looks plain, the text is okay size and position because you can compare it easily side by side but maybe you can come up with something better, I would like the text or somehow to indicate that everything is okay with neutral blue while matching well - when similar is within 70% of comparitor which never changes once up and running. must be elegent and visually pleasing maybe. when it drops below 70 to 50 % it needs to show orange and then red for below 50...
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Below is one possible way to “dress-up” those three little numbers so they still sit nicely above the canvases but look less like debug text and more like a tiny status widget.
Highlights
• Keeps the horizontal, side-by-side layout you already like.
• Uses shadcn’s Badge component (but you could just as well keep plain divs).
• Smoothly animates the colour change so the user notices when the percentage slips.
• Reads well in both light and dark themes.
• Everything is pure Tailwind (no extra CSS files).
Tailwind config – add two extra colours (optional, nice for consistent theming):
Why it looks better
• Badges (thin border + pill shape) instantly read as “status chips,” not generic text.
• Numbers remain the exact same size, keeping your easy side-by-side comparison.
• Colours reinforce meaning without overpowering – they only tint the border + text.
• Transition class makes the change glide in 300 ms instead of popping.
• Works great in dark mode: text colours adapt; backgrounds stay transparent.
Tweaks / Variations
• If you hate pills, swap Badge for a simple div and give it classes rounded-md px-2 py-[2px].
• Add icons (<ArrowDown>, <CheckCircle>) inside the badge for extra flair.
• Replace status-blue with sky-400/90 etc. if you don’t want custom colours.
• Want a subtle background fill? Add bg-${colourFor(val)}/10 to the badge class.
That’s it—drop the component in and you should have a cleaner, more professional comparison read-out ✨