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

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

No files matched your search

+3 -1
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