Skip to content

Commit

Permalink
test: import black and white
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard committed Oct 26, 2023
1 parent 334b084 commit 514aa17
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/@sanity/color/src/__workshop__/tool/compileCode.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {config} from '../../config'
import {ColorHueKey} from '../../types'
import {ColorToolSwatch} from './types'

Expand All @@ -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) {
Expand Down

0 comments on commit 514aa17

Please sign in to comment.