The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Image: the Color signature panel spells colors one way and says what Lock does
Adarsh6b0f2a2c9e4b
diff --git a/src/components/palettes/color-signature-panel.tsx b/src/components/palettes/color-signature-panel.tsxindex 8f8dd32f..b3cd26e2 100644--- a/src/components/palettes/color-signature-panel.tsx+++ b/src/components/palettes/color-signature-panel.tsx@@ -197,10 +197,10 @@ export function ColorSignaturePanel({{engine === "open" && value && (<label className="mb-3 flex items-center justify-between gap-3 rounded-lg border px-3 py-2 text-[12.5px]"><span>- Lock the colours after generating- <span className="block text-[11.5px] text-muted-foreground">A palette-transfer step recolours each image (open source, CPU)</span>+ Lock the colors after generating+ <span className="block text-[11.5px] text-muted-foreground">Keeps each image to the palette's colors after it's made</span></span>- <Switch checked={value.lock ?? lockByDefault} onCheckedChange={(lock) => onPick({ ...value, lock })} aria-label="Lock the colours after generating" />+ <Switch checked={value.lock ?? lockByDefault} onCheckedChange={(lock) => onPick({ ...value, lock })} aria-label="Lock the colors after generating" /></label>)}<div className="max-h-[52svh] space-y-4 overflow-y-auto pr-0.5 sm:max-h-[360px]" onScroll={(e) => setCompact(e.currentTarget.scrollTop > 24)}>@@ -265,7 +265,7 @@ export function ColorSignaturePanel({<button type="button" onClick={() => setView("manual")} className="flex flex-col items-start gap-2 rounded-xl border p-3 text-left transition-colors hover:bg-accent"><PaletteIcon className="size-5 text-brand-text" /><span className="text-[13px] font-medium">Pick colors manually</span>- <span className="text-[11.5px] text-muted-foreground">Up to 12 colours, a background, random starters</span>+ <span className="text-[11.5px] text-muted-foreground">Up to 12 colors, a background, random starters</span></button></div>)}diff --git a/src/components/palettes/palette-editor.tsx b/src/components/palettes/palette-editor.tsxindex ffc8bc8c..0106c98b 100644--- a/src/components/palettes/palette-editor.tsx+++ b/src/components/palettes/palette-editor.tsx@@ -94,7 +94,7 @@ export function PaletteEditor({ value, onChange, onSave, saving }: { value: Pale</button></div><p className="text-[11.5px] text-muted-foreground">- {value.colors.length}/{MAX_COLORS} colours · Recraft uses the first {MAX_COLORS_RECRAFT}+ {value.colors.length}/{MAX_COLORS} colors · Recraft uses the first {MAX_COLORS_RECRAFT}</p></section>@@ -137,7 +137,7 @@ export function PaletteEditor({ value, onChange, onSave, saving }: { value: PaleSave palette</Button></div>- {error && value.colors.length === 0 && <p className="text-[12px] text-muted-foreground">Add at least one colour</p>}+ {error && value.colors.length === 0 && <p className="text-[12px] text-muted-foreground">Add at least one color</p>}</div>);}diff --git a/src/lib/catalog/palettes.ts b/src/lib/catalog/palettes.tsindex 5c48e286..f8f7e2b7 100644--- a/src/lib/catalog/palettes.ts+++ b/src/lib/catalog/palettes.ts@@ -71,11 +71,11 @@ export function normalizeHex(input: string): string | null {export function paletteError(p: { name: string; colors: string[]; background?: string | null }): string | null {if (!p.name.trim()) return "Give the palette a name";if (p.name.trim().length > NAME_MAX) return `Keep the name under ${NAME_MAX} characters`;- if (!p.colors.length) return "Add at least one colour";- if (p.colors.length > MAX_COLORS) return `A palette holds up to ${MAX_COLORS} colours`;+ if (!p.colors.length) return "Add at least one color";+ if (p.colors.length > MAX_COLORS) return `A palette holds up to ${MAX_COLORS} colors`;const bad = p.colors.find((c) => !HEX_RE.test(c));- if (bad) return `${bad} isn't a colour — use #RRGGBB`;- if (p.background && !HEX_RE.test(p.background)) return `${p.background} isn't a colour — use #RRGGBB`;+ if (bad) return `${bad} isn't a color — use #RRGGBB`;+ if (p.background && !HEX_RE.test(p.background)) return `${p.background} isn't a color — use #RRGGBB`;return null;}diff --git a/tests/image-studios.test.ts b/tests/image-studios.test.tsindex eec9fea1..98349250 100644--- a/tests/image-studios.test.ts+++ b/tests/image-studios.test.ts@@ -136,7 +136,7 @@ describe("palettes: k-means extraction", () => {expect(normalizeHex("12345g")).toBeNull();expect(paletteError({ name: "x", colors: [] })).toMatch(/at least one/);expect(paletteError({ name: "x", colors: Array(13).fill("#FFFFFF") })).toMatch(/up to 12/);- expect(paletteError({ name: "x", colors: ["#GG0000"] })).toMatch(/isn't a colour/);+ expect(paletteError({ name: "x", colors: ["#GG0000"] })).toMatch(/isn't a color/);expect(paletteError({ name: "ok", colors: ["#FFFFFF"], background: "#000000" })).toBeNull();expect(cardStrip({ colors: ["#111111", "#222222", "#111111"], background: "#222222" })).toEqual(["#222222", "#111111"]);expect(paletteColors({ colors: ["#111111"], background: "#333333" })).toEqual(["#111111", "#333333"]);