When the scale does not fit, JIT allows one-off values in square brackets: w-[137px], top-[117px], bg-[#1da1f2], grid-cols-[1fr_500px_2fr].
Arbitrary properties and variants
[mask-image:linear-gradient(...)] escapes rare CSS. Combine with variants: hover:[color:var(--accent)].
Use responsibly
Repeated arbitrary values signal a missing theme token—promote to theme.extend. Arbitrary values bypass design system guardrails.
Important interview questions and answers
- Q: Why do arbitrary values need JIT/build?
A: Tailwind generates CSS for the exact value at compile time; infinite possibilities cannot be pre-baked. - Q: Arbitrary vs inline style?
A: Arbitraries still participate in variants (md:w-[300px]) and purge scanning; inline styles do not.
Self-check
- When should an arbitrary value become a theme token?
- Write an arbitrary width utility for 300px.
Interview prep
- Risk of arbitrary-[…] classes?
They escape the design system, are easy to mistype, and may not be detected by static scanners—use tokens first.