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

# TextStrokeStyle

The object for defining the stroke to use for an outline on text.

```
object TextStrokeStyle
```

## Discussion

Use the `TextStrokeStyle` object to define a text outline.

You can use this object in [`TextStyle`](/documentation/AppleNewsFormat/TextStyle) and [`ComponentTextStyle`](/documentation/AppleNewsFormat/ComponentTextStyle).

### Example

```json
{
  "componentTextStyles": {
    "exampleStyle": {
      …
      "stroke": {
        "color": "#000",
        "width": 3
      },
      "textColor": "#FFF",
      "fontSize": 30
    }
  }
}
```

---

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)