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, feedback, and content viewers into one visual language. The source lives in packages/ui, where you can read it, change it, and compose it for your application.
Start here
- Connect your application. Follow Installation to add the workspace dependency, load the shared styles, and configure Tailwind to scan the component source.
- Try a component. Browse the component directory. Each page pairs an interactive preview with the complete example source.
- Make it your own. Use Theming for colors and CSS tokens, and Design guidelines for typography, spacing, surfaces, and motion.
SUI currently uses the private @workspace/ui package inside this Bun workspace. There is no published SUI registry or standalone install command. Start with the installation guide before copying an example.
Your first component
Once your application is connected, import components from their individual modules:
import { Button } from "@workspace/ui/components/button";
export function SaveButton() {
return <Button>Save changes</Button>;
}The previews and your application use the same shared package. The code tab shows the full example file, including imports and composition; English and Chinese pages share the same examples.
Find the right pieces
| What you are building | Start with |
|---|---|
| Forms and settings | Field, Input, Select, Switch |
| Navigation and feedback | Tabs, Dialog, Toast |
| Content and conversations | Message, Markdown Viewer, Code Viewer |
| Optional glass surfaces | Glass |
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/uicontains components, shared hooks, CSS tokens, and accent themes.apps/docscontains 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.