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

Function rawColorToken

packages/@react-spectrum/s2/style/tokens.ts:56–59  ·  view source on GitHub ↗
(name: TokenName)

Source from the content-addressed store, hash-verified

54}
55
56export function rawColorToken(name: TokenName): string {
57 let token = tokens[name] as (typeof tokens)['gray-25'];
58 return `light-dark(${token.sets.light.value}, ${token.sets.dark.value})`;
59}
60
61export interface ColorRef {
62 type: 'ref';

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected