Help
Troubleshooting
Most problems show up in npx onsystem inspect: from the app's folder it prints the root, the config it read, how it found the design system (detected), and every component and token category it extracted; from a monorepo root, the same for each project. npx onsystem inspect --explain adds why: every candidate zero config looked at (components.json, the package's exports, each dependency named like a design system, a flat src/) and why it was taken or turned down, the resolved config, tokens whose value reads a custom property no token file defines, and components whose props did not resolve, with the reason. Start there.
inspect found nothing
Link to the section inspect found nothinginspect prints Components (0 + 0 parts), or check says No design system found (no components or color tokens).
Run it from the app's folder, the one with the app's
package.jsonand, in a shadcn/ui project,components.json, or from the monorepo root: see the next section.Read the
detectedline, or runinspect --explainfor each candidate's reason (the ui alias ~/ui resolves through neither tsconfig paths nor a workspace package,its exports point at build output (node_modules/@acme/ui/dist/index.mjs), not at component sources). It says how the components were found. With nodetectedline, none of the zero-config layouts matched: acomponents.json, a design-system package'sexports, a dependency named like a design system (@acme/ui), in the workspace or installed withexportsthat point at its component sources, or a flatsrc/of components that wrap a primitives library.Point at them with a config file.
npx onsystem initasks where the components and tokens are and writes it. Anonsystem.config.jsonin the app's folder with acomponentsglob is enough; addtokenswhen the stylesheet is not one of the default paths:{ "$schema": "https://unpkg.com/onsystem/schema.json", "components": ["src/ui/**/*.tsx"], "tokens": ["src/styles/theme.css"]}Tokens (0), orNo color tokens found, means no stylesheet or*.tokens.jsondefined any. Settokensin the config to the file with the custom properties or the Tailwind@theme.
In CI, check --require-design-system turns "nothing found" into a failure (exit code 2), so a moved design system cannot pass by checking nothing. An app on MUI passes with MUI's components alone: when its palette cannot be read (built in code or from Sass variables), check says that no-hardcoded-color did not run rather than fail.
A monorepo root misses a project
Link to the section A monorepo root misses a projectAt a workspace root, inspect lists every project it found (apps/remix (@documenso/remix), with what was detected in it) and then Without a design system, the packages where zero config found no components. On Documenso, inspect at the root finds apps/remix with @documenso/ui's 99 components; on Cal.com, apps/web, packages/ui, packages/coss-ui, packages/platform/atoms and the feature packages that use @calcom/ui. How projects are found.
A package is listed without a design system. Run
npx onsystem inspect --root packages/that-oneto see what zero config looked at there, and give it anonsystem.config.jsonwithcomponentsif its layout is not one zero config reads: a package with a config of its own is always a project.The root is read as one project. A
components.json, acomponents/uifolder at the root, or a root config that setscomponentsmakes the root one project, as before. Movecomponentsinto each app's config, or remove it from the root's.The MCP tools answer for the wrong app. At a root the tools need the file being edited:
get_componentwithpath,check_uiwithpathorfilename. Without one they list every project together, and a name that two packages use (Buttonin@calcom/uiand@coss/ui) comes back as a list to pick from.One app per job in CI:
working-directory: apps/webchecks that app alone, and--require-design-systemthere fails when its design system goes missing; at the root it fails only when no package has one.
Components show 0 props
Link to the section Components show 0 propsinspect lists components that wrap a library, such as a Radix Dialog or DropdownMenu, with 0 props, and no-unknown-prop never reports on them.
Their props come from the types of the packages they wrap, so they resolve only when the project's dependencies are installed. Without node_modules, extraction marks those props as open rather than guess, and no-unknown-prop skips the component. inspect --explain lists them under Props and says whether the dependencies are installed. Without node_modules, check, check_ui and plain inspect say how many components no-unknown-prop skips. On a checkout of Vercel's chatbot without its dependencies, Dialog, DropdownMenu and Popover show 0 props; in the demo, with them, Dialog has 5.
Install the dependencies (npm install, pnpm install, …) before running inspect, check or the server, and in CI before check (npm ci). If the counts still show 0, run once with --no-cache.
A min-release-age policy blocks npx
Link to the section A min-release-age policy blocks npxThe Claude Code hook says once that onsystem could not check …: npm found no version of onsystem@<version> it may install (ENOVERSIONS), or npx onsystem fails with ENOVERSIONS.
npm's min-release-age (a number of days, usually in .npmrc) makes npm and npx install only versions published longer ago than that. pnpm's minimumReleaseAge does the same for pnpm, in minutes, and defaults to a day from pnpm 11. The plugin runs the exact version it was released with, so for the first days after a release that version can be too new for the policy; npx onsystem without a version takes the newest version that is old enough.
Install it in the project as a dev dependency. The hook and CI then run that copy, which your lockfile pins, instead of npx:
npm install --save-dev onsystem.With pnpm, exempt it:
minimumReleaseAgeExclude: [onsystem]inpnpm-workspace.yaml(pnpm 10.16 or later).For one command, override the setting:
npx --min-release-age=0 onsystem check ..Or wait until the release is older than the policy's limit.
A status color has no token
Link to the section A status color has no tokencheck warns No token has this hue on a green, yellow or blue, such as a status badge's bg-green-100 text-green-800: the theme has no token of that hue, as shadcn/ui's themes have no success, warning or info. It is a warning: check exits 0 on it unless the warnings pass --max-warnings, and the Claude Code hook does not block.
Add the token to the theme: status colors has the CSS for
success,warningandinfo, light and dark. Then writebg-success/10 text-success. Other colors near those hues become errors too, a brand indigo among them: what the recipe changes lists them.Or keep the color and say why on the line above:
// onsystem-disable-next-line no-hardcoded-color -- <reason>, or{/* onsystem-disable-next-line no-hardcoded-color -- <reason> */}between JSX children.
Findings in code from a shadcn registry
Link to the section Findings in code from a shadcn registrycheck . reports files in components/ai-elements, components/signoff-ui or another folder that npx shadcn add filled from a registry other than shadcn/ui's. Zero config skips the folder of each registry in the registries of components.json, read-only, and checks other registry code as your own: a folder of a registry it does not name, or files a registry copies loose into components/. Name the registry in components.json, list its folder in components, or turn the rules off for it in overrides: code from shadcn registries has the details, and why exclude is not enough.
Still stuck
Link to the section Still stuckOpen an issue with the output of npx onsystem inspect, the smallest snippet that shows the problem, and the version (npx onsystem --version). False positives are the reports that help most.