Contents

ArticleDocument.colorScheme

The object that contains information about the color scheme of the document, including Dark Mode behavior.

Declaration

object ArticleDocument.colorScheme

Properties

NameTypeDescription
automaticDarkModeEnabledboolean

A Boolean value that indicates whether automatic Dark Mode is enabled for the document. The value for this property defaults to true, which causes the document to be inverted when the user switches the device to Dark Mode.

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
 }
}

See Also

Objects