decocms-ui

A React component library and visual design system for building interfaces in the decocms style. It provides reusable components, shared design values, fonts, and light and dark themes.

In plain words
What is it for?
Use it to create or style React 19 pages and components with Tailwind CSS version 4, including forms and toast messages when their related packages are installed.
Why use it?
It avoids rebuilding common interface pieces and helps pages follow the same visual rules.

Skill for Claude CodeCodex

Part of the decocms-ui plugin — 1 skill shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/decocms/studio/decocms-ui
Any agent
npx skills add decocms/studio --skill decocms-ui
Clone the repo
git clone --depth 1 https://github.com/decocms/studio

Made for: Claude Code, Codex.

Or install decocms-ui, the plugin that ships this one along with the rest of its 1 skill.

Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,141 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00091 $0.01141
Opus 5 $0.00046 $0.00571
Sonnet 5 $0.00018 $0.00228
Haiku 4.5 $0.00009 $0.00114

Measured 3d ago against content hash 9968072c4307, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

decocms-ui scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/ui/skills/decocms-ui/SKILL.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

decocms product design system (@decocms/ui)

React 19 components built on Radix primitives, styled with Tailwind CSS v4 semantic tokens. Light and dark themes work out of the box. Browse every component and token at https://designsystem.decocms.com/

Install (new project)

bun add @decocms/ui react react-dom

Requirements: React 19 and Tailwind CSS v4 (bun add -d tailwindcss @tailwindcss/vite plus the tailwindcss() plugin in vite.config.ts).

Make the design-system stylesheet the FIRST import of the app's CSS entry point — it pulls in Tailwind itself, all tokens, and the bundled fonts (Inter + Commit Mono). Do NOT also @import "tailwindcss" yourself:

@import "@decocms/ui/styles/global.css";

Tailwind only scans app source by default; if the app's classes come exclusively from @decocms/ui components this already works — the package declares its own @source.

Peers: install react-hook-form if you use the form component, and sonner if you use toasts (sonner component). They are peers so the app and the design system share one instance — never bundle a second copy.

Imports

No barrel export. Import each component from its subpath, extensionless:

import { Button } from "@decocms/ui/components/button";
import { Dialog, DialogContent, DialogTrigger } from "@decocms/ui/components/dialog";
import { cn } from "@decocms/ui/lib/utils";
import { useIsMobile } from "@decocms/ui/hooks/use-mobile";

Exception — inside the decocms/studio monorepo, workspace imports keep the source extension: @decocms/ui/components/button.tsx.

Rules

  1. Semantic tokens only, never raw palette. bg-primary, text-muted-foreground, bg-destructive, border-border — never bg-red-500 or text-zinc-400. Available color roles: background, foreground, card, popover, primary, secondary, muted, accent, destructive, success, warning, special (AI/highlight moments), brand, border, input, ring, sidebar-* (sidebar surfaces), chart-1..5 (data viz). Most roles pair with a *-foreground text token.
  2. Dark mode is automatic via the .dark class on a root element — never hardcode colors or write dark: overrides that bypass tokens.
  3. Compose, don't fork. Extend components with className + cn(); add variants through the component's cva config rather than wrapping with custom styles.
  4. font-bold renders at weight 650 (custom scale); body text is 450. Radius scale derives from --radius (default 0.375rem).
  5. User-facing copy comes from the app, passed as props — components ship only overridable English defaults.

Read the full file on GitHub · 101 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 101 lines · 91 tokens per session scan A 9968072c4307

Subscribe to this mod's changes

decocms-ui is a skill published in the GitHub repository decocms/studio (402 stars, last pushed yesterday), licensed MIT. It adds 91 tokens to every session and 1,141 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

copilotkit-upgrade

Use when migrating a CopilotKit v1 application to v2 -- updating package imports, replacing deprecated hooks and components, switching from GraphQL runtime to AG-UI protocol runtime, and resolving breaking API changes.

CopilotKit/CopilotKit · 48 tokens

react-core

@copilotkit/react-core — mount the CopilotKit provider (from @copilotkit/react-core/v2) in a Next.js App Router / React Router v7 / TanStack Start / SPA app, drop in CopilotChat/CopilotPopup/CopilotSidebar (v2 chat components ship from react-core/v2 — NOT react-ui, which is CSS-only in v2), access and subscribe to…

CopilotKit/CopilotKit · 191 tokens

implementing-command-palettes

Use when building Cmd+K command palettes in React - covers keyboard navigation with arrow keys, keeping selected items in view with scrollIntoView, filtering with shortcut matching, and preventing infinite re-renders from reference instability.

AgentWorkforce/relay · 48 tokens

formkit

Use when working with FormKit forms, validation, schema, or custom inputs in React, Vue, or Nuxt projects.

formkit/formkit · 28 tokens

novu-inbox-integration

Integrate Novu's in-app notification inbox into web applications. Supports React, Next.js, and vanilla JavaScript. Includes the Inbox component (bell icon + notification feed), composable components (Bell, Notifications, InboxContent, Preferences), headless hooks, branded theming, custom render props, multi-tenancy…

novuhq/novu · 111 tokens

react-email

Use when creating HTML email templates with React components - welcome emails, password resets, notifications, order confirmations, newsletters, or transactional emails.

novuhq/novu · 30 tokens