<!--
{
  "availability" : [
    "Apple News Format: 1.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppleNewsFormat",
  "identifier" : "/documentation/AppleNewsFormat/ColorStop",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "Apple News Format"
    ],
    "preciseIdentifier" : "data:news_format:ColorStop"
  },
  "title" : "ColorStop"
}
-->

# ColorStop

The object for specifying the color and location for a color stop in a gradient.

```
object ColorStop
```

## Discussion

Use this object for gradients in a [`LinearGradientFill`](/documentation/AppleNewsFormat/LinearGradientFill) style definition.

### Example

```json
{
  "components": [
    {
      "role": "container",
      "layout": {
        "ignoreDocumentMargin": true,
        "minimumHeight": "50vh"
      },
      "style": {
        "fill": {
          "type": "linear_gradient",
          "angle": -10,
          "colorStops": [
            {
              "color": "#FFFFFF",
              "location": 0
            },
            {
              "color": "#FFFFFF",
              "location": 20
            },
            {
              "color": "#AAAAAA",
              "location": 50
            },
            {
              "color": "#333333",
              "location": 90
            },
            {
              "color": "#000000",
              "location": 100
            }
          ]
        }
      },
      "components": [
        {
          "role": "body",
          "textStyle": {
            "textColor": "#FFFFFF"
          },
          "text": "Fade to black."
        }
      ]
    }
  ]
}
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)