Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
82
function
colorToken(token) {
83
return
{
84
default: token.sets.light.value,
85
dark: token.sets.dark.value
86
};
87
}
88
89
function
colorScale(scale) {
90
let
res = {};
Callers
1
colorScale
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected