MCPcopy Create free account
hub / github.com/adobe/react-spectrum / defaultBrand

Function defaultBrand

packages/@react-spectrum/ai/src/tokens.macro.ts:55–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53// The default --brand color, derived from the same anchor token so the default
54// theme renders identically to the source design tokens.
55export function defaultBrand() {
56 let [L, C, H] = BRAND_REF;
57 return `oklch(${Math.round(L * 1e4) / 1e4} ${Math.round(C * 1e4) / 1e4} ${Math.round(H * 10) / 10})`;
58}
59
60// Builds a CSS relative color derived from --brand: it keeps the given lightness
61// and chroma but takes the hue from the brand color (offset by hueOffset degrees).

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected