The PR ships a card with rounded-[10px], a button with border-radius: 8px, and a chip with 9999px. The repo already has radius tokens (--radius-sm, --radius-md, theme.radii, or a rounded-md that is mapped in the Tailwind theme). Nearby components use those tokens. The new values look close in one screenshot and slightly off in the next, especially at the same breakpoint as an existing card.
I've started treating a magic radius as a token miss, not as a tasteful tweak. If the design called for a new radius, that belongs in the token file, not in one component.
Why the magic radius shows up
Default Tailwind and CSS examples use rounded-md or 8px. The model can paste that without opening the theme. Your tokens may be CSS variables, a theme map, or a small set of utility aliases, which is easy to miss if the prompt only says "make it a bit rounder."
A one-off 9999px pill also shows up next to a tokenized radius-full. They can render the same today and diverge when the full token changes.
A simple radius policy
- New radii use the existing radius tokens or theme utilities
- Do not add a raw pixel or arbitrary rounded value in a feature file
- A new radius step is a token change, with a note in the theme
- Pills and avatars use the existing full/circle token, not a hardcoded 9999px
If a mock is 10px and the scale is 8 and 12, pick the existing step or change the token. Do not add 10px for one card.
What to put in the prompt
Use the existing radius tokens (or the theme's rounded utilities) for this component. Do not add raw px or arbitrary rounded-[…] values. If the mock needs a radius we do not have, add it to the token file; do not invent it in this PR. Paste the radius scale or a snippet of the theme. In review, search the diff for border-radius:, rounded-[, and 9999px.
Reject / send back
Reject
- A feature file with a one-off pixel radius
- A pill that uses
9999pxwhile a full-radius token exists - A new radius step hidden in a component instead of the theme
- Mixed tokens and raw values on the same surface
Accept
- A component that only uses existing radius tokens
- A token PR that adds a documented radius step
- A bugfix that replaces magic radii with the scale


