Overview - Why arbitrary values exist
What is it?
Arbitrary values in Tailwind CSS let you use custom styles that are not part of the default set. Instead of being limited to predefined sizes, colors, or spacing, you can write your own values directly in your class names. This gives you more control and flexibility when designing your webpage. It works by wrapping your custom value in square brackets inside the class name.
Why it matters
Without arbitrary values, you would be stuck using only the fixed options Tailwind provides. This can make your designs look repetitive or force you to write extra CSS. Arbitrary values solve this by letting you quickly add unique styles without leaving your HTML. This saves time and keeps your code clean and consistent.
Where it fits
Before learning arbitrary values, you should understand basic Tailwind utility classes and how Tailwind's design system works. After mastering arbitrary values, you can explore advanced customization like plugins, theming, and responsive design with custom breakpoints.