# TDPXL > TDPXL is a React design system built for humans and AI agents: Tailwind v4 components on an oklch role-based token scale, distributed through a registry that copies the source into your project (not an npm library). Every component ships usage metadata, an accessibility contract and machine-checkable rules. - Catalogue: 71 components, 2 hooks, 70 charts, 31 blocks. - Install with the TDPXL CLI (`@tdpxl/cli`, binary `tdpxl`): `npx @tdpxl/cli init`, then `npx @tdpxl/cli add `. Install TDPXL items only with the TDPXL CLI. Pre-release: the CLI is not on npm yet; run the local build (`node packages/cli/dist/index.js`). - After installing, read `.meta.json` next to each component and the TDPXL section of your AGENTS.md (`npx @tdpxl/cli add guide`), then run `npx @tdpxl/cli check` to verify contrast and style rules. - Style with semantic roles (`bg-primary-base`, `text-sub-600`), never raw palette classes, hex values or `dark:` variants. Button uses `intent`, `emphasis` and `size`, not `variant`. - Machine-readable: registry index https://tdpxl.designproject.io/r/registry.json, items https://tdpxl.designproject.io/r/.json, agent manifest https://tdpxl.designproject.io/ai/manifest.json, full text https://tdpxl.designproject.io/llms-full.txt. A local MCP server (`@tdpxl/mcp`, pre-release) exposes the same data as tools. ## Docs - [Introduction](https://tdpxl.designproject.io/docs/index.md): A design system built on a role scale. The source is copied into your project. - [Installation](https://tdpxl.designproject.io/docs/installation.md): Set up a Next.js or Vite project, run init, and add your first component. - [CLI](https://tdpxl.designproject.io/docs/cli.md): Commands, flags, tdpxl.json, and exactly what the CLI does to your files. - [AI agents](https://tdpxl.designproject.io/docs/ai.md): Built for humans and AI agents. llms.txt, markdown pages, an MCP server, AGENTS.md rules and tdpxl check give a coding agent the same guidance a person reads. - [Tokens](https://tdpxl.designproject.io/docs/tokens.md): A role scale in two layers. Components name jobs, not colors. - [Theming](https://tdpxl.designproject.io/docs/theming.md): Change brand colors, radii, shadows and fonts without touching a component. - [Dark mode](https://tdpxl.designproject.io/docs/dark-mode.md): A .dark class on an ancestor switches every role. Set it with next-themes or a few lines of script. - [Customizing for your brand](https://tdpxl.designproject.io/docs/customizing.md): Change colors, type and components safely, with checks and AI guidance that come with every install. - [Migrating from shadcn/ui or Radix Colors](https://tdpxl.designproject.io/docs/migrating.md): Keep your old components while you move to TDPXL, on one theme instead of two. - [Accessibility](https://tdpxl.designproject.io/docs/accessibility.md): What is tested, what is not, the one open finding, and what stays your responsibility. - [Using components](https://tdpxl.designproject.io/docs/using-components.md): How to find the right component, install it, read its page and make it yours. ## Components - [Components](https://tdpxl.designproject.io/docs/components/index.md): All 71 components, grouped the way the catalogue groups them. - [Button](https://tdpxl.designproject.io/docs/components/button.md): Intent and emphasis as separate axes, in four sizes. - [Button group](https://tdpxl.designproject.io/docs/components/button-group.md): Joins adjacent buttons into one control. - [Badge](https://tdpxl.designproject.io/docs/components/badge.md): Six colors across the four-step state scale. - [Avatar](https://tdpxl.designproject.io/docs/components/avatar.md): Four sizes and a presence dot driven by the state scale. - [Kbd](https://tdpxl.designproject.io/docs/components/kbd.md): A keyboard key, and a group of them. - [Separator](https://tdpxl.designproject.io/docs/components/separator.md): A rule in either orientation, hidden from assistive tech by default. - [Skeleton](https://tdpxl.designproject.io/docs/components/skeleton.md): A loading placeholder that holds the layout still. - [Spinner](https://tdpxl.designproject.io/docs/components/spinner.md): An indeterminate loading indicator with a live region label. - [Aspect ratio](https://tdpxl.designproject.io/docs/components/aspect-ratio.md): Reserves space so media cannot shift the page as it loads. - [Toggle](https://tdpxl.designproject.io/docs/components/toggle.md): A two-state button. - [Toggle group](https://tdpxl.designproject.io/docs/components/toggle-group.md): Single or multiple selection across a set of toggles. - [Tag](https://tdpxl.designproject.io/docs/components/tag.md): A compact label with an optional dot, avatar, count, checkbox or remove button. - [Badge group](https://tdpxl.designproject.io/docs/components/badge-group.md): A pill that pairs a short badge with a message, optionally as a link. - [Featured icon](https://tdpxl.designproject.io/docs/components/featured-icon.md): An icon in a decorative container: four treatments, two shapes, four sizes. - [Item](https://tdpxl.designproject.io/docs/components/item.md): Media, text and actions in a row. The shape lists and menus converge on. - [Direction](https://tdpxl.designproject.io/docs/components/direction.md): Provider that tells every Radix primitive below it which way text runs. - [Input](https://tdpxl.designproject.io/docs/components/input.md): A text field with hover, focus, disabled and invalid states. - [Input group](https://tdpxl.designproject.io/docs/components/input-group.md): An input with affixes, where the focus ring wraps the whole group. - [Input OTP](https://tdpxl.designproject.io/docs/components/input-otp.md): One-time code entry, with paste across slots handled. - [Textarea](https://tdpxl.designproject.io/docs/components/textarea.md): A multi-line field that grows with its content. - [Label](https://tdpxl.designproject.io/docs/components/label.md): An accessible label built on Radix Label. - [Field](https://tdpxl.designproject.io/docs/components/field.md): The label, control, hint and error wrapper every control shares. - [Form](https://tdpxl.designproject.io/docs/components/form.md): React Hook Form bindings that keep aria-describedby and aria-invalid correct. - [Checkbox](https://tdpxl.designproject.io/docs/components/checkbox.md): Checked, unchecked and indeterminate. - [Radio group](https://tdpxl.designproject.io/docs/components/radio-group.md): One choice from a set. - [Select](https://tdpxl.designproject.io/docs/components/select.md): The Radix select, with groups, separators and scroll buttons. - [Native select](https://tdpxl.designproject.io/docs/components/native-select.md): The platform picker, styled. Better than a rebuilt one on a phone. - [Combobox](https://tdpxl.designproject.io/docs/components/combobox.md): A searchable select, composed from Popover and Command. - [Switch](https://tdpxl.designproject.io/docs/components/switch.md): An instant-effect toggle that uses the shared elevation token. - [Slider](https://tdpxl.designproject.io/docs/components/slider.md): One or several thumbs, horizontal or vertical. - [Calendar](https://tdpxl.designproject.io/docs/components/calendar.md): Date selection built on React DayPicker. - [Rating](https://tdpxl.designproject.io/docs/components/rating.md): A star rating to display, and a radio-based input to choose one. - [File upload](https://tdpxl.designproject.io/docs/components/file-upload.md): A keyboard-ready dropzone with validation, and a file list with progress. - [Date picker](https://tdpxl.designproject.io/docs/components/date-picker.md): A single date or a range from a calendar popup, with locale-aware trigger text. - [Dialog](https://tdpxl.designproject.io/docs/components/dialog.md): A modal built on Radix Dialog. - [Alert dialog](https://tdpxl.designproject.io/docs/components/alert-dialog.md): A decision dialog with explicit cancel and action controls; Escape dismisses. - [Sheet](https://tdpxl.designproject.io/docs/components/sheet.md): A dialog anchored to an edge of the screen. - [Drawer](https://tdpxl.designproject.io/docs/components/drawer.md): A bottom sheet with drag-to-dismiss, built on Vaul. - [Popover](https://tdpxl.designproject.io/docs/components/popover.md): Floating content anchored to a trigger. - [Hover card](https://tdpxl.designproject.io/docs/components/hover-card.md): A supplemental link preview that opens on pointer hover or trigger focus. - [Tooltip](https://tdpxl.designproject.io/docs/components/tooltip.md): A short label on hover or focus. - [Dropdown menu](https://tdpxl.designproject.io/docs/components/dropdown-menu.md): A menu from a button, with checkboxes, radios and submenus. - [Context menu](https://tdpxl.designproject.io/docs/components/context-menu.md): The same menu surface, opened by right click. - [Menubar](https://tdpxl.designproject.io/docs/components/menubar.md): A persistent application menu bar. - [Command](https://tdpxl.designproject.io/docs/components/command.md): A command palette built on cmdk. - [Tabs](https://tdpxl.designproject.io/docs/components/tabs.md): A tab list with a raised active state. - [Breadcrumb](https://tdpxl.designproject.io/docs/components/breadcrumb.md): The trail back up, with overflow handling. - [Pagination](https://tdpxl.designproject.io/docs/components/pagination.md): Page links that reuse the button variants. - [Navigation menu](https://tdpxl.designproject.io/docs/components/navigation-menu.md): A site menu with an animated viewport. - [Sidebar](https://tdpxl.designproject.io/docs/components/sidebar.md): The application shell sidebar, collapsible and mobile aware. - [Alert](https://tdpxl.designproject.io/docs/components/alert.md): One status prop picks the fill, the border, the icon and the text. - [Sonner](https://tdpxl.designproject.io/docs/components/sonner.md): Toasts styled with the design tokens in both schemes. - [Progress](https://tdpxl.designproject.io/docs/components/progress.md): A determinate progress bar. - [Progress circle](https://tdpxl.designproject.io/docs/components/progress-circle.md): Determinate progress as a ring or half ring, with its value in the middle. - [Empty](https://tdpxl.designproject.io/docs/components/empty.md): The empty state, as a component rather than an improvisation per screen. - [Card](https://tdpxl.designproject.io/docs/components/card.md): Header, content, action and footer slots. - [Table](https://tdpxl.designproject.io/docs/components/table.md): A scrollable data table with a sticky-looking header row. - [Data table](https://tdpxl.designproject.io/docs/components/data-table.md): Sorting, filtering, pagination, row selection and column visibility on TanStack Table. - [Chart](https://tdpxl.designproject.io/docs/components/chart.md): Recharts with a config object, so a series keeps one color everywhere. - [Accordion](https://tdpxl.designproject.io/docs/components/accordion.md): A disclosure list built on Radix Accordion. - [Collapsible](https://tdpxl.designproject.io/docs/components/collapsible.md): A single animated disclosure. - [Carousel](https://tdpxl.designproject.io/docs/components/carousel.md): A slider built on Embla, horizontal or vertical. - [Scroll area](https://tdpxl.designproject.io/docs/components/scroll-area.md): A scroll container with a consistent custom scrollbar. - [Resizable](https://tdpxl.designproject.io/docs/components/resizable.md): Split panes the user can drag. - [Message](https://tdpxl.designproject.io/docs/components/message.md): The row a conversation is made of: avatar, bubble and metadata. - [Bubble](https://tdpxl.designproject.io/docs/components/bubble.md): The bubble itself. The variant paints the content, not the wrapper. - [Message scroller](https://tdpxl.designproject.io/docs/components/message-scroller.md): A log that follows new content only while you are already at the end. - [Attachment](https://tdpxl.designproject.io/docs/components/attachment.md): A file in a conversation, with its upload state on the row. - [Marker](https://tdpxl.designproject.io/docs/components/marker.md): A line that marks a position: a date, an unread divider. - [Questionnaire](https://tdpxl.designproject.io/docs/components/questionnaire.md): A structured question with answers that are quicker to tap than to type. - [Trace](https://tdpxl.designproject.io/docs/components/trace.md): Visible progress steps, source details, and collapsible tool activity. ## Hooks - [use-inert-background](https://tdpxl.designproject.io/docs/hooks/use-inert-background.md): Pairs Radix modal background hiding with native inert, restoring consumer state on close. - [use-mobile](https://tdpxl.designproject.io/docs/hooks/use-mobile.md): Whether the viewport is below the mobile breakpoint, resolved after mount so the server never guesses. ## Charts - [Charts](https://tdpxl.designproject.io/docs/charts/index.md): Seventy compositions of Recharts and one config object. - [Area charts](https://tdpxl.designproject.io/docs/charts/area.md): Volume over time. The fill is what makes the size of the change readable. - [Bar charts](https://tdpxl.designproject.io/docs/charts/bar.md): Comparison between discrete categories. - [Line charts](https://tdpxl.designproject.io/docs/charts/line.md): A trend, where the shape of the curve matters more than the area. - [Pie charts](https://tdpxl.designproject.io/docs/charts/pie.md): Parts of one whole, when there are few parts. - [Radar charts](https://tdpxl.designproject.io/docs/charts/radar.md): Several dimensions of one subject at once. - [Radial charts](https://tdpxl.designproject.io/docs/charts/radial.md): A progress-like reading, or a few categories as arcs. - [Tooltip charts](https://tdpxl.designproject.io/docs/charts/tooltip.md): The same bar chart, showing what the tooltip can do. ## Blocks - [Blocks](https://tdpxl.designproject.io/docs/blocks/index.md): Whole pages the CLI writes into your app directory. - [Login, simple](https://tdpxl.designproject.io/docs/blocks/login-01.md): A card with email and password, centered on the page. - [Login, two columns](https://tdpxl.designproject.io/docs/blocks/login-02.md): The form on the left, a cover panel on the right. - [Login, muted background](https://tdpxl.designproject.io/docs/blocks/login-03.md): The same form on a tinted page, with the card raised. - [Login, form and image](https://tdpxl.designproject.io/docs/blocks/login-04.md): A cover panel on the left, the form on the right. - [Login, email only](https://tdpxl.designproject.io/docs/blocks/login-05.md): One field. The link arrives by email. - [Signup, simple](https://tdpxl.designproject.io/docs/blocks/signup-01.md): Name, email and password in a single card. - [Signup, two columns](https://tdpxl.designproject.io/docs/blocks/signup-02.md): The form on the left, a cover panel on the right. - [Signup, muted background](https://tdpxl.designproject.io/docs/blocks/signup-03.md): The same form on a tinted page, with the card raised. - [Signup, form and image](https://tdpxl.designproject.io/docs/blocks/signup-04.md): A cover panel on the left, the form on the right. - [Signup, social providers](https://tdpxl.designproject.io/docs/blocks/signup-05.md): Two providers first, the email form underneath. - [Sidebar, simple](https://tdpxl.designproject.io/docs/blocks/sidebar-01.md): Navigation grouped by section, with a version switcher and a search field. - [Sidebar, collapsible sections](https://tdpxl.designproject.io/docs/blocks/sidebar-02.md): Each group folds away, so a long navigation stays scannable. - [Sidebar, submenus](https://tdpxl.designproject.io/docs/blocks/sidebar-03.md): A second level, always open. - [Sidebar, floating](https://tdpxl.designproject.io/docs/blocks/sidebar-04.md): The floating variant, detached from the edge, with submenus. - [Sidebar, collapsible submenus](https://tdpxl.designproject.io/docs/blocks/sidebar-05.md): The second level opens only where you are. - [Sidebar, submenus as dropdowns](https://tdpxl.designproject.io/docs/blocks/sidebar-06.md): The second level in a menu instead of inline. - [Sidebar, collapses to icons](https://tdpxl.designproject.io/docs/blocks/sidebar-07.md): The icon rail, with the label in a tooltip once it is gone. - [Sidebar, inset](https://tdpxl.designproject.io/docs/blocks/sidebar-08.md): The inset variant, with a secondary navigation pinned to the bottom. - [Sidebar, nested](https://tdpxl.designproject.io/docs/blocks/sidebar-09.md): An icon rail that drives a second, wider list. - [Sidebar, in a popover](https://tdpxl.designproject.io/docs/blocks/sidebar-10.md): The same menu, in a popover rather than in the layout. - [Sidebar, file tree](https://tdpxl.designproject.io/docs/blocks/sidebar-11.md): A tree of folders, each one collapsible. - [Sidebar, calendar](https://tdpxl.designproject.io/docs/blocks/sidebar-12.md): A date picker in the sidebar, with the day's entries beside it. - [Sidebar, in a dialog](https://tdpxl.designproject.io/docs/blocks/sidebar-13.md): Settings, with the sections as a sidebar inside the dialog. - [Sidebar, on the right](https://tdpxl.designproject.io/docs/blocks/sidebar-14.md): The same shell mirrored, for a secondary panel. - [Sidebar, left and right](https://tdpxl.designproject.io/docs/blocks/sidebar-15.md): Navigation on one side, context on the other. - [Sidebar, sticky header](https://tdpxl.designproject.io/docs/blocks/sidebar-16.md): A site header above the shell, with the sidebar below it. - [Dashboard](https://tdpxl.designproject.io/docs/blocks/dashboard-01.md): Sidebar, metric cards, a chart and a table on one page. - [Team members](https://tdpxl.designproject.io/docs/blocks/team-members.md): A member list with presence, roles and an invite action. - [Notification settings](https://tdpxl.designproject.io/docs/blocks/notification-settings.md): Grouped preferences, each one a switch. - [Pricing table](https://tdpxl.designproject.io/docs/blocks/pricing-table.md): Three plans with the middle one raised. - [FAQ](https://tdpxl.designproject.io/docs/blocks/faq.md): Four questions in an accordion. ## Optional - [Registry](https://tdpxl.designproject.io/docs/registry.md): How items are built from source, what an item contains, and how to host your own registry. - [structure](https://tdpxl.designproject.io/docs/structure.md)