{
  "$generatedBy": "BrandSweets tokens.json — mi-com v5",
  "brand": {
    "slug": "mi-com",
    "name": "Xiaomi",
    "version": 5,
    "schemaVersion": "1"
  },
  "identity": {
    "name": "Xiaomi",
    "tagline": "Xiaomi, a global company producing quality products at honest pricing.",
    "sector": "electronics"
  },
  "colors": {
    "primary": {
      "hex": "#ff6900",
      "name": "Xiaomi Orange",
      "usage": "The 'mi' tile orange.",
      "scale": {
        "50": "#faf4ef",
        "100": "#f4e3d7",
        "200": "#ffc9a3",
        "300": "#ffa96b",
        "400": "#ff8b38",
        "500": "#ff6900",
        "600": "#e05e00",
        "700": "#b84d00",
        "800": "#8f3c00",
        "900": "#5e2c08",
        "950": "#3d1c05"
      }
    },
    "secondary": {
      "hex": "#ff6900",
      "name": "Bright Orange",
      "usage": "Secondary brand color.",
      "scale": {
        "50": "#faf4ef",
        "100": "#f4e3d7",
        "200": "#ffc9a3",
        "300": "#ffa96b",
        "400": "#ff8b38",
        "500": "#ff6900",
        "600": "#e05e00",
        "700": "#b84d00",
        "800": "#8f3c00",
        "900": "#5e2c08",
        "950": "#3d1c05"
      }
    },
    "surface": {
      "hex": "#ffffff",
      "name": "White",
      "usage": "Page and card background.",
      "scale": {
        "50": "#ffffff",
        "100": "#e6e6e6",
        "200": "#d1d1d1",
        "300": "#b5b5b5",
        "400": "#9c9c9c",
        "500": "#858585",
        "600": "#707070",
        "700": "#5c5c5c",
        "800": "#474747",
        "900": "#333333",
        "950": "#212121"
      }
    },
    "text": {
      "hex": "#000000",
      "name": "Black",
      "usage": "Body text on surface.",
      "scale": {
        "50": "#f5f5f5",
        "100": "#e6e6e6",
        "200": "#d1d1d1",
        "300": "#b5b5b5",
        "400": "#9c9c9c",
        "500": "#858585",
        "600": "#707070",
        "700": "#5c5c5c",
        "800": "#474747",
        "900": "#333333",
        "950": "#000000"
      }
    }
  },
  "typography": {
    "families": {
      "misans-latin": {
        "family": "MiSans Latin",
        "source": "custom",
        "stack": "\"MiSans Latin\", sans-serif",
        "weights": [
          400,
          600,
          700
        ],
        "licensingNote": "Auto-detected web font; provenance unconfirmed. Reference only — never rehost without a license."
      }
    },
    "roles": {
      "heading": {
        "familyRef": "misans-latin",
        "stack": "\"MiSans Latin\", sans-serif"
      },
      "body": {
        "familyRef": "misans-latin",
        "stack": "\"MiSans Latin\", sans-serif"
      }
    },
    "scale": [
      {
        "name": "sm",
        "sizeRem": 0.875,
        "lineHeight": 1.5
      },
      {
        "name": "base",
        "sizeRem": 1,
        "lineHeight": 1.6
      },
      {
        "name": "lg",
        "sizeRem": 1.25,
        "lineHeight": 1.4
      },
      {
        "name": "xl",
        "sizeRem": 1.75,
        "lineHeight": 1.25
      },
      {
        "name": "2xl",
        "sizeRem": 2.25,
        "lineHeight": 1.15
      },
      {
        "name": "display",
        "sizeRem": 3.5,
        "lineHeight": 1.05,
        "letterSpacingEm": -0.02
      }
    ]
  },
  "brandGradient": {
    "brand": {
      "$type": "gradient",
      "$value": [
        {
          "color": {
            "colorSpace": "srgb",
            "components": [
              1,
              0.769,
              0.647
            ],
            "hex": "#ffc4a5"
          },
          "position": 0
        },
        {
          "color": {
            "colorSpace": "srgb",
            "components": [
              1,
              0.412,
              0
            ],
            "hex": "#ff6900"
          },
          "position": 0.5
        },
        {
          "color": {
            "colorSpace": "srgb",
            "components": [
              0.71,
              0.22,
              0
            ],
            "hex": "#b53800"
          },
          "position": 1
        }
      ],
      "$extensions": {
        "com.brandsweets": {
          "kind": "linear",
          "css": "linear-gradient(135deg in oklch shorter hue, #ffc4a5 0%, #ff6900 50%, #b53800 100%)",
          "interpolation": "oklch",
          "hue": "shorter",
          "angle": 135,
          "name": "brand",
          "contrast": {
            "white": {
              "ratio": 1.534,
              "at": 0,
              "passesAA": false,
              "passesAALarge": false
            },
            "black": {
              "ratio": 3.53,
              "at": 1,
              "passesAA": false,
              "passesAALarge": true
            },
            "suggestedInk": "#000000"
          }
        }
      },
      "$description": "The canonical brand gradient (--brand-gradient)."
    },
    "hero": {
      "$type": "gradient",
      "$value": [
        {
          "color": {
            "colorSpace": "srgb",
            "components": [
              0.949,
              0.867,
              0.824
            ],
            "hex": "#f2ddd2"
          },
          "position": 0
        },
        {
          "color": {
            "colorSpace": "srgb",
            "components": [
              0.827,
              0.627,
              0.537
            ],
            "hex": "#d3a089"
          },
          "position": 0.5
        },
        {
          "color": {
            "colorSpace": "srgb",
            "components": [
              0.588,
              0.424,
              0.373
            ],
            "hex": "#966c5f"
          },
          "position": 1
        }
      ],
      "$extensions": {
        "com.brandsweets": {
          "kind": "linear",
          "css": "linear-gradient(135deg in oklch shorter hue, #f2ddd2 0%, #d3a089 50%, #966c5f 100%)",
          "interpolation": "oklch",
          "hue": "shorter",
          "angle": 135,
          "name": "hero",
          "ink": "#000000",
          "contrast": {
            "white": {
              "ratio": 1.309,
              "at": 0,
              "passesAA": false,
              "passesAALarge": false
            },
            "black": {
              "ratio": 4.607,
              "at": 1,
              "passesAA": true,
              "passesAALarge": true
            },
            "suggestedInk": "#000000"
          }
        }
      },
      "$description": "Low-chroma hero background with a text-safe ink (--brand-gradient-hero)."
    },
    "button": {
      "$type": "gradient",
      "$value": [
        {
          "color": {
            "colorSpace": "srgb",
            "components": [
              1,
              0.475,
              0.176
            ],
            "hex": "#ff792d"
          },
          "position": 0
        },
        {
          "color": {
            "colorSpace": "srgb",
            "components": [
              0.945,
              0.361,
              0
            ],
            "hex": "#f15c00"
          },
          "position": 1
        }
      ],
      "$extensions": {
        "com.brandsweets": {
          "kind": "linear",
          "css": "linear-gradient(180deg in oklch shorter hue, #ff792d 0%, #f15c00 100%)",
          "interpolation": "oklch",
          "hue": "shorter",
          "angle": 180,
          "name": "button",
          "ink": "#000000",
          "states": {
            "hover": "linear-gradient(180deg in oklch shorter hue, #ff8c50 0%, #fb6600 100%)",
            "active": "linear-gradient(180deg in oklch shorter hue, #ff6c0c 0%, #e65100 100%)"
          },
          "contrast": {
            "white": {
              "ratio": 2.617,
              "at": 0,
              "passesAA": false,
              "passesAALarge": false
            },
            "black": {
              "ratio": 6.271,
              "at": 1,
              "passesAA": true,
              "passesAALarge": true
            },
            "suggestedInk": "#000000"
          }
        }
      },
      "$description": "Button / CTA surface with hover and active states (--brand-gradient-button)."
    }
  }
}