Spectrum Components API

Schema version: 6.0.0

Body

Body is a typography component primarily used within Spectrum components and for blocks of text.

PropertyValuesDefault valueRequired
script
latin / han / arabic / hebrew
The script of the text.
latin
classification
serif / sans serif
Typography classification
sans serif
size
xs / s / m / l / xl / xxl / xxxl
m
{
  "slug": "body",
  "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
  "$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/body.json",
  "title": "Body",
  "description": "Body is a typography component primarily used within Spectrum components and for blocks of text.",
  "meta": {
    "category": "typography",
    "documentationUrl": "https://spectrum.adobe.com/page/body/"
  },
  "type": "object",
  "properties": {
    "script": {
      "$id": "https://opensource.adobe.com/spectrum-design-data/schemas/types/typography-script.json",
      "title": "typography-script",
      "description": "The script of the text.",
      "type": "string",
      "enum": [
        "latin",
        "han",
        "arabic",
        "hebrew"
      ],
      "default": "latin"
    },
    "classification": {
      "$id": "https://opensource.adobe.com/spectrum-design-data/schemas/types/typography-classification.json",
      "title": "typography-classification",
      "description": "Typography classification",
      "type": "string",
      "enum": [
        "serif",
        "sans serif"
      ],
      "default": "sans serif"
    },
    "size": {
      "type": "string",
      "pattern": "^(x?s|m|x{0,3}l)$",
      "enum": [
        "xs",
        "s",
        "m",
        "l",
        "xl",
        "xxl",
        "xxxl"
      ],
      "default": "m"
    }
  }
}
← Back to home