arbitrary value
Tailwind's square-bracket syntax, such as bg-[var(--brand)] or p-[13px], for using a value that is not in the theme.
In more detail
Arbitrary values are an escape hatch for one-off cases. In a design system they should be rare; a value used repeatedly belongs in the theme as a token.
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