{
  "$schema": "../../schema.json",
  "id": "playfair",
  "type": "font-pair",
  "title": "Playfair Display + Source Sans 3",
  "summary": "Free font pair (Google Fonts): classic, luxury, magazine.",
  "tags": [
    "font-pair",
    "classic",
    "luxury",
    "magazine",
    "serif"
  ],
  "version": "1.0.0",
  "license": "OFL",
  "params": [
    {
      "name": "display",
      "type": "string",
      "default": "Playfair Display",
      "description": "headline family",
      "group": "main",
      "control": "font"
    },
    {
      "name": "text",
      "type": "string",
      "default": "Source Sans 3",
      "description": "body family",
      "group": "main",
      "control": "font"
    },
    {
      "name": "mono",
      "type": "string",
      "default": "Source Code Pro",
      "description": "labels and code family",
      "group": "main",
      "control": "font"
    },
    {
      "name": "displayWeight",
      "type": "number",
      "default": 600,
      "description": "headline weight",
      "group": "main",
      "min": 100,
      "max": 900,
      "step": 100
    },
    {
      "name": "tracking",
      "type": "number",
      "default": -0.01,
      "description": "headline letter spacing (em)",
      "group": "main",
      "min": -0.1,
      "max": 0.1,
      "step": 0.005
    }
  ],
  "install": {
    "kind": "tokens",
    "entry": {
      "fonts": {
        "display": {
          "family": "Playfair Display",
          "weights": [
            500,
            700
          ],
          "css": "https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&display=swap",
          "license": "OFL"
        },
        "text": {
          "family": "Source Sans 3",
          "weights": [
            400,
            600
          ],
          "css": "https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600&display=swap",
          "license": "OFL"
        },
        "mono": {
          "family": "Source Code Pro",
          "weights": [
            400
          ],
          "css": "https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400&display=swap",
          "license": "OFL"
        }
      },
      "type": {
        "reference": 1080,
        "display": {
          "font": "display",
          "weight": 600,
          "size": 200,
          "lineHeight": 0.95,
          "tracking": "-0.01em"
        },
        "title": {
          "font": "display",
          "weight": 600,
          "size": 96,
          "lineHeight": 1,
          "tracking": "-0.01em"
        },
        "body": {
          "font": "text",
          "weight": 400,
          "size": 28,
          "lineHeight": 1.45,
          "tracking": "0em"
        },
        "caption": {
          "font": "mono",
          "weight": 400,
          "size": 20,
          "lineHeight": 1.3,
          "tracking": "0em"
        }
      }
    }
  },
  "files": [],
  "requires": {
    "engine": ">=0.2.0",
    "fonts": [
      "Playfair Display",
      "Source Sans 3",
      "Source Code Pro"
    ]
  },
  "usage": "import { loadBrand } from 'paper-motion/brand';\n\nconst B = await loadBrand(); // loads the fonts before the first frame\nB.style(title, 'display');\nB.style(caption, 'caption');",
  "notes": [
    "Fonts load from Google Fonts at render time; for offline renders, download the files into brand/assets/fonts/ and set `file` instead of `css`.",
    "Sizes are for a 1080 px short side; B.type() scales them for other formats."
  ],
  "mood": [
    "luxury",
    "editorial"
  ],
  "voice": "serif",
  "when": [
    "the brand should sound luxury, editorial",
    "a serif headline voice with a plain body face"
  ]
}