@capsizecss/core
4.1.3 · 12 Nov 2025MIT205.9k / weekRepositoryHomepagenpmAtom feed
4.1.3 is the newest release of 4.x.
In short
1 fixed
Release note
Patch Changes
createFontStack: Prefer
postscriptNameorfullNamefor fallback sourceThe
@font-facedeclaration aliases generated bycreateFontStacknow favourpostscriptNameandfullNameoverfamilyNamefrom the provided metrics when selecting a local font face as a fallback.MDN recommends using either
fullNameandpostscriptNamewhen accessing local fonts to ensure the best matching across platforms, while also enabling selection of a single font face within a larger family, e.g.Arial BoldorArial-BoldMTwithinArial.
For details see MDN.⚠️ Note: Falling back to
familyName(original behaviour) makes this work backwards compatible with older versions of font metrics.
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.