(hex, amt = 22)
| 1214 | const { h, s, l } = hexToHsl(hex); return hslToHex(h, s, Math.min(100, l + amt)); |
| 1215 | } |
| 1216 | function darken(hex, amt = 22) { |
| 1217 | const { h, s, l } = hexToHsl(hex); return hslToHex(h, s, Math.max(0, l - amt)); |
| 1218 | } |
| 1219 | |
| 1220 | function applyFolderColorToOption(folder, hex) { |
| 1221 | // accepts folder like "root" or "A/B" |
no test coverage detected