seek-oss/capsize
Flipping how we define typography in CSS. observed · 2026-08-28
Health v2 · maintenance only
96/100
- Activity 97
- Release rhythm 93
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 23
- age_days: 2282
- days_rel: 45
- days_push: 21
- n_releases_24m: 20
Adoption not part of the score
1716 stars · 47 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Capsize is a TypeScript library that uses font metadata to make CSS text sizing and layout predictable, sizing text by cap height and trimming whitespace above capitals and below the baseline. It provides style generation APIs, a font metrics package, and integrations with CSS-in-JS tools like vanilla-extract.
Use cases
- trim leading whitespace above capital letters in css text
- align text baselines across different fonts
- size typography by cap height instead of font size
- remove extra space below the text baseline
- generate css for predictable line height and leading
- integrate font metric based typography with css-in-js frameworks
When to choose
- you need pixel-precise vertical text alignment in web layouts
- you want consistent spacing between text and adjacent elements
- you use vanilla-extract or css-in-js and want leading trim support
When to avoid
- you only need simple typography without baseline trimming
- your project is not web/css based
- you cannot depend on font metrics for your fonts
Facets
library · maturity active
css-framework ui-components developer-tools frontend web-development web-design browser typography font-metrics leading-trim css-in-js baseline-alignment vanilla-extract nodejs web-server
3 sources
- readme: https://github.com/seek-oss/capsize · fetched 2026-08-28 · 4f190eb7950e
- homepage: https://seek-oss.github.io/capsize/ · fetched 2026-08-29 · ebddc9a2230a
- registry_npm: https://registry.npmjs.org/capsize · fetched 2026-08-29 · 9d2cf656014b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| seek-oss/capsize | main | 96 |
For agents
markdown · JSON · MCP: product_card(name="seek-oss/capsize")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem