Contents

TextStrokeStyle

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

Declaration

object TextStrokeStyle

Properties

NameTypeDescription
colorColor

The stroke color.

widthinteger

Width of the stroke as a percentage relative to the font size.

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