Object

TextShadow

The object for creating a text shadow.

Properties

color
(Required)

The text shadow color.

radius
number
(Required)

The shadow’s radius as a value, in points, between 0 and 100.

The shadow’s offset.

opacity
float

The opacity of the shadow as a value between 0 and 1.

Discussion

Use a TextShadow object to define a shadow that can be applied 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

object TextShadowOffset

The object for setting an offset value to use with a text shadow.

object TextStrokeStyle

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

object TextDecoration

The object for defining color and width for text underline or strikethrough.