@hascii/ui

Terminal UI components for OpenTUI, distributable via shadcn registry.

Setup

shadcn init requires TailwindCSS, so it fails on TUI-only projects. hascii-ui init drops a minimal components.json with empty Tailwind fields so shadcn add skips the init step. Skip this if your project already has a components.json.

bunx @hascii/ui init

Install one

npx shadcn@latest add https://ui.hascii.sh/r/button.json

Install all

npx shadcn@latest add https://ui.hascii.sh/r/all.json

Preview in your terminal

Run the CLI to browse every component interactively, or render a single component centered in the terminal. Subcommands accept zod-validated options like --variant, --size, and --label. Append --help to any command to see the full option list.

bunx @hascii/ui                                        # interactive showcase
bunx @hascii/ui components button --variant outline --size lg --label save
bunx @hascii/ui components badge  --variant destructive --label removed
bunx @hascii/ui components input  --label Email --placeholder you@example.com
bunx @hascii/ui components --help                      # list every component

Components