Structure of the Shapes XML File

The Shapes XML file consists of a top-level <shapes> element (no attributes) containing any number of the following elements <colors>, <styles> and <svg:defs> and at most one of each of <patterns>, <borders> and <examples> elements.

The following is the structure of the Shapes XML file:

<?xml version="1.0"?>
<shapes xmlns:svg="http://www.w3.org/2000/svg">
<!-- the order of tags within <shapes> is irrelevant -->

<svg:defs>
<!-- patterns and other SVG go here -->
</svg:defs>

<borders …>
<!-- list of all border rules goes here -->
</borders>

<patterns …>
<!-- overlay shown is first matched -->
</patterns>

<styles …>
<!-- CSS styles -->
</styles>

<colors type="highlight" …>
<!-- highlights the border of any matching item (not just components) -->
</colors>

<colors type="text-highlight" …>
<!-- highlights the text of any matching item (not just components) -->
</colors>

<colors default="…" type="background" …>
<!-- list of all background colours goes here
     type="background" is assumed if no type is set -->
</colors>
<examples label="…">
<!-- non-generated components to be shown in legend -->
</examples>
</shapes>