()
| 21 | const outputFormatPicker = document.getElementById('colorOutputFormat'); |
| 22 | |
| 23 | function createOutputParameters() { |
| 24 | const outputFormat = outputFormatPicker.value; |
| 25 | const update = Promise.resolve((_theme.output = outputFormat)); |
| 26 | |
| 27 | update.then(() => { |
| 28 | createJSOutput(); |
| 29 | createCSSOutput(); |
| 30 | createTokensOutput(); |
| 31 | |
| 32 | // Reset to hex so all other functions of the UI continue to work. |
| 33 | // Otherwise CSS Module 4 formatted colors won't be parsed by Chroma.js |
| 34 | _theme.output = 'HEX'; |
| 35 | }); |
| 36 | } |
| 37 | |
| 38 | function createJSOutput() { |
| 39 | let paramsOutput = document.getElementById('themeJSParams'); |
no test coverage detected