Color — dir/ui
Tailwind semantic names mapped to --ui-* tokens, so a theme changes every color at once.
# dir/ui
> React components and copyable application templates for internal tools. React 19, Base UI, Tailwind CSS 4, React Hook Form, Recharts, and react-data-grid.
Install individual components or complete templates with shadcn. Each Markdown document contains installation, imports, props, types, and integration constraints. Registry items declare owned files, shared registry dependencies, and npm versions. The library has no Dir runtime dependency.
Building a screen with an AI agent? Start with [the dir/ui skill](https://ui.usedir.com/skill/SKILL.md): it says which of these documents to read, in which order, and how to install what a screen needs.
## Basic
- [Button](https://ui.usedir.com/components/button.md): Displays a button or a component that looks like one.
- [Badge](https://ui.usedir.com/components/badge.md): A small label for a category, a count or a code.
- [Value](https://ui.usedir.com/components/value.md): Numbers, dates and choices formatted the same way in every grid, list and detail.
## Input
- [Input](https://ui.usedir.com/components/input.md): A single-line control for text, numbers, money, percentages, dates and times.
- [Textarea](https://ui.usedir.com/components/textarea.md): A multiline text input that grows with its content from 64px.
- [DateInput](https://ui.usedir.com/components/date-input.md): A date or date-time input with a calendar popover.
- [Checkbox](https://ui.usedir.com/components/checkbox.md): Turns one option on or off. Use it for booleans that are committed with Save.
- [Select](https://ui.usedir.com/components/select.md): Picks one value from a short, fixed list of 2–7 options.
- [Combobox](https://ui.usedir.com/components/combobox.md): Searches a long or remote list and picks one value, or several shown as chips.
- [FileUpload](https://ui.usedir.com/components/file-upload.md): File selection with progress, cancel and retry.
- [RichText](https://ui.usedir.com/components/rich-text.md): An editor for formatted notes; it loads lazily.
## Form
- [Field](https://ui.usedir.com/components/field.md): Associates a control with its label, description and validation error.
- [InlineField](https://ui.usedir.com/components/inline-field.md): A labeled record value that is edited in place and saved on commit.
## Table
- [DataGrid](https://ui.usedir.com/components/data-grid.md): A virtualized grid with search, sorting, filters and column settings.
- [List](https://ui.usedir.com/components/list.md): A vertical list of items with slots for leading, trailing and actions.
- [ToolbarButton](https://ui.usedir.com/components/toolbar-button.md): A compact control for search, sort, filter and column settings above a list.
## Overlay
- [Dialog](https://ui.usedir.com/components/dialog.md): A window overlaid on the page for a form, or a wide drawer docked to the right.
- [ConfirmDialog](https://ui.usedir.com/components/confirm-dialog.md): Confirms a destructive action; focus starts on Cancel and `busy` locks both buttons while it runs.
- [Sheet](https://ui.usedir.com/components/sheet.md): A panel that slides in from the side, or stays beside a list.
- [Popover](https://ui.usedir.com/components/popover.md): Rich content anchored to a trigger, such as a small form.
- [DropdownMenu](https://ui.usedir.com/components/dropdown-menu.md): Actions and options opened from a button, with groups, shortcuts and submenus.
- [Tooltip](https://ui.usedir.com/components/tooltip.md): A short label for an icon-only button, or why a control is disabled.
- [SearchDialog](https://ui.usedir.com/components/search-dialog.md): A command-style search dialog opened with ⌘K.
## Feedback
- [Toast](https://ui.usedir.com/components/toast.md): A succinct message that is displayed temporarily.
- [Skeleton](https://ui.usedir.com/components/skeleton.md): Placeholders that keep the shape of content while it loads.
- [EmptyState](https://ui.usedir.com/components/empty-state.md): Shown when there are no records yet or none match, with one action.
- [ErrorState](https://ui.usedir.com/components/error-state.md): Shown when content fails to load, with an optional retry.
## Navigation
- [Header](https://ui.usedir.com/components/header.md): A page header with a leading slot, a title and actions.
- [Sidebar](https://ui.usedir.com/components/sidebar.md): A composable, collapsible workspace sidebar.
- [Tabs](https://ui.usedir.com/components/tabs.md): A set of layered sections of content, displayed one at a time.
- [TabBar](https://ui.usedir.com/components/tab-bar.md): Tabs inside the page content: a full-width band of line tabs with counts and actions.
## Chart
- [Chart](https://ui.usedir.com/components/chart.md): Responsive Recharts charts with shared colors, tooltips and legends.
## System
- [Layouts](https://ui.usedir.com/layouts): PageShell, AppShell and SuiteShell, chosen by how much navigation an app needs.
- [Foundations](https://ui.usedir.com/foundations/color): tokens and the Light, Black and Paper themes; a theme overrides --ui-* only.
- [UI rules](https://ui.usedir.com/skill/rules.md): the twelve rules every generated screen follows.
- [API digest](https://ui.usedir.com/skill/api-digest.md): import paths and key props.
- [Skill](https://ui.usedir.com/skill/SKILL.md): how to use the rules, recipes and digest.
## Page recipes
- [Sales CRM](https://ui.usedir.com/skill/recipes/crm.md): Companies, people and deals with a pipeline, saved views and inline-edited deal details. AppShell.
- [Recruiting](https://ui.usedir.com/skill/recipes/recruiting.md): Candidates by stage, candidate details and interview scheduling. AppShell.
- [Task Board](https://ui.usedir.com/skill/recipes/task-board.md): A team issue board grouped by status, with an issue editor. AppShell.
- [Sales report](https://ui.usedir.com/skill/recipes/sales-report.md): KPI cards, revenue charts and a product breakdown. AppShell.
- [Customer portal](https://ui.usedir.com/skill/recipes/customer-portal.md): A customer-facing portal for contracts, invoices and support tickets. PageShell.
- [Inventory](https://ui.usedir.com/skill/recipes/inventory.md): Reorder dashboard, item list and item details with purchase orders. AppShell.
- [Expense claims](https://ui.usedir.com/skill/recipes/expense.md): Expense claim form with line items and receipts, history and approvals. PageShell.
- [Daily reports](https://ui.usedir.com/skill/recipes/daily-report.md): Mobile-first daily report form, team feed and weekly summary. PageShell.
- [Inquiry management](https://ui.usedir.com/skill/recipes/inquiry.md): Support inbox, ticket list and ticket conversations with macros. AppShell.
- [Contract management](https://ui.usedir.com/skill/recipes/contract.md): Contract list, contract details with documents, and renewals. AppShell.
## Application templates
- [CRM](https://ui.usedir.com/examples/crm.md): Companies, people, deals, tasks, and settings in a complete CRUD application.