fix: bidirectional eingabe update, hexToHsl null check, import validation, harmony umlauts

This commit is contained in:
Ferdinand
2026-04-02 10:46:44 +02:00
parent ce6c3298b4
commit 184f3ec0c2
4 changed files with 11 additions and 3 deletions

View File

@@ -49,7 +49,9 @@ export function hslToHex(hsl) {
// Hex → HSL
export function hexToHsl(hex) {
return rgbToHsl(hexToRgb(hex));
const rgb = hexToRgb(hex);
if (!rgb) return null;
return rgbToHsl(rgb);
}
// Harmonien — Input: HSL, Output: Objekt mit Arrays von HSL-Objekten