/** * Engine-side color mixing. * * Lynx's CSS engine has no `color-mix()` and can't alpha-compose `var()` * colors — but theme palettes are plain JS data, so tints can be computed * where the palette lives instead of in CSS. `registerTheme()` uses this to * materialize the `*-soft` tokens (see `./registry.ts`). * * Accepted inputs are the same "engine-safe" color strings themes already * use: `#rgb`, `#rrggbb`, `#rrggbbaa`, `rgb(r, g, b)`, `rgba(r, g, b, a)`. * Anything else (named colors, `oklch()`, `var()`) is not parseable here — * `mixColors` then falls back to the base color unchanged, which degrades to * a neutral surface rather than a wrong tint. */ /** * Mix `ratio` of `color` into `base` (linear sRGB per-channel, like * `color-mix(in srgb, color ratio, base)`), returning a hex string. If either * input can't be parsed, returns `base` unchanged. */ export declare function mixColors(color: string, base: string, ratio: number): string; //# sourceMappingURL=color-mix.d.ts.map