refactor: extract various constants

This commit is contained in:
2025-11-25 10:10:42 +01:00
parent 4d30e47ee8
commit ccc22beda2
40 changed files with 326 additions and 216 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
const HEX_COLOR_PATTERN = /^#?([0-9a-fA-F]{6})$/;
import { HEX_COLOR_PATTERN } from '../constants/colors';
const clamp01 = (value: number): number => Math.min(1, Math.max(0, value));