---
title: TextShadow
framework: applenewsformat
role: symbol
role_heading: Object
path: applenewsformat/textshadow
---

# TextShadow

The object for creating a text shadow.

## Declaration

```data
object TextShadow
```

## Properties

color: The text shadow color. radius: The shadow’s radius as a value, in points, between 0 and 100. offset: The shadow’s offset. opacity: The opacity of the shadow as a value between 0 and 1.

## Discussion

Discussion Use a TextShadow object to define a shadow that Apple News can apply to characters as part of a TextStyle. Example {   "componentTextStyles": {     "exampleStyle": {       …       "textShadow": {         "radius": 5,         "opacity": 0.7,         "color": "#333",         "offset": {           "x": -2,           "y": 2         }       },       "fontSize": 30     }   } }

## See Also

### Text Effects

- [TextShadowOffset](applenewsformat/textshadowoffset.md)
- [TextStrokeStyle](applenewsformat/textstrokestyle.md)
- [TextDecoration](applenewsformat/textdecoration.md)
