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

Function getToken

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

Source from the content-addressed store, hash-verified

24type TokenName = keyof typeof tokens;
25
26export function getToken(name: TokenName): string {
27 return (tokens[name] as any).value;
28}
29
30export interface ColorToken {
31 type: 'color';

Callers 2

spectrum-theme.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected