Self-host the Proxima Nova font in a neatly bundled NPM package.
npm install @dannymichel/proxima-novaThe CSS and web font files to easily self-host the “Proxima Nova” font.
``javascript`
yarn add @dannymichel/proxima-nova // npm install @dannymichel/proxima-nova
Within your app entry file or site component, import it in.
`javascript`
import "@dannymichel/proxima-nova"; // Defaults to weight 400.
Supported variables:
- Weights: [400,700][italic,normal]
- Styles: [latin]
- Supported subsets:
Finally, you can reference the font name in a CSS stylesheet, CSS Module, or CSS-in-JS.
`css``
body {
font-family: "Proxima Nova";
}