---
title: TextStrokeStyle
framework: applenewsformat
role: symbol
role_heading: Object
path: applenewsformat/textstrokestyle
---

# TextStrokeStyle

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

## Declaration

```data
object TextStrokeStyle
```

## Properties

color: The stroke color. width: Width of the stroke as a percentage relative to the font size.

## Discussion

Discussion Use the TextStrokeStyle object to define a text outline. You can use this object in TextStyle and ComponentTextStyle. Example {   "componentTextStyles": {     "exampleStyle": {       …       "stroke": {         "color": "#000",         "width": 3       },       "textColor": "#FFF",       "fontSize": 30     }   } }

## See Also

### Text Effects

- [TextShadow](applenewsformat/textshadow.md)
- [TextShadowOffset](applenewsformat/textshadowoffset.md)
- [TextDecoration](applenewsformat/textdecoration.md)
