---
title: "standardPalette"
description: "The color for a 0–1 value from the standard palette props: `colorA`, `colorB`, `stops`, `colorSpace`."
group: "paint"
groupTitle: "Painting"
categoryId: "paint"
categorySlug: "paint"
categoryTitle: "Fields, palettes & ramps"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/paint/fields.ts#L823"
---

# standardPalette

The color for a 0–1 value from the standard palette props: `colorA`, `colorB`, `stops`, `colorSpace`.

```ts
standardPalette(t: Expr, params: GpuFragmentParams): Expr
```

Import `paint` from `shaders/std` and use `paint.standardPalette`.

Declare those four props (`stops: colorStopsPropConfig()`, `colorSpace` marked `compileTime`). It has the shape of a `Palette`, so it drops straight into `rampOver`, or call it yourself inside a `paint:` function.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `t` | `Expr` |  |
| `params` | `GpuFragmentParams` |  |

## Example

```ts
paint: rampOver(scaledVolume(noiseField('mx3'), {scale: p('scale')}), standardPalette)
```

## See also

- [`stops`](/docs/primitives/paint/stops) — The standard multi-stop palette, read from the `stops`, `colorA` and `colorB` props.
- [`pair`](/docs/primitives/paint/pair) — A palette of two color props, mixed in the color space named by the `space` prop.

## Used by

[MeshGradient](/docs/components/meshgradient)