Skip to content
Discussion options

You must be logged in to vote

This is a great question and touches on the significant architectural shift happening with the shadcn/ui CLI and Tailwind CSS v4.

The "separate CSS import" you are seeing is likely a result of the move towards a CSS-first configuration. As of late 2025, shadcn/ui has been transitioning to support Tailwind v4, which deprecates the tailwind.config.js file in favor of putting theme logic directly into your CSS files using the @theme directive.

The Current Situation

When you use the new CLI commands (especially with the new-york style or the newer Registry "Blocks"), certain components that require complex animations (like the Accordion or Navigation Menu) carry specific CSS logic.

  1. tw-anima…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dvzrd
Comment options

@krishparmar22242
Comment options

Answer selected by dvzrd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants