Open registry for components, styles and themes #1807
AnishDe12020
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
@AnishDe12020 Thanks for the ping on this. This is on the roadmap. I started laying out the base for multi-registry support but hadn't had time to get to it yet. The next step here would be to work on a shared schema for registry for interoperability. Once we have this in place, we'll have a better idea for moving forward. (Converting this to a discussion...) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Shadcn UI is amazing, the approach to modular components and direct customisation makes it easy to work with but this can only work when you make a shared package in a monorepo or for single projects (unless we fork shadcn/ui and make the changes with a new cli and everything)
From what I found in the CLI's source code, the CLI supports custom registries but there is no friendly way to set one (gotta set an environment variable here). Further, there is no easy way to create a registry or add components for a registry. Many people would just want to publish one off components like a custom calendar component and making it easy to publish these would be a good first step.
Personally, I would like to make a custom theme over new york with some minor changes to the components and maybe some more custom components which I can use for other projects and others can use as well by specifying the theme name in
components.json
. For example, if I call itchad-ui
,components.json
can look like -The default components can be from shadcn default but say I want to use
chad-ui-button
I can dobunx shadcn-ui add chad-ui-button
or maybebunx shadcn-ui add @chad-ui/button
The exact approach is debatable but we can discuss
Btw, open to contribute and build this system out
Beta Was this translation helpful? Give feedback.
All reactions