Compare
Compare the CSS and JavaScript of the most used federal component libraries. All comparisons are minified, gzipped, and measured in KB's.
Methodology
For a fair comparison, a representative sample of form controls were compared, basic and enhanced. The totals include JavaScript for the selected components and each library’s full default CSS.
React and React DOM are not included in the totals. Together they add about 68.71 KB of gzipped JavaScript to each React library measured.
Basic form controls
Includes text input, button, select, checkbox, radio, textarea and memorable date.
| Library | JS | CSS | Total |
|---|---|---|---|
| USWDS | 0.00 | 59.75 | 59.75 |
| USWDS + Tailwind (React) | 17.25 | 15.90 | 33.16 |
| MetroStar Comet | 24.88 | 59.75 | 84.63 |
| Trussworks | 42.63 | 60.44 | 103.07 |
| CMS Design System* | 38.93 | 23.19 | 62.12 |
| VA Design System | 66.19 | 46.78 | 112.97 |
Enhanced form controls
Includes the minimal form controls plus combo box, input mask, date picker and character count.
Versions measured
- USWDS: 3.14.0
- USWDS + Tailwind (React): 2.0.0-beta.2
- MetroStar Comet: 3.14.0
- Trussworks: 13.0.0
- CMS Design System: 18.1.0
- VA Design System: 56.19.0