Design system · UI

DS0006Use known design-system classes

Flag class names that Doctor cannot resolve as utilities or known selectors.

Why it happens

Misspelled utilities have no styling effect. Doctor checks the Tailwind theme, class selectors in statically referenced global stylesheets, literal DOM selectors, and exact class selectors documented in Markdown. When the Tailwind theme cannot be built, Doctor uses the bundled utility grammar, which cannot validate theme tokens or suggest spellings.

Fix

Keep intentional hooks. For styling, verify the intended utility against the theme and correct its spelling or declare a new utility.

Example

Correct a utility name using the fallback grammar

Before

<div className="flex-cols" />

After

<div className="flex-col" />

Verify the fix

Run only this rule after editing so the report stays focused on the diagnostic you are closing:

pnpm vite-doctor . --extends design-system/strict --rules design-system/no-unknown-classes
Copyright © 2026