Typography
Avenir webfonts (Roman 400, Medium 500, Heavy 800, Black 900) plus the full Figma type scale as SCSS maps and mixins.
@use '@presencelearning/styles/typography' as t;
.heading { @include t.h1;}.section { @include t.h6;}.label { @include t.overline;} // adds text-transform: uppercase.custom { @include t.apply(t.$body-1);}.foo { font-family: t.$font-family-base; font-weight: t.$font-weight-bold;}Type scale
Section titled “Type scale”h1 h2 h3 h4 h5 h6 subtitle-1 subtitle-2 body-1 body-2 button caption overline | Weight | File | Style |
|---|---|---|
| 400 | avenir-roman-400-webfont.{woff,woff2} | Regular |
| 500 | avenir-medium-500-webfont.{woff,woff2} | Medium |
| 800 | avenir-heavy-800-webfont.{woff,woff2} | Bold (Avenir Heavy) |
| 900 | avenir-black-900-webfont.{woff,woff2} | Black |
The package’s @font-face rules reference fonts via relative ./fonts/... URLs, which any modern bundler (Vite, webpack-sass-loader) resolves automatically. Direct file URLs are also available at @presencelearning/styles/fonts/....