StyleΒΆ

Similar to a CSS declaration, a Style defines a reusable visual rule a GUI should apply to the content of one or more scene elements throughout the entire document.

{
  "id" : "courier-12",
  "default": true,
  "content" : "font-family: courier; font-size: 12px;",
  "meta" : {
    "property": "value"
  }
}
Property Description Type Required
id Unique sluggable identifier for referencing within the document. string Yes
content Arbitrary text with instructions for the presentation rule. string Yes
default Whether or not the style should be the default presentation. boolean No
meta Arbitrary Meta object of custom properties. object No

Warning

ScreenJSON is not a presentation format. A Style object is used by the GUI host to store the data it needs to present the document content, which it defines itself. How a screenplay appears is up to the host, this object allows it to store the data of the instruction.