@capsizecss/metrics
4.5.0 · 17 Nov 2026MIT472.5k / weekRepositorynpmAtom feed
1.3.0 is the newest release of 1.x.
In short
2 new
Release note
Minor Changes
fontFamilyToCamelCase: Expose utility to convert family name to import name
A helper function to support tooling that needs to convert the font family name to the correct casing for the relevant metrics import.
import { fontFamilyToCamelCase } from '@capsizecss/metrics'; const familyName = fontFamilyToCamelCase('--apple-system'); // => `appleSystem` const metrics = await import(`@capsizecss/metrics/${familyName}`);entireMetricsCollection: Expose all metrics indexed by family name
Provides the entire metrics collection as a JSON object, keyed by font family name.
⚠️ CAUTION: Importing this will result in a large JSON structure being pulled into your project!
It is not recommended to use this client side.
import { entireMetricsCollection } from '@capsizecss/metrics/entireMetricsCollection'; const metrics = entireMetricsCollection['arial'];
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.