Skip to content

Instantly share code, notes, and snippets.

@sketchytech
Last active March 22, 2016 16:11
Show Gist options
  • Save sketchytech/926a0f8d5fdaf4836d19 to your computer and use it in GitHub Desktop.
Save sketchytech/926a0f8d5fdaf4836d19 to your computer and use it in GitHub Desktop.
Apple News Format: Document Style
{
"version": "1.1",
"identifier": "sketchyTech_Demo",
"title": "My First Article",
"language": "en",
"layout": {},
"components": [
{
"role": "title",
"text": "My First Article"
},
{
"role": "body",
"text": "This is just over the minimum amount of JSON required to create a valid article in Apple News Format. If you were to delete the dictionary enclosing this text, you'd be there."
}
],
"componentTextStyles": {},
"documentStyle":
{
"backgroundColor": "#8FBC8F"
}
}
@sketchytech
Copy link
Author

Once you have the basic structure in place for your Apple News Format article you can then choose to employ the optional property of a document style. At present a document style has only one option and that is to set the background colour using a hexadecimal string.

Note: documentStyle is a top-level key with a value that is a dictionary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment