Image or sketch in, preset out. The drawing is a source of colours, not a logo lockup.
colorsFromSvg reads hex fills and strokes, skips white and black, and returns up to four colours, most frequent first. Pass that list to createTheme. The lead colour anchors the surfaces. The others keep their hues in the series.
A raster is sampleImageData on RGBA pixels, or colorsFromBitmap when the page has a canvas. The bitmap is scaled so the long edge is 48px, then the same sampler runs. Node has no PNG or JPEG decoder in this package, so colorsFromBitmap throws there. Pass pixels you already decoded, or an SVG string.
Teal, mustard, and coral. The mark is the input. The charts below are the published bundle and paint numbers, coloured from these fills.
This mark resolves to #0f766e, #ca8a04, #f43f5e. Light text 13.6:1, ticks 6.1:1, series min 3.2:1. Dark text 15.3:1, ticks 8.7:1. Suggested texture: blueprint.