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

Function colorToken

scripts/mapStaticColors.mjs:82–87  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

80};
81
82function colorToken(token) {
83 return {
84 default: token.sets.light.value,
85 dark: token.sets.dark.value
86 };
87}
88
89function colorScale(scale) {
90 let res = {};

Callers 1

colorScaleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected