OPF
SpecDefinition referenceView source

Solid Background

Fixed solid slide background fill.

Metadata

Definition
#/$defs/SolidBackground
Form
object
Source
spec/schemas/opf.schema.json

Field index

FieldTypeReq.Description
typeconstyesFixed solid background fill.
type · Allowed values
"solid"
colorref:ColorRefyesFixed solid fill color: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef, resolved against the effective color scheme and the deck variables). Use { type: 'theme', slot: ... } for PowerPoint's four theme-controlled background choices.
color · Named choices (see schema for other values and constraints)
"accent1""accent2""accent3""accent4""accent5""accent6""dark1""dark2""light1""light2""hyperlink""followedHyperlink""primary""secondary""accent""background""surface""surfaceAlt""text""textSecondary"
opacitynumber—Background opacity from 0 (fully transparent) to 1 (fully opaque).

type

typeconstrequiredyesdefault—

Fixed solid background fill.

type · Allowed values
"solid"
type.json
{
  "type": "solid"
}

color

typeref:ColorRefrequiredyesdefault—

Fixed solid fill color: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef, resolved against the effective color scheme and the deck variables). Use { type: 'theme', slot: ... } for PowerPoint's four theme-controlled background choices.

color · Named choices (see schema for other values and constraints)
"accent1""accent2""accent3""accent4""accent5""accent6""dark1""dark2""light1""light2""hyperlink""followedHyperlink""primary""secondary""accent""background""surface""surfaceAlt""text""textSecondary"
color.json
{
  "color": "#FFFFFF"
}

opacity

typenumberrequirednodefault—

Background opacity from 0 (fully transparent) to 1 (fully opaque).

Complete definition constraints
Schema constraints
{
  "type": "object",
  "description": "Fixed solid slide background fill.",
  "required": [
    "type",
    "color"
  ],
  "properties": {
    "type": {
      "type": "string",
      "const": "solid",
      "description": "Fixed solid background fill."
    },
    "color": {
      "$ref": "#/$defs/ColorRef",
      "description": "Fixed solid fill color: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef, resolved against the effective color scheme and the deck variables). Use { type: 'theme', slot: ... } for PowerPoint's four theme-controlled background choices.",
      "examples": [
        "#FFFFFF",
        "#0F172A",
        "#F8FAFC"
      ]
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 1,
      "description": "Background opacity from 0 (fully transparent) to 1 (fully opaque)."
    }
  }
}