### 8.3 Defining shading format components

Shading format components apply to paragraph, character, table, row, and cell formats. When you want shading applied to text, to parts of a table, or to components of a page (RTF only), assign the name of a shading format component to the item to be shaded. The default is no shading.

As a convention, the name of any shading format component should end in Shade. If you give a shading format component a name that does not end in Shade, if the definition is in a file different from the file where it is referenced, DITA2Go will not be able to find the format component. (But see §8.9 Localizing output headings, labels, and names.)

Shading properties are as follows:

    help
| Any text to describe purpose or use of format
type | (RTF only) horiz, vert, fdiag, bdiag, cross, dcross, or dk followed by any of the other patterns (as in dkcross)
color | Color of the pattern, or of the fill if no type specified
background color | (RTF only) pattern background, ignored if no type specified
tint | Percent of color if no pattern, ignored if there is a pattern

Properties type and background color apply only to RTF output.

For example:

    [DangerShade]
    type = dcross
    color = orange

    [CautionShade]
    color = yellow
    tint = 80%

    [WarningShade]
    color = red
    tint = 10%

To override shading properties for a particular instance of an element, you can specify a different property in the outputclass attribute for that instance. See §8.4 Overriding border and shading properties.

Previous Topic: 8.2 Defining border format components

Next Topic: 8.4 Overriding border and shading properties

Parent Topic: 8. Configuring format components

Sibling Topics:

8.1 Managing format components

8.2 Defining border format components

8.4 Overriding border and shading properties

8.5 Configuring output numbering properties

8.6 Configuring run-in headings for text formats

8.7 Defining cross-reference output formats

8.8 Configuring trademark formats

8.9 Localizing output headings, labels, and names

Table of Contents • Index