Grey ramp: 100 = lightest, 1200 = darkest. Derived from palette neutral → ink like v1.
(neutral: HexColor, ink: HexColor, isDark: boolean)
| 57 | |
| 58 | /** Grey ramp: 100 = lightest, 1200 = darkest. Derived from palette neutral → ink like v1. */ |
| 59 | function generateV2NeutralScale(neutral: HexColor, ink: HexColor, isDark: boolean): HexColor[] { |
| 60 | const scale = generateNeutralScale(neutral, isDark, ink) |
| 61 | return isDark ? scale.toReversed() : scale |
| 62 | } |
| 63 | |
| 64 | function assignHueRamp(prefix: string, scale: HexColor[]): Record<string, V2ColorValue> { |
| 65 | const tokens: Record<string, V2ColorValue> = {} |
no test coverage detected