a:outerShdw (Outer Shadow)

Applies an outer shadow effect to shapes with configurable blur, distance, angle, color, and alignment.

Description

\:outerShdw\ applies an outer shadow effect to DrawingML shapes and other graphical elements. It is defined in ECMA-376 Part 1 §20.1.8.18.

The shadow appears outside the shape boundary creating depth and emphasis. Shadow properties control:

  • Blur radius: How soft/diffused the shadow edges are
  • Distance: How far shadow extends from shape boundary
  • Direction: Angle at which shadow projects (0° = right, 90° = down)
  • Alignment: Where shadow originates (top-left, center, bottom-right)
  • Color & Opacity: Shadow appearance and transparency
  • Rotation: Whether shadow rotates with the shape

Outer shadows are essential for:

  • Creating visual depth and separation
  • Improving shape emphasis and hierarchy
  • Adding professional polish to presentations
  • Creating elevation effects in material design
  • Highlighting important elements

Shadows render consistently across Office applications and support complex transformations.

Attributes

Attribute Type Range/Values Default Description
\lurRad\ \ST_Coordinate32\ 0–2147483647 (EMUs) 0 Blur radius; 0 = sharp edge, larger = softer shadow.
\dist\ \ST_Coordinate32\ 0–2147483647 (EMUs) 0 Distance shadow extends from shape boundary.
\dir\ \ST_PositiveFixedAngle\ 0–21600000 (60,000ths °) 2700000 Direction angle; 0 = right, 2700000 = down.
\lgn\ \ST_RectAlignment\ tl, t, tr, l, ctr, r, bl, b, br tl Shadow alignment relative to shape.
\        
otWithShape\ \xsd:boolean\ 0, 1 1 If true, shadow rotates with shape.
\sx\ \ST_Percentage\ -100000–100000 100000 Horizontal scaling (1000ths of %).
\sy\ \ST_Percentage\ -100000–100000 100000 Vertical scaling (1000ths of %).
\kx\ \ST_FixedAngle\ -5400000–5400000 0 Horizontal skew (60,000ths °).
\ky\ \ST_FixedAngle\ -5400000–5400000 0 Vertical skew (60,000ths °).

Content Model

\:outerShdw\ contains exactly one color element specifying shadow color:

  • \:srgbClr: RGB color for shadow
  • \:schemeClr: Theme color for shadow
  • \:hslClr: HSL color for shadow
  • \:sysClr: System color for shadow

Child Elements Table

Element Occurrence Purpose
Color (srgbClr, schemeClr, hslClr, sysClr) 1 Shadow color definition; supports transparency via alpha child.

Examples

Simple Black Outer Shadow

<a:outerShdw blurRad=\"38100\" dist=\"38100\" dir=\"2700000\" algn=\"tl\" rotWithShape=\"0\">
  <a:srgbClr val=\"000000\">
    <a:alpha val=\"50000\"/>
  </a:srgbClr>
</a:outerShdw>

Soft Blurred Shadow with Center Alignment

<a:outerShdw blurRad=\"76200\" dist=\"50800\" dir=\"5400000\" algn=\"ctr\" rotWithShape=\"1\">
  <a:srgbClr val=\"4A4A4A\">
    <a:alpha val=\"40000\"/>
  </a:srgbClr>
</a:outerShdw>

Colored Shadow with Theme Color

<a:outerShdw blurRad=\"50800\" dist=\"63500\" dir=\"2700000\" algn=\"bl\" rotWithShape=\"0\">
  <a:schemeClr val=\"accent1\">
    <a:alpha val=\"60000\"/>
  </a:schemeClr>
</a:outerShdw>

Shadow with Skew and Scaling

<a:outerShdw blurRad=\"63500\" dist=\"38100\" dir=\"0\" algn=\"tl\" 
    rotWithShape=\"1\" sx=\"120000\" sy=\"100000\" kx=\"1350000\">
  <a:srgbClr val=\"595959\">
    <a:alpha val=\"70000\"/>
  </a:srgbClr>
</a:outerShdw>

Reference Tables

Direction Angles (Common Values)

Degrees Angle (60,000ths) Direction Effect
0° 0 Right (→) Shadow to the right
45° 2700000 Down-right (↘) Diagonal down-right
90° 2700000 Down (↓) Shadow below
135° 5400000 Down-left (↙) Diagonal down-left
180° 10800000 Left (←) Shadow to left
225° 13500000 Up-left (↖) Diagonal up-left
270° 16200000 Up (↑) Shadow above
315° 18900000 Up-right (↗) Diagonal up-right

Alignment Values

Value Position Use
tl Top-left Standard shadow origin
t Top-center Centered top
tr Top-right Right-biased
l Left-center Centered left
ctr Center Centered shadow
r Right-center Centered right
bl Bottom-left Bottom-left origin
b Bottom-center Bottom-center origin
br Bottom-right Bottom-right origin

EMU Conversions

EMU Value Inches Points Pixels (96 DPI)
914400 1.0 72 96
457200 0.5 36 48
228600 0.25 18 24
38100 ~0.042 3 4

Notes

Element Relationships

  • Parents: Effect list (\:effectLst), effect DAG (\:effectDag), effect style list (\:effectStyleLst)
  • Effect Hierarchy: Shadows are effect nodes; multiple effects stack in order
  • Color Definition: Requires exactly one color element with optional alpha modifier
  • Shadow Priority: First outer shadow in effects list is primary

Implementation Details

  • Blur Radius: Higher values create softer, more diffuse shadows; 0 creates sharp edge
  • Distance: EMU units; 38100 ≈ 3 points ≈ 0.042 inches
  • Direction: Angle in 60,000ths of degree (0–21600000); rotate direction by shape rotation if
    otWithShape="1"\
  • Alignment: Where shadow originates relative to shape; affects visual offset direction
  • Rotation Behavior:
    otWithShape="1"\ maintains shadow position relative to shape;
    otWithShape="0"\ keeps shadow absolute
  • Scaling: \sx\, \sy\ scale shadow independently (e.g., sx=150000 = 150% horizontal stretch)
  • Skew: \kx\, \ky\ apply perspective/skew transformations to shadow
  • Color Blending: Shadow colors blend with background; transparency crucial for natural appearance
  • Performance: Soft shadows (high blur) more expensive to render than sharp shadows
  • Compatibility: Outer shadows render consistently across all Office applications