Pass your customer's brand colors as custom properties EDITOR:DESIGN_COLOR_<number>
(e.g. EDITOR:DESIGN_COLOR_1, EDITOR:DESIGN_COLOR_10). Keys are case-sensitive, the suffix must be a
non-negative integer, colors are shown in numeric order and gaps are allowed. Each value has the format Source:ColorValue:
PMS:PANTONE 185 C — full Pantone name from the color mapRGB:#EB002A or RGB:#EB002AFF — 6 (RGB) or 8 (RGBA) hex digitsCMYK:#00F8D000 — four channel bytes #CCMMYYKK (00 = 0 %, FF = 100 %)The value must match the color map exactly (case and surrounding whitespace are ignored); the nearest color is not chosen.
What it does:
| Pantone | PMS | RGB | CMYK |
|---|---|---|---|
| PANTONE 185 C | PMS:PANTONE 185 C | RGB:#EB002A | CMYK:#00F8D000 |
| PANTONE 286 C | PMS:PANTONE 286 C | RGB:#0033A0 | CMYK:#FED40000 |
| PANTONE 354 C | PMS:PANTONE 354 C | RGB:#00AE42 | CMYK:#C301EB00 |
| PANTONE Yellow C | PMS:PANTONE Yellow C | RGB:#FFDE00 | CMYK:#0616E900 |
UNKNOWN COLOR (disabled), CMYK:#0021FF00 (disabled, not in map), RGB:#12345 (disabled, invalid),
354 C (slot 10 last). Several colors → no automatic recoloring.#00F8D000).PMS:PANTONE 185 C + RGB:#EB002A both resolve to 185 C. Multiple supplied colors
prevent recoloring. Both appear in Suggested Colors.RGB:#EB002B is valid syntax but not in the map (no nearest match) → normal adaptation,
disabled suggestion with error icon.editor:design_color_1 (wrong case), EDITOR:DESIGN_COLOR_A, EDITOR:DESIGN_COLOR_-1
→ ignored: no Suggested Colors section at all, no recoloring._1 and _2 are empty / whitespace, _7 is 286 C → counts as exactly one color:
single suggestion and logo recolored to 286 C." rgb : #00ae42 " → matches 354 C. Single color → logo recolored.EDITOR:DESIGN_INSTRUCTION — both features work together.Last created print job:(none — create one above first)
EDITOR:DESIGN_COLOR_1. Existing logo stays as is; a newly uploaded logo is recolored to 286 C
(if no other color slots are stored).<button
data-td-action="OpenCreate"
data-td-supplier-code="PFC"
data-td-product-code="10086021"
data-td-print-position-code="front"
data-td-print-technology-code="PAD03"
data-td-custom-properties='{"EDITOR:DESIGN_COLOR_1":"PMS:PANTONE 185 C"}'>
Design your print
</button>
window.tronDesigner
.addCustomProperties({
'EDITOR:DESIGN_COLOR_1': 'PMS:PANTONE 185 C',
'EDITOR:DESIGN_COLOR_2': 'RGB:#0033A0'
})
.setExactProduct('PFC', undefined, (p) => p.addVariant('10086021'))
.addExactPrinting('front', 'PAD03')
.open({ mode: 'dialog' });
window.tronDesigner.openDesigner({
openMode: 'Create',
dataMode: 'Exact',
printJob: {
logo: { url: 'https://cdn-webassets.promotron.com/images/td/logo-full-light-theme.svg' },
customProperties: {
'EDITOR:DESIGN_COLOR_1': 'CMYK:#00F8D000' // = PANTONE 185 C
},
addProducts: { supplierCode: 'PFC', variants: [{ productCode: '10086021' }] },
addPrintings: [{ printPositionCode: 'front', printTechnologyCode: 'PAD03' }]
}
}, { mode: 'dialog' });
// CMYK:#CCMMYYKK — each channel is one byte (00 = 0 %, FF = 100 %); the last pair is black, not alpha.
const toByte = (percent) => Math.round(percent * 255 / 100).toString(16).padStart(2, '0').toUpperCase();
const cmyk = 'CMYK:#' + [0, 97, 82, 0].map(toByte).join(''); // 'CMYK:#00F7D100'
// Note: rounding percentages does not guarantee an exact color-map match (185 C is CMYK:#00F8D000).