class prefix
A fixed string put before every generated class or variable name, such as ds:, so a design system's styles cannot clash with another library's.
In more detail
Tailwind version 4 supports a prefix option on its import. Prefixing is useful when a design system is embedded in pages that already use other CSS.
Related terms
- Tailwind CSS — A CSS framework made of small single-purpose utility classes, such as bg-blue-600 or px-4, that you combine in markup.
- utility class — A CSS class that does one small job, such as p-4 for padding or text-white for text colour.
Taught in
- Tailwind CSS v4 Engine: CSS Variables & Theme Extensions — Design Systems & Component Engineering