Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update font docs #2015

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions docs/pages/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,21 +348,14 @@ variation_groups:
CFPB's default brand font and fallback.

`--font-stack: 'Avenir Next', Arial, sans-serif;`
- variation_name: '@font-face file path'
variation_description: >-
Use this variable to point to the file containing your `@font-face`
rules. To use none, set it to an empty string.

`@font-face-path: 'licensed-fonts.scss';`
- variation_name: Font source
variation_description: >-
Use this variable to specify where the fonts declared in
`licensed-fonts.scss` are located when self-hosting the font files.
Can be either a relative or absolute path.
There is a Sass mixin for specifying the path to the woff and woff2 font files for the CFPB default brand font, Avenir Next.
Pass in the path to the files. The path can be either a relative or absolute path.

```

@cf-fonts-path: '/static/fonts'`;
@include licensed-font('/path/to/fonts/woff/files')`;

```
---