chore: fix cn with tw-merge#3789
Conversation
|
@adithyaakrishna is attempting to deploy a commit to the Sim Team on Vercel. A member of the Team first needs to authorize it. |
PR SummaryLow Risk Overview Also slightly adjusts the button active-state scaling from Written by Cursor Bugbot for commit 06d140f. This will update automatically on new commits. Configure here. |
Greptile SummaryThis PR fixes a Tailwind class merging bug by replacing the default Confidence Score: 5/5Safe to merge — single-file, non-breaking fix with correct use of the The change is minimal (one file, ~10 lines), uses the documented No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["cn(...inputs)"] --> B["clsx(inputs)\nflatten & stringify classes"]
B --> C["twMerge (extendTailwindMerge)\nresolve conflicts"]
C --> D{Is class in known group?}
D -- "Standard TW classes\ne.g. text-xs, text-base" --> E["Built-in font-size group\nalready handled"]
D -- "Custom tokens\ntext-micro, text-caption\ntext-small, text-md" --> F["Extended font-size group\nregistered via extendTailwindMerge"]
E --> G["Last class wins\n(conflict resolved)"]
F --> G
G --> H["Final class string output"]
Reviews (1): Last reviewed commit: "chore: fix cn" | Re-trigger Greptile |
Summary
Type of Change
Checklist
Screenshots/Videos