(hexColor: string, transparency: number)
| 25 | } |
| 26 | |
| 27 | function applyTransparencyToColor(hexColor: string, transparency: number): string { |
| 28 | const alpha = 1 - transparency; // transparency is already 0-1 |
| 29 | return colord(hexColor).alpha(alpha).toHex(); |
| 30 | } |
| 31 | |
| 32 | // returns (theme, bgcolor, transparency (0 - 1.0)) |
| 33 | export function computeTheme( |