Performance: Why arbitrary values exist
MEDIUM IMPACT
Using arbitrary values affects CSS bundle size and rendering performance by allowing precise styles without bloating the stylesheet.
<div class="m-[4.25rem]"></div><div class="m-17"></div>| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Using many predefined Tailwind classes | Low | Minimal | Low | [OK] Good |
| Using many arbitrary values excessively | Low | Minimal | Medium (due to complex CSS selectors) | [!] OK |
| Using inline styles instead of arbitrary values | Low | Minimal | Low | [X] Bad (increases inline style usage) |