uichemy_set_palette
Set the project's colour palette, and the controls that sit beside it in the editor. Hex values only. The colour roles (uichemy_get_colors) are derived in the same write, so role-based tools work straight after it with no canvas open. saturation is the palette's tint slider (0-100): it tints the title and description inks with the main colour, exactly as the slider does; titleColor / descriptionColor pin those two inks instead. On an IMPORTED project this also repaints the site's own stylesheet, because its colours are bound to these slots — call uichemy_get_project first and tell the user before doing it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bg | No | ||
| accent | No | ||
| extra1 | No | ||
| extra2 | No | ||
| primary | No | ||
| projectId | Yes | ||
| saturation | No | The tint slider, 0-100. | |
| titleColor | No | #hex — pins the title ink. | |
| descriptionColor | No | #hex — pins the description ink. |