···11+# hip-ui
22+33+`hip-ui` is a copy-and-own design system for modern React applications.
44+Instead of shipping opaque runtime components, it scaffolds production-ready component source directly into your app so you can customize everything.
55+66+Hip UI is inspired by tools like [shadcn/ui](https://ui.shadcn.com/docs), but it is built around [React Aria](https://react-spectrum.adobe.com/react-aria/) for accessibility and [StyleX](https://stylexjs.com/) for styling and design tokens.
77+88+[Read the docs.](https://hip-ui.tngl.io/docs/introduction)
99+1010+## What You Get
1111+1212+- 80+ application-ready components across forms, overlays, navigation, layout, content, status, color, and date/time.
1313+- Theme tokens for color, spacing, radius, shadow, typography, and motion.
1414+- Full ownership of the generated source code in your own repository.
1515+1616+## How It Works
1717+1818+`hip-ui` is primarily a CLI.
1919+You run the installer, choose where generated files should live, and Hip UI copies component files into your project.
2020+2121+On first run, the CLI will prompt you for:
2222+2323+- `componentDir`: where components should be written, such as `src/components`
2424+- `packageManager`: `pnpm`, `npm`, or `yarn`
2525+2626+That configuration is then saved to `hip.config.json`.
2727+2828+## Quick Start
2929+3030+Run the CLI without permanently installing it:
3131+3232+```bash
3333+pnpm dlx hip-ui install button
3434+```
3535+3636+You can also use other package managers:
3737+3838+```bash
3939+npx hip-ui install button
4040+yarn dlx hip-ui install button
4141+```
4242+4343+To install everything at once:
4444+4545+```bash
4646+pnpm dlx hip-ui install --all
4747+```
4848+4949+To add a few core building blocks one by one:
5050+5151+```bash
5252+pnpm dlx hip-ui install theme
5353+pnpm dlx hip-ui install flex
5454+pnpm dlx hip-ui install typography
5555+pnpm dlx hip-ui install button
5656+```
5757+5858+## Optional Local Install
5959+6060+If you want to keep using the CLI in the same project, add it as a dev dependency:
6161+6262+```bash
6363+pnpm add -D hip-ui
6464+pnpm exec hip-ui install button
6565+```
6666+6767+## Configuration
6868+6969+You can let the CLI create `hip.config.json` interactively, or check one in yourself:
7070+7171+```json
7272+{
7373+ "componentDir": "src/components",
7474+ "packageManager": "pnpm"
7575+}
7676+```
7777+7878+## After Installation
7979+8080+Each install copies source files into your configured component directory and installs any required third-party packages.
8181+For example, after installing `button`, you will typically import it from your local codebase rather than from `hip-ui` directly:
8282+8383+```tsx
8484+import { Button } from "@/components/button";
8585+8686+export function Example() {
8787+ return <Button>Click me</Button>;
8888+}
8989+```
9090+9191+Adjust the import path to match your app's alias or folder structure.
9292+9393+## Best Fit
9494+9595+Hip UI works best when you want:
9696+9797+- a design system you can fully own
9898+- accessible primitives built on React Aria
9999+- StyleX-based tokens and component styling
100100+- more than just basic form controls, including page and layout building blocks
101101+102102+## Notes
103103+104104+- Hip UI scaffolds TypeScript and TSX files, so your app should already support React and TypeScript.
105105+- You will need to configure your bundler for stylex. We suggest using the [official plugins](https://stylexjs.com/docs/api/configuration/unplugin).