Skip to content
bashirbobboiPublic

About

My design systems and components, as a shadcn registry

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

bash-ui

Live: bash-ui-registry.vercel.app

bash-ui components gallery

My design systems and the components worth keeping from each project, in one place. It is a showcase site and a shadcn registry: anything shown here can be installed into a new project with one command.

What's in it

  • Design systems (src/themes/): one per project. Each one is a value for every token in a shared contract (src/themes/contract.ts), in light and dark, plus the rules that make it that system.
  • Components (registry/items/): written against the contract only, so each one renders in every design system. The gallery lets you switch between them on any component.
  • An index for agents at /llms.txt: every system's rules and tokens, and every component with when to use it and its props. Point a coding agent at it when starting a project.

Using it in a project

@bash is in shadcn's registry index, so there is nothing to set up:

npx shadcn@latest add @bash/theme-180connect     # a design system
npx shadcn@latest add @bash/stick-progress-bar  # a component

On a shadcn CLI from before the registry index, add the namespace to the project's components.json first:

"registries": {
  "@bash": "https://bash-ui-registry.vercel.app/r/{name}.json"
}

Working on it

npm install
npm run dev              # http://localhost:3100
npm run check            # contract: themes complete, items listed, no raw colours
npm run registry:build   # registry.json + public/r/*.json

Adding a design system: copy src/themes/neutral.ts, fill every token, add it to src/themes/index.ts. Adding a component: see AGENTS.md.

Credits

The site's own look (the "Studio" design system, and the gallery chrome in src/components/site/ and globals.css) is adapted from Libraries.dev by Jakub Antalik, MIT. Its Saans display face is a commercial font and is not used here; the site uses Inter and Roboto Mono instead. The ghost that turns up around the site is the ghost from his bot-avatars package, also MIT. The light/dark switch in the header is adapted from Blind Pull Toggle by @aicanvas on 21st.dev, MIT.

The agent logos in the Copy prompt menu (public/agents/) belong to their companies. The Claude, ChatGPT, Cursor and Replit renderings are from Icons8.

Some components started from other people's work. Each one's page, and its meta.ts, names the source and licence.

Author

Made by Bashir Bobboi: GitHub · X · bashir.is-a.dev

Licence

Code is MIT. Images, logos, screenshots and media in public/ are not covered by it and belong to their owners; see NOTICE.

About

My design systems and components, as a shadcn registry

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages