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

Function outerBorderStop

packages/@react-spectrum/ai/src/tokens.macro.ts:164–172  ·  view source on GitHub ↗
(stop: number, variant: string, colorScheme: string, div = 10)

Source from the content-addressed store, hash-verified

162}
163
164function outerBorderStop(stop: number, variant: string, colorScheme: string, div = 10) {
165 let opacity = token(
166 `outer-border.opacity.ob-hue-${variant}.${variant === 'prominent' ? 'value' : colorScheme}`
167 );
168 if (colorScheme === 'light') {
169 opacity = opacity / div;
170 }
171 return `oklch(from ${token(`outer-border.gradient.ob-hue.stop-${stop}.${colorScheme}`)} l c h / ${opacity}%)`;
172}

Callers 1

outerBorderStopsFunction · 0.85

Calls 1

tokenFunction · 0.70

Tested by

no test coverage detected