Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
## Features
* **fonts:** (breaking) Adds rebrand fonts, Mozilla Headline and Mozilla Text. Removes outdated Mozilla Brand font, Zilla Slab. New fonts will only support `woff2` format to simplify maintenance.
* **fonts:** Upgrade Inter font to version 4.1, drop WOFF 1.0 format (#1026)
* **css:** Add support for `$mq-max` to match viewports wider than maximum content width (#1039)
* **css:** Add `text-wrap: balance` to all headings (#910)
* **css:** Apply hover cursor from Details component to Details element (#948)

## Bug Fixes
* **assets:** Update @mozilla-protocol/assets to 5.4.0
* **tokens:** Update @mozilla-protocol/tokens to 6.0.0

## Migration Tips
* **fonts:** Any use of `font-mozilla` mixin should be replaced with `font-mozilla-headline`. NOTE: we recommend `font-mozilla-headline` only for text over 24px (below should be `font-mozilla-text`)
Expand Down
5 changes: 3 additions & 2 deletions docs/01-fundamentals/design-tokens.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@ context:
$mq-md: '(min-width: $screen-md)'
$mq-lg: '(min-width: $screen-lg)'
$mq-xl: '(min-width: $screen-xl)'
$mq-max: '(min-width: $content-max)'
$mq-short: '(max-height: 599px)'
$mq-tall: '(min-height: 600px)'
$mq-high-res: 'only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 1.5dppx), only screen and (min-resolution: 144dpi)'
fonts:
$font-stack-base: "Inter, X-LocaleSpecific, sans-serif"
$font-stack-firefox: "Metropolis, Inter, X-LocaleSpecific, sans-serif"
$font-stack-mono: "Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace"
$font-stack-mozilla-text: "'Mozilla Text', Inter, 'Helvetica Neue', Arial, X-LocaleSpecific, sans-serif"
$font-stack-mozilla-headline: "'Mozilla Headline', Inter, 'Helvetica Neue', Arial, X-LocaleSpecific, sans-serif"
$font-stack-mozilla-text: "'Mozilla Text', 'Helvetica Neue', Arial, X-LocaleSpecific, sans-serif"
$font-stack-mozilla-headline: "'Mozilla Headline', 'Helvetica Neue', Arial, X-LocaleSpecific, sans-serif"