diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-19 10:19:59 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-19 10:19:59 -0400 |
| commit | ed9834284a1d4fb3903808a5b74d11d4f36f0930 (patch) | |
| tree | 71ffa4ab211c5878a7009bacdb33123f17b5d6ea /scripts/theme-studio/previews.js | |
| parent | 39b2d310bb8cb9bc6a7f8059a42b951c591638eb (diff) | |
| download | dotemacs-ed9834284a1d4fb3903808a5b74d11d4f36f0930.tar.gz dotemacs-ed9834284a1d4fb3903808a5b74d11d4f36f0930.zip | |
refactor(theme-studio): share oklchOf and isPureEndpointHex from colormath
oklchOf and isPureEndpointHex were each defined identically in app-core.js and palette-generator-core.js, and hueOfHex inlined oklchOf's body a third time. I moved both helpers into colormath.js, which already owns the primitives they call, and had the two consumers import them. hueOfHex now calls oklchOf instead of re-deriving it.
Diffstat (limited to 'scripts/theme-studio/previews.js')
0 files changed, 0 insertions, 0 deletions
