Skip to main content

Installation

Pick the gentleduck package you want to install and follow the per-framework setup guide.

Pick what you need

gentleduck is a set of independent packages. Most teams start with one of the two entry points below, then add tools as they need them.

Start here

Add tools as you grow

Quick start

The shortest path is the CLI. From an existing React project:

bunx @gentleduck/cli init
bunx @gentleduck/cli add button dialog
bunx @gentleduck/cli init
bunx @gentleduck/cli add button dialog

init writes a duck-ui.json config, sets up Tailwind tokens, and prepares the import alias. add copies the component source — you own it.

If you only want primitives, install the package directly:

bun add @gentleduck/primitives
bun add @gentleduck/primitives

Per-framework guides

Pick the framework you ship with for the full setup walkthrough, including Tailwind config, dark mode, and import aliases: