# Shadow style

[Canonical page](https://nothing.graphics/docs/format/reference/shadow-style) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/shadow-style.md)

Set local shadow offsets and tint.



<!-- Generated by ncf/tools/reference/generate.mjs. -->

Offsets are signed. A tint includes encoded sRGB color and alpha.

## Example [#example]

### Set a shared tint and displacement [#set-a-shared-tint-and-displacement]

Use an opaque amber tint and a positive y offset. With zero blur the partial alpha at (160, 27) is reproduced 44 units below at (160, 71).

```xml
<drop-shadow dx="0" dy="44" sigma="0" color="#F9AB52FF"/>
```

[Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/examples/inner-shadows.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#layer-effects)

## Usage context [#usage-context]

Trait `ShadowStyle` in the [scene format type model](https://nothing.graphics/docs/format/spec/type-model).

Related pages in this reference are [`<drop-shadow>`](https://nothing.graphics/docs/format/reference/drop-shadow), [`<inner-shadow>`](https://nothing.graphics/docs/format/reference/inner-shadow), [`<box-shadow>`](https://nothing.graphics/docs/format/reference/box-shadow).

## Attributes [#attributes]

[Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions)

### `dx` [#dx]

**Value** local units · **If omitted** `0` · **Keys** Scalar

Horizontal displacement, positive to the right.

### `dy` [#dy]

**Value** local units · **If omitted** `0` · **Keys** Scalar

Vertical displacement, positive down.

### `color` [#color]

**Value** `#RRGGBBAA` · **Required** · **Keys** Color channels

Required shadow tint in encoded sRGB with linear alpha. The filter converts the sampled color to its working space.

## Specifications [#specifications]

* [Source filter operations](https://nothing.graphics/docs/format/spec/filters#operations)
