From a brand

Hex in, preset out. One brand colour becomes the surfaces, the series, and an up/down pair.

createTheme({ brand }) starts from paletteFromBrand, then refits every colour to the tinted surface. Text has to clear 7:1. Tick labels have to clear 4.5:1. Series marks have to clear 3:1. Pairs that collapse under deuteranopia or protanopia are moved, and the move is listed on adjustments.

The spec field is theme.brand. validate and repair turn #rgb, a missing hash, and uppercase into lowercase #rrggbb (CK3085). Import @chartkitdev/core/themes/brand before render. Without that import the chart keeps its named preset. The colour math is not in the line bundle.

ts
import { createTheme } from "@chartkitdev/core/themes/brand";
import { repair } from "@chartkitdev/core/validate";

const theme = createTheme({ brand: "#ca8a04" });
const spec = { version: "1", type: "bar", theme: { brand: "#ca8a04" } };
const fixed = repair(spec);

Drop an SVG or an image. SVG fills are read as text. An image is sampled in the browser at 48px. Node does not decode PNG or JPEG.

Edit
Edit
Edit

These charts are the published line-bundle gzip bytes and the even-x first-paint times from catalog/public/benchmarks.json. Mustard and Violet are that same function, frozen, for #ca8a04 and #6d28d9. A warm brand suggests riso tiles. The suggestion is on textures. The charts stay flat colour.