Performance: Color names
LOW IMPACT
Using color names affects the CSS parsing and rendering speed slightly and can impact bundle size if many unique names are used.
div { background-color: #add8e6; }div { background-color: lightblue; }| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Color names (e.g., 'red') | None | 0 | Minimal | [OK] |
| Hex codes (e.g., '#ff0000') | None | 0 | Minimal | [OK] Good |