GitHub

Introduction

Start with a component. Build an interface that feels like yours.

SUI is a collection of composable React components built with Base UI and Tailwind CSS 4. It brings form controls, navigation, data tables, layouts, content viewers, chat and charts into one visual language, with optional haptic and sound feedback. The source lives in packages/ui, where you can read it, change it, and compose it for your application.

Start here

  1. Install a component. Follow Installation to add components to your application with the shadcn CLI. The source lands in your project, ready to edit.
  2. Try a component. Browse the component directory. Each page pairs an interactive preview with the complete example source.
  3. Make it your own. Use Theming for colors and CSS tokens, and Rules for typography, spacing, surfaces, and motion.

Each item installs as editable source through SUI's shadcn registry, together with its dependencies and styles.

Your first component

Install a component, then import it through your application's aliases:

pnpm dlx shadcn@latest add draco-china/sui/button
import { Button } from "@/components/ui/button";

export function SaveButton() {
  return <Button>Save changes</Button>;
}

The code tab shows each example's full file, including imports and composition; English and Chinese pages share the same examples. Examples import from @workspace/ui/components/*; in your application, use your own aliases, as Import installed source explains.

Find the right pieces

What you are buildingStart with
Forms and settingsField, Input, Select, Switch
Navigation and feedbackTabs, Dialog, Toast
Content and conversationsMessage, Markdown Viewer, Code Viewer
Optional glass surfacesGlass

Compose with intent

Components expose named parts. A dialog combines a trigger, content, title, description, and actions. A field combines a label, control, description, and error. Keep related parts together to preserve their behavior and give each interaction a clear purpose.

Base UI primitives provide keyboard interactions, focus management, and ARIA semantics. Your application still supplies meaningful labels, useful descriptions, and understandable feedback. Test custom compositions with a keyboard and assistive technology.

Work with the source

  • packages/ui contains components, shared hooks, CSS tokens, and accent themes.
  • apps/docs contains the bilingual reference site and runnable examples.
  • CSS utilities cover shared effects such as Scroll Fade and Shimmer.

For coding assistants, llms.txt provides the documentation index and llms-full.txt includes the full reference and example source. Individual pages also offer Markdown through the page actions.