ArticleDocument.colorScheme
The object that contains information about the color scheme of the document, including Dark Mode behavior.
Declaration
object ArticleDocument.colorSchemeProperties
| Name | Type | Description |
|---|---|---|
automaticDarkModeEnabled | boolean | A Boolean value that indicates whether automatic Dark Mode is enabled for the document. The value for this property defaults to |
Discussion
Use the colorScheme object to enable or disable automatic Dark Mode in a document.
Example
{
"version": "1.14.1",
"identifier": "SampleArticle",
"language": "en",
"title": "Apple News",
"subtitle": "A look at the features of Apple News",
"layout": {
"columns": 20,
"width": 1024,
"margin": 60,
"gutter": 20
},
…
"colorScheme": {
"automaticDarkModeEnabled": true
}
}