Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By decocmsv1.0.0MITIn 1 marketplace
Builds React screens with the decocms design system's components, tokens and layout rules for Tailwind v4 apps. Expects React 19 and Tailwind CSS v4; a design-system package, not a standalone UI kit.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
The decocms product design system: reusable React primitives, design tokens, hooks, and generic interaction patterns.
| Attribute | Value |
|---|---|
| Workspace | @decocms/ui (packages/ui) |
| Kind | Open-source React design-system package |
| Runtime | React 19; browser |
| Distribution | Public npm package (@decocms/ui, MIT) |
@decocms/ui is the UI foundation for Studio and other decocms apps. It contains
React components built on Radix primitives, Tailwind CSS v4 design tokens, generic
browser hooks, assets, and small presentation utilities.
The package exports files through explicit wildcard namespaces rather than a root barrel. Consumers import the component, hook, style, or utility they need.
bun add @decocms/ui react react-dom
Requirements: React 19 and Tailwind CSS v4 (e.g. @tailwindcss/vite). Then make
the design-system stylesheet your CSS entry point (it pulls in Tailwind, the
tokens, and the bundled fonts):
@import "@decocms/ui/styles/global.css";
External consumers import extensionless subpaths, which resolve to compiled ESM with type declarations:
import { Button } from "@decocms/ui/components/button";
If your form uses this package's form.tsx or toasts use sonner.tsx, install
the matching peers (react-hook-form, sonner) so app and design system share
one instance.
Import source modules through their declared namespaces:
import { Button } from "@decocms/ui/components/button.tsx";
import { cn } from "@decocms/ui/lib/utils.ts";
export function SaveButton() {
return (
<Button className={cn("w-full")} type="submit">
Save
</Button>
);
}
Load the design-system stylesheet from the web application's CSS entry point:
@import "@decocms/ui/styles/global.css";
User-facing copy belongs to the application translation layer:
import { Button } from "@decocms/ui/components/button.tsx";
import { useT } from "@/i18n/use-t.ts";
export function CreateOrganizationButton() {
const t = useT();
return <Button>{t("common.createOrganizationDialog.createButton")}</Button>;
}
The package is organized by public namespace:
components contains Radix-based primitives and composed, application-neutral
controls.hooks contains reusable browser state and interaction hooks.lib contains pure class, formatting, and interaction helpers.styles contains global Tailwind v4 tokens, themes, and base styling.assets contains fonts and other design-system assets.Most files are direct package entry points. There is no @decocms/ui root export,
and components do not need registration in a central barrel.
cn() combines clsx and tailwind-merge for conditional class composition.
Component variants use design-system tokens such as primary, destructive,
success, and muted so theme changes remain centralized in global.css.
Action buttons are pills at every size and variant. Compose Button or
IconButton and inherit that shape; custom button markup uses the same token.
Joined controls keep square inner edges and pill outer corners.
Pill navigation tabs, avatar and color swatch controls, and clickable cards keep
the shapes of their respective components.
Compile dist (ESM + type declarations — runs automatically before publish), and launch the component workshop:
bun run --cwd=packages/ui build
bun run --cwd=packages/ui storybook
Run focused tests and consumer type checks from the repository root:
bun test packages/ui/src
bun run --cwd=apps/web check
For broader repository validation:
bun run lint
bun run fmt
UI behavior that depends on a real browser belongs in the web component or E2E suite rather than a mocked unit test:
bun run --cwd=apps/web test:ct
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub decocms/studio --plugin decocms-uiPlugins from other owners that cover similar ground