@earendil-works/elanor-fonts
Self-hosted Mallos Serif, Commit Mono, and DepartureMono fonts with @font-face CSS.
npm install @earendil-works/elanor-fonts
Import once at the application entry:
import '@earendil-works/elanor-fonts/mallos-serif.css';
import '@earendil-works/elanor-fonts/commit-mono.css';
| Export | CSS family | Weights | Styles |
|---|---|---|---|
mallos-serif.css | Mallos Serif | 400–700 | normal, italic |
commit-mono.css | Commit Mono | 300, 400, 700 | normal |
departure-mono.css | DepartureMono | 400 | normal |
Mallos Serif is a variable font: one file per style covers every weight from 400 to 700 (source).
DepartureMono is the Lefos mono font. Import it only in apps that use the Lefos tokens. It has one weight, so browsers synthesize bold.
CSS uses relative URLs and font-display: swap. Without a bundler, serve the CSS and files/ directory together.
For preloading or custom CSS, import @earendil-works/elanor-fonts/files/<filename>. Commit Mono also ships its original .otf files for desktop installs; the CSS uses WOFF2.
All families use SIL OFL 1.1. Include the matching file from licenses/ when redistributing them.