Installation
systomic is an Oxlint JS plugin with a Stylelint companion. Install it next to Oxlint, extend a preset, and every rule runs on your next lint.
Install
pnpm add -D systomic oxlintSet up systomic in this project. systomic is an Oxlint plugin (with a Stylelint companion) that checks UI code against the design system. Docs for agents: https://systomic.dev/llms.txt (every page is also available as Markdown at its URL + ".md"). Read https://systomic.dev/installation.md and https://systomic.dev/configuration.md before you change anything.
The settings matter: with the wrong alias, packages or stylesheets, rules silently miss components and classes. Don't guess them, and don't just copy the defaults.
1. Look at the project first, without changing anything:
- package manager, monorepo layout, existing Oxlint / ESLint / Stylelint config and lint scripts
- import aliases (tsconfig "paths"), where the design-system components live (app folder, workspace package or published package)
- how styles are written: Tailwind, CSS modules, global stylesheets, StyleX, inline styles; class helpers (cn, clsx, cva, tv)
- UI and overlay libraries (Radix, Base UI, …), the icon library, the animation library, date libraries (date-fns, dayjs, moment, Luxon)
2. Ask me about the settings before you write them. If you have a tool for asking questions with options (question cards, e.g. AskUserQuestion in Claude Code, request_user_input in Codex), use it; otherwise ask in chat, a few questions at a time. Put your recommendation first, based on what you found, and say why. Ask about:
- presets: recommended.json only, or also suggestions.json (good practice, warnings only)
- Stylelint for .css/.scss files: yes or no (only if the project has stylesheets)
- settings.systomic.alias: confirm the mapping you found (default { "@/": "src/" })
- settings.systomic.packages: which packages to follow for annotations (recommended: only the design-system packages, so large libraries like icon sets aren't parsed)
- settings.systomic.stylesheets: global stylesheets whose classes are used by name
- severity during rollout: keep the preset severities, or start with everything on "warn" so CI doesn't break
- rules to switch off or tune, where the project clearly differs from the defaults: prefer-temporal / prefer-temporal-over-libraries (is moving to Temporal wanted? which date libraries to allow for now), animation-duration (limits; components that should count as modal/dropdown/toast), no-hardcoded-values (ignore the design-system folder itself; ignore globs are relative to the nearest package.json, so in a monorepo scope them to one package with Oxlint overrides), required-parts (parts of composable components), class helpers beyond cn/clsx/cva/tv (the attributes / callees rule options: not a setting, they go on each rule that reads classes, see https://systomic.dev/configuration.md)
3. Then set it up:
- install with the project's package manager: systomic and oxlint (and stylelint if chosen) as dev dependencies
- extend the chosen presets in .oxlintrc.json and add the settings under "settings": { "systomic": { … } }, plus rule options next to the rules
- if chosen, stylelint.config.mjs with extends: ["systomic/configs/stylelint.mjs"]
- lint scripts in package.json if there are none
4. Offer annotations, don't add them unasked: @systomic-allow / @systomic-disallow (what call sites may or may not pass), @systomic-parts (required parts) and @systomic-overlay on the main design-system components (see https://systomic.dev/annotations.md). Show me the list first.
5. Run the linters and give me a short summary: findings per rule, and which ones look like real issues vs. settings that need tuning. Don't fix findings in bulk; ask first.Open inClaude CodeCodexGrok BuildGrok Bot
Stylelint is optional. Add it when you want the same checks in .css and .scss files:
pnpm add -D stylelintOxlint
Extend one or both presets in .oxlintrc.json. They register the plugin, so there is nothing else to wire up.
.oxlintrc.json
123456{ "extends": [ "./node_modules/systomic/configs/recommended.json", "./node_modules/systomic/configs/suggestions.json" ]}recommended.json: violations of the design-system contract,errororwarn.suggestions.json: good practice that is not strictly part of the design system. Alwayswarn, so it never fails CI.
Stylelint
The CSS counterparts of focus-visible, origin-aware-scale, input-font-size, animation-duration, prefer-dvh and prefer-transition:
stylelint.config.mjs
1export default { extends: ["systomic/configs/stylelint.mjs"] };Run it
pnpm oxlintpnpm stylelint "src/**/*.css"Rules with an autofix (focus-visible, no-hardcoded-values) apply it with oxlint --fix. Quick-fixes and suggestions show up in editors with the Oxc extension.
Next: tell systomic where your components live in Configuration.