Typography

Custom global typography inside src/theme/core/typography.

For version v5.


Install

npm install @fontsource-variable/inter

src/global.css

@import '@fontsource-variable/inter';

src/theme/core/typography.js

const primaryFont = setFont('Inter Variable');

Reference: