---
url: >-
  /api/plugins/pantoken/custom-theme-colors/src/functions/customColorReferenceCurve.md
---
[pantoken-root](../../../../../index.md) / [plugins/pantoken/custom-theme-colors/src](../index.md) / customColorReferenceCurve

# Function: customColorReferenceCurve()

> **customColorReferenceCurve**(`tokens?`): [`ReferenceCurve`](../interfaces/ReferenceCurve.md)

Beta

The per-step lightness curve and chroma shape the `custom` scale is derived against, computed
from the 13 shipped families. JSON-safe, so a build can ship it to a browser that pairs it with
the dependency-free `@pantoken/plugin-custom-theme-colors/scale` entry.

## Parameters

### tokens?

readonly [`Token`](../../../../../packages/core/src/interfaces/Token.md)\[] | `Map`<`string`, `string`>

Optional token array or map to read the reference families from.

## Returns

[`ReferenceCurve`](../interfaces/ReferenceCurve.md)

The [ReferenceCurve](../interfaces/ReferenceCurve.md).
