Design system · DS0006
Use known design-system classes
Flag class names that Doctor cannot resolve as utilities or known selectors.
Run this rule
pnpm vite-doctor . --extends design-system/strict --rules design-system/no-unknown-classes
Why it matters
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.
Recommended fix
Keep intentional hooks. For styling, verify the intended utility against the theme and correct its spelling or declare a new utility.
Useful links
Example
Correct a utility name using the fallback grammar
Before
<div className="flex-cols" />
After
<div className="flex-col" />