| 105 | keys.add('white'); |
| 106 | |
| 107 | const addScale = scale => { |
| 108 | const re = new RegExp(`^${scale}-\\d+$`); |
| 109 | for (const tokenName of Object.keys(tokens)) { |
| 110 | if (re.test(tokenName)) { |
| 111 | // Match @react-spectrum/s2/style/tokens.ts behavior: strip "-color" in the middle. |
| 112 | keys.add(tokenName.replace('-color', '')); |
| 113 | } |
| 114 | } |
| 115 | }; |
| 116 | |
| 117 | // Global color scales |
| 118 | for (const scale of [ |
no test coverage detected