Skip to content

chore: replace clsx and tailwind-merge with cn - #258

Open
brandonmcconnell wants to merge 1 commit into
mainfrom
brandon/migrate-to-cn
Open

chore: replace clsx and tailwind-merge with cn#258
brandonmcconnell wants to merge 1 commit into
mainfrom
brandon/migrate-to-cn

Conversation

@brandonmcconnell

@brandonmcconnell brandonmcconnell commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replace clsx and tailwind-merge with the cn package in @mintlify/components.
  • Ran npx shadcn@latest migrate cn against src after pointing the package at Tailwind v4-compatible merge (the CLI rejects tailwind-merge v2). The local helper is now export { cn } from "cn".

Test plan

  • pnpm --filter @mintlify/components exec tsc --noEmit
  • pnpm --filter @mintlify/components lint:check
  • Storybook / a consumer still merges conflicting utility classes through cn

Use the shadcn cn package for class merging so consumers no longer pull in both clsx and tailwind-merge.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants