# @primecoderin/fast-ui-react 1.0.0: full documentation
> A React 19 design system on Base UI and Tailwind CSS 4. This file holds the guides and the component reference in one document.
- Import from `@primecoderin/fast-ui-react`. Form fields bound to react-hook-form come from `@primecoderin/fast-ui-react/forms`, charts from `@primecoderin/fast-ui-react/charts`, the rich text editor from `@primecoderin/fast-ui-react/editor` and `@primecoderin/fast-ui-react/editor-forms`. Plain form fields (`TextField`, `SelectField` ...) are in the main entry and need no form library.
- Import `@primecoderin/fast-ui-react/styles.css` once at the app's entry and wrap the app in `DesignSystemProvider`. The app needs no Tailwind and no font of its own.
- Components hold no text of their own: every string a user reads (labels, hints, error messages, button names) is a prop, so pass the app's translated text. Give an icon-only control an `aria-label`.
- Props follow `value` / `onValueChange`, `checked` / `onCheckedChange`, `open` / `onOpenChange`. Use `aria-label`, never `ariaLabel`.
- Style with tokens, not colour values: `bg-primary`, `text-fg-secondary`, `border-line`. Tailwind's own palette (`bg-red-500`) and type scale are switched off.
- Components are Client Components (they start with "use client"), so Server Components can import them. The pure helpers (`createTheme`, `cn`) are safe in Server Components.
- Do not invent props or exports: check `components.md` (or the MCP server's `get_export`) for the real ones.
# Getting started
```bash
npm install @primecoderin/fast-ui-react
```
The package needs React 19 in the app (`react` and `react-dom`, which a React app already has). Everything else,
Base UI included, comes with it. Three features live in their own entries, so an app that does not use them never
installs, downloads or bundles what they need:
| You use | Import from | Also install |
| ------------------------------------------------------------------------------ | ------------------------------------------ | ------------------------------------------------------------------------------ |
| Components, patterns, theming | `@primecoderin/fast-ui-react` | nothing |
| Form fields bound to react-hook-form (Forms (the "Forms" section)) | `@primecoderin/fast-ui-react/forms` | `react-hook-form` 7.91 or later 7.x |
| Charts (Charts (the "Charts" section)) | `@primecoderin/fast-ui-react/charts` | `recharts` 3.11 or later 3.x |
| The rich text editor (Advanced components (the "Advanced components" section)) | `@primecoderin/fast-ui-react/editor` | `@tiptap/core @tiptap/pm @tiptap/react @tiptap/starter-kit`, 3.35 or later 3.x |
| The rich text editor as a form field | `@primecoderin/fast-ui-react/editor-forms` | the TipTap packages and `react-hook-form` |
These are optional peer dependencies with those ranges (`peerDependencies` in `package.json`): an app on Recharts 2
or TipTap 2 gets a peer-dependency warning from npm and must upgrade to use that entry.
**1. Import the stylesheet once**, at the app's entry. It carries the font, the tokens, the base rules and every
Tailwind class the components use, so the app needs no Tailwind and no font of its own:
```ts
import "@primecoderin/fast-ui-react/styles.css";
```
The font is Inter, served from the package's own files (`dist/fonts/`): no `` to add and no request to
another site, so a Content-Security-Policy of `font-src 'self'` allows it. One variable file per character set
covers every weight, and a browser downloads only the files whose characters a page shows (47 KB for English), and
none if the app sets another font with `createTheme`. A right-to-left page uses Arial instead, since Inter has no
Hebrew or Arabic. The font's licence (SIL Open Font License) ships next to it.
**2. Wrap the app in the provider.** It sets `data-theme` and `dir` on ``, applies tenant branding, and
hosts the toaster and the shared tooltip delay.
```tsx
import { Button, DesignSystemProvider } from "@primecoderin/fast-ui-react";
export const App = () => (