{}OPF
DocsObject referenceEdit on GitHub

Color Scheme

Color palette used by the design system. The slot fields (accent1-accent6, dark1, dark2, light1, light2, hyperlink, followedHyperlink) mirror color-scheme.schema.json (https://openpresentation.org/schema/opf-c…

Metadata

Definition

#/$defs/ColorScheme

Type

object

Source

spec/schemas/opf.schema.json

Fields

FieldTypeReqDescription
idstringColor scheme reference. Resolves to the 'id' of a 'colorSchemes' catalog record. Accepts a bare id (lowercase kebab-case, e.g. 'cool-horizon'), an HTTPS URL pointing at a record file, or a 'pkg:' reference. Slot and role overrides on the surrounding ColorScheme object take prece…
accent1stringAccent 1 color (hex). Mirrors the OOXML accent1 slot.
accent2stringAccent 2 color (hex). Mirrors the OOXML accent2 slot.
accent3stringAccent 3 color (hex). Mirrors the OOXML accent3 slot.
accent4stringAccent 4 color (hex). Mirrors the OOXML accent4 slot.
accent5stringAccent 5 color (hex). Mirrors the OOXML accent5 slot.
accent6stringAccent 6 color (hex). Mirrors the OOXML accent6 slot.
dark1stringDark 1 color (hex). Typically the deepest neutral; OOXML dark1.
dark2stringDark 2 color (hex). Secondary dark; OOXML dark2.
light1stringLight 1 color (hex). Typically the slide canvas; OOXML lt1.
light2stringLight 2 color (hex). Secondary light surface; OOXML lt2.
hyperlinkstringHyperlink color (hex). OOXML hlink.
followedHyperlinkstringFollowed-hyperlink color (hex). OOXML folHlink.
primarystringAbstract role: primary brand color (hex). The engine maps this onto an OOXML accent slot when serializing.
secondarystringAbstract role: secondary brand color (hex).
accentstringAbstract role: accent color used for highlights and emphasis (hex).
backgroundstringAbstract role: default slide background color (hex). The engine maps this to one of light1 / light2 / dark1 / dark2 when serializing.
surfacestringAbstract role: color for elevated surfaces such as cards and panels (hex).
textstringAbstract role: primary body text color (hex).
textSecondarystringAbstract role: secondary or muted text color used for captions and supporting copy (hex).
customobjectMap of custom named colors for advanced or theme-specific use.

id

Type: string · Optional · Default:

Color scheme reference. Resolves to the 'id' of a 'colorSchemes' catalog record. Accepts a bare id (lowercase kebab-case, e.g. 'cool-horizon'), an HTTPS URL pointing at a record file, or a 'pkg:' reference. Slot and role overrides on the surrounding ColorScheme object take prece…

id.json
{
  "id": "cool-horizon"
}

accent1

Type: string · Optional · Default:

Accent 1 color (hex). Mirrors the OOXML accent1 slot.

accent1.json
{
  "accent1": "#2874A6"
}

accent2

Type: string · Optional · Default:

Accent 2 color (hex). Mirrors the OOXML accent2 slot.

accent2.json
{
  "accent2": "#1B4F72"
}

accent3

Type: string · Optional · Default:

Accent 3 color (hex). Mirrors the OOXML accent3 slot.

accent3.json
{
  "accent3": "#5499C7"
}

accent4

Type: string · Optional · Default:

Accent 4 color (hex). Mirrors the OOXML accent4 slot.

accent4.json
{
  "accent4": "#7BDBB2"
}

accent5

Type: string · Optional · Default:

Accent 5 color (hex). Mirrors the OOXML accent5 slot.

accent5.json
{
  "accent5": "#3AC67A"
}

accent6

Type: string · Optional · Default:

Accent 6 color (hex). Mirrors the OOXML accent6 slot.

accent6.json
{
  "accent6": "#24A89E"
}

dark1

Type: string · Optional · Default:

Dark 1 color (hex). Typically the deepest neutral; OOXML dark1.

dark1.json
{
  "dark1": "#000000"
}

dark2

Type: string · Optional · Default:

Dark 2 color (hex). Secondary dark; OOXML dark2.

dark2.json
{
  "dark2": "#011842"
}

light1

Type: string · Optional · Default:

Light 1 color (hex). Typically the slide canvas; OOXML lt1.

light1.json
{
  "light1": "#FFFFFF"
}

light2

Type: string · Optional · Default:

Light 2 color (hex). Secondary light surface; OOXML lt2.

light2.json
{
  "light2": "#F0F0F0"
}

primary

Type: string · Optional · Default:

Abstract role: primary brand color (hex). The engine maps this onto an OOXML accent slot when serializing.

primary.json
{
  "primary": "#1E40AF"
}

secondary

Type: string · Optional · Default:

Abstract role: secondary brand color (hex).

secondary.json
{
  "secondary": "#3B82F6"
}

accent

Type: string · Optional · Default:

Abstract role: accent color used for highlights and emphasis (hex).

accent.json
{
  "accent": "#F59E0B"
}

background

Type: string · Optional · Default:

Abstract role: default slide background color (hex). The engine maps this to one of light1 / light2 / dark1 / dark2 when serializing.

background.json
{
  "background": "#FFFFFF"
}

surface

Type: string · Optional · Default:

Abstract role: color for elevated surfaces such as cards and panels (hex).

surface.json
{
  "surface": "#F8FAFC"
}

text

Type: string · Optional · Default:

Abstract role: primary body text color (hex).

text.json
{
  "text": "#0F172A"
}

textSecondary

Type: string · Optional · Default:

Abstract role: secondary or muted text color used for captions and supporting copy (hex).

textSecondary.json
{
  "textSecondary": "#475569"
}

custom

Type: object · Optional · Default:

Map of custom named colors for advanced or theme-specific use.

custom.json
{
  "custom": {
    "success": "#10B981",
    "warning": "#F59E0B",
    "danger": "#EF4444"
  }
}