Design system · DS0006

Use known design-system classes

Flag class names that Doctor cannot resolve as utilities or known selectors.
DS0006vite-doctor/design-systemuiwarnSuggestion

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.

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" />
Copyright © 2026