Fidel vs design token linters
Design token linters such as @shadcn/lint, onsystem and Stylelint read your source files in the editor and before commit. Fidel checks the rendered preview page on the pull request. Teams with a design system can run a linter and Fidel at different stages.
Last updated: November 11, 2026
A design token linter flags raw colors, arbitrary values and unknown classes in source files, usually as you type. Fidel runs after the preview deploys. It compares the colors the page renders with your design system tokens, and flags raw button and input elements where your design system has a matching component.
The linters on this page
These are the design token linters we reviewed on November 11, 2026. All five read source files and run in the editor, a pre-commit hook or your own CI, with no hosted service.
| Tool | What it checks | Where it runs | npm downloads, Nov 4 to 10 |
|---|---|---|---|
| @shadcn/lint | Rules for Tailwind v4 design systems: no-restyle, raw colors, arbitrary and unknown classes. React, Svelte and Vue | ESLint or Oxlint | About 3.1 million |
| onsystem | Hardcoded color, spacing and radius. A native <button> where a Button exists. Unknown components, props and cva or tv variants. React only | CLI with a baseline file, GitHub Action that annotates changed lines, ESLint plugin, MCP server | 218 |
| Deslint | Arbitrary Tailwind colors, spacing, typography, z-index and radius, inline styles, plus accessibility rules. React, Vue, Svelte, Astro, Angular, HTML | ESLint plugin, CLI, GitHub Action with a pull request comment, MCP server | 416 (ESLint plugin) |
| stylelint-declaration-strict-value | Requires the CSS properties you list to use a variable, function or allowed keyword. Does not read your token values. CSS, SCSS and Less | Stylelint | 926,553 |
| Company ESLint plugins | Rules written for one company's design system, such as @metamask/eslint-plugin-design-tokens and @atlaskit/eslint-plugin-design-system | ESLint | 69,561 and 7,115 |
From each project's README and npm page, as of November 11, 2026. Download counts from api.npmjs.org for November 4 to 10, 2026. Deslint's last release was v0.10.0 on May 14, 2026.
Feature comparison
A linter runs on source files before a preview exists. Fidel runs on the preview page once the pull request deploys it. The rows below compare when each runs, what it reads, and what it reports.
| Fidel | Design token linters | |
|---|---|---|
| When it runs | On the pull request, after the preview deploys | In the editor, in a pre-commit hook and in CI |
| Input | The rendered preview page, plus the pull request's code | Source files |
| Color checks | Colors rendered on the page, compared with your color tokens | Raw color values and classes written in source |
| Token drift | Reports a token whose value on the page differs from its declared value | Not described in the docs we reviewed |
| Component checks | Raw <button> and <input> where the design system has a matching component |
onsystem flags a native <button> where a Button exists, and checks component props and variants |
| Output | One pull request comment and a check run, with a Not verified list | Editor errors, CLI output or CI annotations. Deslint's Action posts a pull request comment |
| Setup | npx usefidel init and the Fidel GitHub App |
Install a package and add a config file |
| Price | Free plan with 10 checks a month. Pull request checks start on Pro | Open source. Deslint lists a Teams plan as coming soon |
Linter details from @shadcn/lint, onsystem, Deslint and stylelint-declaration-strict-value, as of November 11, 2026. Deslint pricing from deslint-docs.vercel.app/pricing.
What linters do well
A linter gives feedback in the editor, before a commit and before a preview exists. It costs nothing, runs offline, and checks every file, including code paths a preview page never shows.
@shadcn/lint is the most downloaded of the five, at about 3.1 million installs a week. onsystem adds React component rules. Its prefer-design-system-component rule flags a native <button> where your design system exports a Button, and it checks props and variants against cva and tv definitions.
Stylelint with stylelint-declaration-strict-value covers plain CSS, SCSS and Less files. It requires a variable or function for the properties you list, without checking which token is used.
What Fidel adds on the pull request
Fidel checks the preview page against your color tokens. A color that matches no token in your design system is reported with the element and the value. A token that resolves to a different value on the page is reported as drift.
In the pull request, Fidel also flags a raw <button> or <input> when your design system has a matching component, and names the component. onsystem checks the same pattern in source as you write.
Results arrive as one comment listing confirmed violations, possible bypasses, and Not verified items with reasons. Fidel blocks a merge only if you turn on failOnDrift.
Why a linter and a rendered check can disagree
A linter reads what is written in a file. The page a browser renders can contain colors that no single file states, and a file can contain values the preview never renders.
- A color produced by combining Tailwind classes, or set by a CSS-in-JS theme at runtime, only exists as a final value on the page.
- A third-party stylesheet, for example from a date picker or chat widget, adds colors your linter never reads.
Which to use when
Add Fidel if
- Your app is React or Next.js, with tokens in Tailwind config, CSS variables or shadcn/ui
- Colors on your pages come from themes, class combinations or third-party styles
- The person who owns the design system wants evidence on each pull request without reading every diff
- You want token drift reported along with hardcoded values
A linter alone is enough if
- Your styles are Tailwind classes and CSS variables written in your own files
- You want feedback as you type and before commit
- You need checks in Vue, Svelte or Angular files, which @shadcn/lint and Deslint support
- You do not want a hosted service or a GitHub App
Teams can run a linter in the editor and a pre-commit hook, and Fidel on the pull request preview. The linter flags values as they are typed, and Fidel checks what those values render.
Frequently asked
Check what your pull requests render
Keep your linter. Add Fidel to check the preview page against your design system, with comments only until you turn on blocking.
Get started free