Skip to content

feat(registry): Add support for css imports #7944

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

alexcarpenter
Copy link

@alexcarpenter alexcarpenter commented Aug 4, 2025

resolves #7943

Adds the option to specify CSS imports within registry items. It accepts both single and multiple imports.

input:

"css": {
  // single import
  "@import": "./one.css",
  // multiple imports
  "@import": [
    "./one.css",
    "./two.css"
  ]
}

output:

// single import
@import "tailwindcss";
@import "./one.css";

// multiple imports
@import "tailwindcss";
@import "./one.css";
@import "./two.css";

Copy link

vercel bot commented Aug 4, 2025

@alexcarpenter is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

@shadcn
Copy link
Collaborator

shadcn commented Aug 5, 2025

@alexcarpenter I replied to your tweet. We can already do this. However I like your PR here. I'm adding it to the roadmap. Will review and merge.

@shadcn shadcn added the area: roadmap This looks great. We'll add it to the roadmap, review and merge. label Aug 5, 2025
@shadcn shadcn self-assigned this Aug 5, 2025
Copy link

vercel bot commented Aug 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 5, 2025 8:11am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: roadmap This looks great. We'll add it to the roadmap, review and merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat]: Registry CSS imports option
2 participants