Performance: @forward directive for re-exporting
MEDIUM IMPACT
This affects CSS build time and bundle size by controlling how styles are combined and re-exported.
@forward 'buttons'; @forward 'forms'; @forward 'layout';
@import 'buttons'; @import 'forms'; @import 'layout';
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Using multiple @import statements | No direct DOM impact | No direct reflows | Higher paint cost due to larger CSS | [X] Bad |
| Using @forward to re-export styles | No direct DOM impact | No direct reflows | Lower paint cost due to smaller CSS | [OK] Good |