Overview - Arbitrary properties for unsupported CSS
What is it?
Arbitrary properties in Tailwind CSS let you write any CSS style directly inside your HTML classes, even if Tailwind doesn't have a built-in utility for it. This means you can add custom styles without leaving your HTML or writing separate CSS files. It uses square brackets to wrap the CSS property and value, like a shortcut for unsupported styles.
Why it matters
Without arbitrary properties, you would have to write extra CSS files or inline styles for anything Tailwind doesn't support. This breaks the fast workflow Tailwind offers and makes your code harder to maintain. Arbitrary properties keep your styles consistent, quick to write, and easy to manage all in one place.
Where it fits
Before learning arbitrary properties, you should understand basic Tailwind utilities and how Tailwind classes work. After this, you can explore advanced Tailwind features like plugins and custom configurations to extend Tailwind further.