Coding agents (Claude, Cursor, Copilot, v0 …) build better UI when they know the kit. Point them at these files, or paste the snippet into your project.
Machine-readable docs
Generated from the registry on every build, so they never drift from the code.
llms.txtIndex of every page and component, in the llmstxt.org format.llms-full.txtRules, tokens, and each component's import, example and source in one file./r/<name>.mdOne component at a time. Every page's Copy page menu links its own.
$ curl -fsSL https://ui.digitexa.com/llms-full.txtProject snippet
Paste into AGENTS.md, CLAUDE.md or .cursor/rules.
This project uses Digitexa UI. Before writing UI, read https://ui.digitexa.com/llms-full.txt and follow its rules: reuse components in components/ui, add missing ones with the dx CLI, and style only with the semantic --dx tokens.
You are working in a project that uses Digitexa UI: copy-paste React components (Next.js, Tailwind CSS v4, Radix) whose source lives in the project, usually under components/ui/ (see dx.json for the real paths). Follow these rules when you write or change UI.
Use what is there
- Before writing UI, look in
components/ui/and reuse an existing component. Add missing ones with the CLI (dx add <name>) instead of hand-writing a copy.dx listshows everything available. - Components are plain files the project owns. Change them in place when the design needs it; don't wrap a component just to override its styles.
- Import as
@/components/ui/<name>and@/lib/utils(or the aliases indx.json). - Compose with
cn()from@/lib/utilsso later classes win:className={cn("…", className)}.
Styling
- Never use raw colors (
#hex,rgb(),bg-blue-500,text-gray-600). Use the semantic utilities, which follow light/dark mode and the accent automatically:- surfaces:
bg-bg,bg-bg-subtle,bg-surface,bg-surface-raised,bg-muted,bg-selected - text:
text-fg,text-fg-muted,text-fg-subtle,text-fg-disabled - lines:
border-border,border-border-strong,border-input,ring-ring - brand:
bg-accent+text-accent-fg; soft:bg-accent-subtle+text-accent-subtle-fg - semantic:
success,warning,danger,info— solidbg-danger, tintbg-danger-subtle - work statuses:
status-backlog,status-todo,status-progress,status-review,status-done
- surfaces:
- Text placed on a
*-subtlebackground must use the matching*-fgcolor (e.g.bg-success-subtle text-success-fg,bg-status-review-subtle text-status-review-fg,bg-danger-subtle text-danger-fg-subtle). These pairs are contrast-checked; other combinations are not. - Sizes: controls use
h-(--dx-control-sm|md|lg)(24 / 30 / 36px, smaller withdata-density="compact"), table rowsh-(--dx-row-height). Don't hard-codeh-8/h-10for controls. - Type scale is dense:
text-2xs10.5,text-xs11.5,text-sm12.5,text-base13 (default),text-md14,text-lg16,text-xl19,text-2xl24,text-3xl30. Spacing is Tailwind's 4px scale. - Radius:
rounded-sm4,rounded-md6 (controls),rounded-lg9 (cards, menus),rounded-xl12. - Shadows:
shadow-sm(controls, cards),shadow-md,shadow-lg(menus, dialogs). - Layering:
z-(--dx-z-sticky),z-(--dx-z-dropdown),z-(--dx-z-overlay),z-(--dx-z-toast),z-(--dx-z-tooltip). - Motion: durations
duration-(--dx-motion-fast)/duration-(--dx-motion); they drop to 0 for reduced motion.
Theming
- Theme, accent and density are attributes on
<html>:data-theme="light|dark"(omit to follow the system),data-accent="ember|cobalt|moss|plum|rose|graphite",data-density="compact",data-motion="reduce|full",data-sidebar-density="compact",data-sidebar="collapsed". data-accentanddata-densityalso work on any element to restyle one region.- Token values live in the theme stylesheet (
dx-tokens.css). Change a value there rather than overriding it in components. Tokens are prefixed--dx-.
Accessibility
- Icon-only buttons need
aria-label; pair inputs with<Label htmlFor>or thefieldcomponents. - Use
aria-invalidon inputs to show the error state; describe errors witharia-describedby. - Buttons default to
type="button". Links rendered as buttons use<Button asChild><a …/></Button>; disable them witharia-disabled, notdisabled. - Keep Radix structure intact (Trigger/Content/Portal) so focus management and keyboard support keep working.
Patterns
- App frame:
AppShell+Sidebar(+SidebarTriggerin theTopbar) fromsidebar. - Key numbers:
StatGroup+Statfromcard. Status:StatusBadge/StatusIcon. Breakdown bars:Meter. - Menus:
DropdownMenu; search and actions:CommandDialogwithuseCommandShortcut()for ⌘K. - Confirm destructive actions with
AlertDialog(orDialog) and adangerbutton.