Skip to content

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

Closed
alexcarpenter wants to merge 4 commits intoshadcn-ui:mainfrom
alexcarpenter:main
Closed

feat(registry): Add support for css imports#7944
alexcarpenter wants to merge 4 commits intoshadcn-ui:mainfrom
alexcarpenter:main

Conversation

@alexcarpenter
Copy link
Copy Markdown
Contributor

@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";

@vercel
Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
@vercel
Copy link
Copy Markdown
Contributor

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

@alexcarpenter
Copy link
Copy Markdown
Contributor Author

whoops, didn't mean to close the branch 🙃

@alexcarpenter alexcarpenter reopened this Aug 6, 2025
@alexcarpenter alexcarpenter closed this by deleting the head repository Sep 4, 2025
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