From 514aa17a1c0a572bcff2b94fcd81fd7e7ce792a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marius=20Lundg=C3=A5rd?= Date: Thu, 26 Oct 2023 20:01:57 +0200 Subject: [PATCH] test: import `black` and `white` --- packages/@sanity/color/src/__workshop__/tool/compileCode.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/@sanity/color/src/__workshop__/tool/compileCode.ts b/packages/@sanity/color/src/__workshop__/tool/compileCode.ts index 74b8b4d..e5cc878 100644 --- a/packages/@sanity/color/src/__workshop__/tool/compileCode.ts +++ b/packages/@sanity/color/src/__workshop__/tool/compileCode.ts @@ -1,3 +1,4 @@ +import {config} from '../../config' import {ColorHueKey} from '../../types' import {ColorToolSwatch} from './types' @@ -10,13 +11,13 @@ export function compileCode(palette: {hue: ColorHueKey; swatches: ColorToolSwatc // black code += ` black: {\n` code += ` title: 'Black',\n` - code += ` hsl: [210, 6, 7],\n` + code += ` hsl: [${config.black.hsl[0]}, ${config.black.hsl[1]}, ${config.black.hsl[2]}],\n` code += ` },\n` // white code += ` white: {\n` code += ` title: 'White',\n` - code += ` hsl: [0, 0, 100],\n` + code += ` hsl: [${config.white.hsl[0]}, ${config.white.hsl[1]}, ${config.white.hsl[2]}],\n` code += ` },\n` for (const color of palette) {