OPF
SpecDefinition referenceView source

Color Variant Slot

The scheme slot a color variant puts behind the slide (bg1): a light or dark slot, or an accent. On an accent the text side is the light family (tx1 = light1, tx2 = light2) or the dark family (tx1 = dark1, tx2 = dark2), whichever text slot has the higher contrast on that accent; tx2 falls back to tx1's slot where it is under 4.5:1 on the accent, and bg2 is the accent itself.

Metadata

Definition
#/$defs/ColorVariantSlot
Form
10 declared values
Source
spec/schemas/opf.schema.json

Field index

This definition uses the forms or value constraints below.

Complete definition constraints
Schema constraints
{
  "type": "string",
  "description": "The scheme slot a color variant puts behind the slide (bg1): a light or dark slot, or an accent. On an accent the text side is the light family (tx1 = light1, tx2 = light2) or the dark family (tx1 = dark1, tx2 = dark2), whichever text slot has the higher contrast on that accent; tx2 falls back to tx1's slot where it is under 4.5:1 on the accent, and bg2 is the accent itself.",
  "enum": [
    "light1",
    "light2",
    "dark1",
    "dark2",
    "accent1",
    "accent2",
    "accent3",
    "accent4",
    "accent5",
    "accent6"
  ]
}
value · Allowed values
"light1""light2""dark1""dark2""accent1""accent2""accent3""accent4""accent5""accent6"