Some parts of this article have been written with AI. Be aware that AI can make mistakes.

Theme XML format

Overview

Stored in theme.xml at the root of the .vdox archive.

This XML file defines the document's color palette theme. These colors can be referenced throughout stencils, connections, and pages using the theme index syntax @index (for example @0, @1, @2), allowing global palette changes without updating individual elements.

File Format

  • Format: XML
  • Encoding: UTF-8
  • Root element: Theme
  • File location: /theme.xml

Structure

<?xml version="1.0" encoding="utf-8"?>
<Theme>
  <Colors>
    <Color hex="#0f172a" />
    <Color hex="#3b82f6" />
    <Color hex="#10b981" />
    <Color hex="#f59e0b" />
    <Color hex="#ef4444" />
    <Color hex="#8b5cf6" />
    <Color hex="#ffffff" />
    <Color hex="#000000" />
  </Colors>
</Theme>

Element Reference

Theme

The root element of the document.

  • Required: Yes (if a theme is applied)
  • Occurrence: Exactly one

Colors

Container for color definitions.

  • Required: Yes
  • Occurrence: Exactly one inside Theme

Color

Defines a single color in the theme palette.

  • Occurrence: Zero or more inside Colors
  • Attributes:
    • hex (string, required): The hexadecimal color representation (e.g. #3b82f6 or #ffffff).

The order of Color elements defines their zero-based index for theme references (the 1st color is @0, the 2nd is @1, etc.). See Color class for details on how themed colors are applied.