Performance: Gradient utilities (from, via, to)
MEDIUM IMPACT
This affects the browser's paint performance and visual rendering speed by controlling how gradients are drawn on elements.
@apply bg-gradient-to-r from-red-500 via-green-500 to-blue-500;
background: linear-gradient(to right, #ff0000, #00ff00, #0000ff);
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Complex manual gradient CSS | Minimal | 0 | High due to multiple color stops | [X] Bad |
| Tailwind gradient utilities (from, via, to) | Minimal | 0 | Lower paint cost with GPU acceleration | [OK] Good |