Last active
March 22, 2016 16:11
-
-
Save sketchytech/926a0f8d5fdaf4836d19 to your computer and use it in GitHub Desktop.
Apple News Format: Document Style
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.