# compositeOver

Composites `foreground` over `backdrop` in gamma-encoded sRGB, which is
what browsers do for `rgba()` and `oklch(... / a)`. The result is opaque
whenever the backdrop is.

This is a function exported by `@mapcairn/theme`, checked against version 0.2.0.

## Signature

```ts
import { compositeOver } from "@mapcairn/theme";
 
function compositeOver(foreground: ColourInput, backdrop: ColourInput): Rgba;
```

## Parameters

- `foreground` (`ColourInput`)
- `backdrop` (`ColourInput`)

## Returns

`Rgba`

## See also

- [`ColourInput`](https://docs.mapcairn.com/api/theme/ColourInput.md)
- [`Rgba`](https://docs.mapcairn.com/api/theme/Rgba.md)

Source: [packages/theme/src/contrast.ts:322](https://github.com/MapCairn/mapcairn/blob/main/packages/theme/src/contrast.ts#L322)
