Config API
The kittl.design.config API allows you to update design-level configuration settings. These settings affect the overall design metadata rather than individual objects.
Setting Config
Use setConfig to update one or more design config properties. Only the specified properties are changed — all others are preserved.
// Update the design title
const titleResult = await kittl.design.config.setConfig({
title: 'My Updated Design',
});
if (!titleResult.isOk) {
console.error(titleResult.error);
}
// Set DPI and unit
const printResult = await kittl.design.config.setConfig({
dpi: 300,
unit: 'mm',
});
// Set a color palette override
const paletteResult = await kittl.design.config.setConfig({
overrideColorPalette: ['#FF0000', '#00FF00', '#0000FF'],
});
See Config API Reference for full parameter details.