@plexui/ui
v0.62.29
Published
Modern design system for building high-quality applications
Maintainers
Readme
@plexui/ui
React components of Plex UI: 50 accessible components on Radix primitives, one 9-size scale across every control, three-layer design tokens and dark mode. Built for AI agents, with an MCP server, an agent skill and llms.txt.
The same components for Vue: @plexui/vue.
Docs · Components · GitHub
Install
npm install @plexui/uiRequires React 19 and Tailwind CSS 4.
/* globals.css */
@layer theme, base, components, utilities;
@import "tailwindcss";
@import "@plexui/ui/css";
@source "../node_modules/@plexui/ui";On Vite, add plexui() from @plexui/ui/vite and drop the @layer line. Wrap the app in PlexUIProvider to set the link component (for example Next.js Link):
import { PlexUIProvider } from "@plexui/ui/components/PlexUIProvider";
<PlexUIProvider linkComponent={Link}>{children}</PlexUIProvider>Use
import { Button } from "@plexui/ui/components/Button";
<Button color="primary" size="lg">Get started</Button>Every component has its own subpath: @plexui/ui/components/<Name>. Hooks live in @plexui/ui/hooks/<name>, shared types in @plexui/ui/types, theme helpers in @plexui/ui/theme.
Size scale
Controls share one size scale: 3xs 22px, 2xs 24px, xs 26px, sm 28px, md 32px (default), lg 36px, xl 40px, 2xl 44px, 3xl 48px.
Dark mode
Set data-theme="dark" (or "light") on <html>; it also works on any element for a nested scope. applyDocumentTheme, getDocumentTheme and useDocumentTheme from @plexui/ui/theme read and set it. See Dark mode.
