Skip to content

Commit

Permalink
feat(gatsby-design-tokens): Add "Inter" font stack (#21598)
Browse files Browse the repository at this point in the history
Available via `fonts.sans` and `fonts.inter`.

BREAKING CHANGE: `fonts.sans` now delivers the "Inter" font stack, not the `system` font stack anymore
fix: `fonts.sans` and `.brand` aliases
  • Loading branch information
fk authored Feb 20, 2020
1 parent c126d04 commit b870db9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/gatsby-design-tokens/src/fonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import preval from "preval.macro"

// TODO re:system-ui, keep an eye on https://github.com/primer/css/issues/838
const f = preval`
const system = sans = body = [
const system = body = [
"-apple-system",
"BlinkMacSystemFont",
"Segoe UI",
Expand All @@ -17,6 +17,8 @@ const f = preval`
"Noto Color Emoji",
]
const sans = inter = ["Inter", ...system]
const heading = brand = ["Futura PT", ...system]
const monospace = [
Expand All @@ -31,7 +33,7 @@ const f = preval`
const serif = ["Georgia", "Times New Roman", "Times", "serif"]
const fonts = { body, system, heading, monospace, serif }
const fonts = { body, system, sans, heading, brand, monospace, serif }
let fontsStrings = {}
for (const fontFamily in fonts) {
Expand Down

0 comments on commit b870db9

Please sign in to comment.