@molecule/app-fonts-inter
v1.0.1
Published
Inter font provider for molecule.dev
Maintainers
Readme
@molecule/app-fonts-inter
Auto-generated, AI-first package reference for the molecule.dev ecosystem. It is written to be read by coding agents as much as by people, and is generated from this package's source — edit
src/index.tsJSDoc, not this file.
Inter font bond for molecule.dev — a modern sans-serif designed for screens.
Exports a ready-made FontDefinition (font, role sans) with
locally-served TTF faces (regular 400, bold 700, variable 100-900).
Quick Start
import { setFont } from '@molecule/app-fonts'
import { font } from '@molecule/app-fonts-inter'
setFont(font) // once, at app startup — before first paintType
provider
Installation
npm install @molecule/app-fonts-inter @molecule/app-fontsAPI
Constants
font
Inter font definition — modern sans-serif designed for screens.
const font: FontDefinitionCore Interface
Implements @molecule/app-fonts interface.
Injection Notes
Requirements
Peer dependencies:
@molecule/app-fonts^1.0.1
Runtime Dependencies
@molecule/app-fontsWire with
setFont()from@molecule/app-fonts, never a rawbond('font', …)—setFont()is what sets the--mol-font-sansCSS variable and injects the@font-facerules; a raw bond registers the definition but renders nothing.Serve this package's
fonts/directory at the public path/fonts/(e.g. copynode_modules/@molecule/app-fonts-inter/fonts/*to the app'spublic/fonts/). Every@font-facesrc is/fonts/<file>; missing files silently 404 and the fallback stack renders instead.Fills the
sansrole only —serif/monostay on system stacks unless another font bond is wired. Consume viavar(--mol-font-sans), never a hardcodedfont-family.
