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

Function colorToken

packages/@react-spectrum/s2/scripts/buildPageCss.mjs:4–6  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

2import tokens from '@adobe/spectrum-tokens/dist/json/variables.json' with {type: 'json'};
3
4function colorToken(token) {
5 return `light-dark(${token.sets.light.value}, ${token.sets.dark.value})`;
6}
7
8function weirdColorToken(token) {
9 return `light-dark(${token.sets.light.sets.light.value}, ${token.sets.dark.sets.dark.value})`;

Callers 1

buildPageCss.mjsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected