( this: MacroContext | void, name: string, size: any = 20 )
| 5 | import * as tokens from '@adobe/spectrum-tokens/dist/json/variables.json'; |
| 6 | |
| 7 | export function getColorScale( |
| 8 | this: MacroContext | void, |
| 9 | name: string, |
| 10 | size: any = 20 |
| 11 | ): [string, string][] { |
| 12 | return Object.keys(colorScale(name)).map(k => [ |
| 13 | k, |
| 14 | colorSwatch.call(this, k, 'backgroundColor', size) |
| 15 | ]); |
| 16 | } |
| 17 | |
| 18 | export function colorSwatch( |
| 19 | this: MacroContext | void, |
no test coverage detected