A growing shadcn/ui registry featuring premium-quality components designed for modern web applications.
Website • Components • Docs • Twitter/X
Afro UI is a shadcn registry built with Next.js, Tailwind CSS, and TypeScript. Each component is designed to feel premium, animate smoothly, and install into any app with a single command. You own the resulting code, so it is easy to restyle and adapt.
- Share beautiful UI components in a format that works with shadcn.
- Keep the code simple, copyable, and easy to customize.
- Build a public registry where each component can be installed directly.
Install a component from the registry with the shadcn CLI:
pnpm dlx shadcn add al-husayn/afro-ui/bounce-sidebarYou can replace bounce-sidebar with any available component name from the registry.
If you are new to Git or Next.js, follow these steps in order:
git clone https://github.com/al-husayn/afro-ui.git
cd afro-ui
pnpm install
pnpm run devThen open http://localhost:3000 in your browser.
components/ui/contains the registry-ready component source files.registry.jsondefines which components are installable through shadcn.lib/components.tsholds the showcase metadata, props, and usage examples for the site.app/contains the Next.js app, pages, and docs shell.public/r/is generated from the registry build and should stay in sync.
Before opening a pull request, run:
pnpm run buildThis command runs the registry build and the Next.js production build, then regenerates the public registry files.
Issues, ideas, and pull requests are welcome. If you want to add a component or improve the docs, start with CONTRIBUTING.md.