What do you want to do?
3 use cases
-
Block arbitrary Tailwind values in agent-written UI
Flag off-scale Tailwind values so agents use your theme's spacing, colors, and sizes instead.
- REPO
shadcn-ui/lint - Software and DevOps
- Intermediate
View prompt
Use the GitHub repo shadcn-ui/lint to set up the no-arbitrary-values rule in <project-path>. Follow the README ESLint setup for React, then run the lint command. Expected output: a list of arbitrary Tailwind values in the project, or zero errors. Verify that the rule reports a test class such as p-[13px] in one component file.
- REPO
-
Lock component styling with per-component contracts
Let pages change some styles on a component while keeping its size, shape, and font fixed.
- REPO
shadcn-ui/lint - Software and DevOps
- Advanced
View prompt
Use the GitHub repo shadcn-ui/lint to add a no-restyle contract for <component-name> in <project-path>. Write the contract in the ESLint config, then run the lint command. Expected output: the contract allows the listed classes and reports the others. Verify that one disallowed class on <component-name> produces the custom message from the config.
- REPO
-
Make coding agents fix Lint errors before finishing
Give the agent a Lint command and an instruction to run it and fix errors after every change.
- REPO
shadcn-ui/lint - Software and DevOps
- Intermediate
View prompt
Use the GitHub repo shadcn-ui/lint to set up the lint loop in <project-path>. Install the package, add the lint script, and add the README instruction to AGENTS.md. Expected output: npm run lint exits cleanly on the current code. Verify that a deliberate arbitrary value in one file makes the command report an error.
- REPO
What people are building with Lint
-
Tutorialthe web
Built a Vue todo lab to test @shadcn/lint against broken styling
The author set up @shadcn/lint in a small Vue todo app, deliberately broke the styling and captured the real ESLint findings: no-raw-colors and no-restyle caught a recolored shared button and named its existing primary, secondary, ghost and danger variants as the fix.
By Alexander Opalic (alexop.dev) on the web
-
Hands-onGitHub
Started a @shadcn/lint trial in the OpenHands frontend
OpenHands maintainers opened a trial branch adopting @shadcn/lint because agent written UI kept drifting off their design system, keeping no-arbitrary-values on while mapping their --oh design tokens into the Tailwind theme and replacing one off values such as rounded-[6px] with on scale classes.
By @enyst on GitHub
Real builds shared on X, Hacker News, Reddit, DEV and GitHub, summed up by Deduped from each post and its links; each card links to the original post. See what people are building with other repos
Quick start with Lint
- Check you have what it needs: Node.js 20.19 or later; A Tailwind v4 project (shadcn/ui is not required); ESLint 9.30 or later, or Oxlint 1.80 or later.
- Open shadcn-ui/lint on GitHub and read the README and license.
- Run
npm install -D @shadcn/lint eslint @typescript-eslint/parserin the project. - Create eslint.config.mjs with the shadcn plugin and the rule "shadcn/no-arbitrary-values": "error", as shown in the React ESLint setup.
- Run
npx eslint .and confirm it reports any existing arbitrary values. - Fix the reported files or add the Lint command to package.json as the Lint script.
These steps come from our top use case, Block arbitrary Tailwind values in agent-written UI, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for shadcn-ui/lint
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forFront-end developers and teams using coding agents to write React, Vue, or Svelte UI on a Tailwind v4 project.
- Why it is hot3.3k stars on GitHub as of Nov 6, 2026, launched Sep 2, 2026
- LanguageTypeScript
- Sourcegithub.com/shadcn-ui/lint · Back to Hot repos
Requirements
- Node.js 20.19 or later
- A Tailwind v4 project (shadcn/ui is not required)
- ESLint 9.30 or later, or Oxlint 1.80 or later
- A React, Vue, or Svelte project
Add this badge to your README
Maintain Lint? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/shadcn-ui-lint/?utm_source=github&utm_medium=badge&utm_campaign=shadcn-ui-lint)
HTML
<a href="https://dedupedai.com/use-cases/shadcn-ui-lint/?utm_source=github&utm_medium=badge&utm_campaign=shadcn-ui-lint"><img src="https://dedupedai.com/badge/shadcn-ui/lint.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about Lint
What is Lint?
A linter for Tailwind design systems that lets you define allowed styling and gives coding agents fix suggestions drawn from your own components and theme. It is an open-source project on GitHub: https://github.com/shadcn-ui/lint.
How do I use Lint?
Run npm install -D @shadcn/lint eslint @typescript-eslint/parser in the project; then create eslint.config.mjs with the shadcn plugin and the rule "shadcn/no-arbitrary-values": "error", as shown in the React ESLint setup; run npx eslint . and confirm it reports any existing arbitrary values. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is Lint for?
Front-end developers and teams using coding agents to write React, Vue, or Svelte UI on a Tailwind v4 project.
What can I do with Lint?
3 use cases so far, for example: Block arbitrary Tailwind values in agent-written UI; Lock component styling with per-component contracts; Make coding agents fix Lint errors before finishing. Each has steps and a copy-paste agent prompt.
What do I need to run Lint?
Node.js 20.19 or later; A Tailwind v4 project (shadcn/ui is not required); ESLint 9.30 or later, or Oxlint 1.80 or later; A React, Vue, or Svelte project.
What are alternatives to Lint?
Other hot AI repos in Software and DevOps: Skills, Claude Mem, Freellmapi, Andrej Karpathy Skills, Agent Desktop.
Is Lint safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.